/* Gorsel bilesenler: ekip piramidi, akis zinciri, akis haritasi. */

/* ================================================================ ekip piramidi */
.pyr-help { margin: -4px 0 10px; }
.pyr-wrap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.pyr-tools { display: flex; justify-content: flex-end; gap: 4px; padding: 6px 8px 0; }
.pyr-scroll { position: relative; overflow: auto; padding: 8px 10px 26px; max-height: calc(100vh - 250px); min-height: 280px; }
.pyr { zoom: var(--zoom, 1); width: max-content; min-width: 100%; }
@supports not (zoom: 1) { .pyr { transform: scale(var(--zoom, 1)); transform-origin: top left; } }

/* agac cizgileri: her seviye yatay bir satir, ust-alt baglari cizgiyle */
.pyr-tree, .pyr-tree ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; position: relative; }
.pyr-tree ul { padding-top: 26px; }
.pyr-tree li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 26px 10px 0; }
.pyr-tree > li { padding-top: 0; }
.pyr-tree li::before, .pyr-tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 26px; border-top: 2px solid var(--line); }
.pyr-tree li::after { right: auto; left: 50%; border-left: 2px solid var(--line); }
.pyr-tree > li::before, .pyr-tree > li::after { display: none; }
.pyr-tree li:only-child::before { display: none; }
.pyr-tree li:only-child::after { border-top: 0; border-radius: 0; }
.pyr-tree li:first-child::before, .pyr-tree li:last-child::after { border: 0 none; }
.pyr-tree li:last-child::before { border-right: 2px solid var(--line); border-radius: 0 10px 0 0; }
.pyr-tree li:first-child:not(:only-child)::after { border-radius: 10px 0 0 0; }
.pyr-tree ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 26px; border-left: 2px solid var(--line); }

.pyr-node { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); width: 250px; text-align: left; transition: box-shadow .15s, transform .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: 2px; }
.pyr-node.top { width: 270px; border: 2px solid var(--accent); }
.pyr-node.drop-on { outline-color: var(--accent); transform: scale(1.03); }
.pyr-dragging [data-drop-unit], .pyr-dragging [data-drop-person] { box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
[draggable="true"] { -webkit-user-drag: element; }

/* birim kutusu */
.pyr-node.unit { border-top: 6px solid var(--c, var(--faint)); cursor: pointer; }
.pyr-node.unit:hover { box-shadow: 0 0 0 2px var(--c, var(--accent)), var(--shadow); }
.pyr-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 6px 12px; }
.pyr-head .grow { min-width: 0; display: flex; flex-direction: column; }
.pyr-head b { font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.pyr-kind { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pyr-resp { padding: 2px 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.pyr-resp-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 6px 8px; }
.pyr-resp-row > div { display: flex; flex-direction: column; min-width: 0; }
.pyr-resp-row b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pyr-resp-row span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pyr-resp-row.empty { background: transparent; border: 2px dashed var(--line); }
.pyr-resp-row.empty .av { background: var(--surface-2); color: var(--faint); }
.pyr-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 7px 10px 7px 12px; font-size: 12px; color: var(--muted); }
.pyr-stack { display: inline-flex; }
.pyr-stack .av { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.pyr-stack:not(:empty) { margin-right: 6px; }
.pyr-enter { margin-left: auto; color: var(--accent); font-weight: 600; }

/* sirket yoneticisi kutusu */
.pyr-boss { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border-radius: 12px; padding: 10px; margin: 8px; color: var(--text); cursor: pointer; }
.pyr-boss span { display: flex; flex-direction: column; min-width: 0; }
.pyr-boss b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pyr-boss small { color: var(--muted); font-size: 12px; }

/* kisi kutusu */
.pyr-node.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; width: 170px; padding: 14px 10px 12px; cursor: pointer; }
.pyr-node.person:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.pyr-node.person.lead { width: 200px; border: 2px solid var(--accent); background: linear-gradient(var(--accent-soft), var(--surface) 60%); }
.pyr-node.person.sub { border-color: var(--warn); }
.pyr-node.person .av.lg { width: 56px; height: 56px; font-size: 22px; }
.pyr-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.pyr-who b { font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.pyr-who span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.pyr-flag { font-style: normal; font-size: 11px; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 1px 8px; margin-top: 4px; align-self: center; }
.pyr-grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px 16px; }
.pyr-grid .pyr-node.person { width: 150px; }
.pyr-grid.units .pyr-node { width: 250px; }
.pyr-loose.drop-on { outline: 3px solid var(--accent); }

/* birim ici baslik */
.pyr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pyr-crumbs a { color: var(--accent); }
.pyr-unit-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--faint)); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.pyr-unit-title h2 { margin: 0; font-size: 20px; }

.pyr-add { display: flex; border-top: 1px solid var(--line); }
.pyr-add button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; padding: 8px 4px; cursor: pointer; min-height: 38px; }
.pyr-add button + button { border-left: 1px solid var(--line); }
.pyr-add button:hover { color: var(--accent); background: var(--surface-2); }
.pyr-add svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .pyr-scroll { max-height: none; padding: 14px 4px 20px; }
  .pyr-node { width: 214px; }
  .pyr-node.top { width: 230px; }
  .pyr-node.person { width: 150px; }
  .pyr-unit-title .btn { flex: 1; justify-content: center; }
  .pyr-help { display: none; }
}

@media print {
  .pyr-tools, .pyr-add, .pyr-help { display: none !important; }
  .pyr-scroll { max-height: none; overflow: visible; }
}

/* ================================================================ akis haritasi (dugum editoru) */
.fm-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fm-live { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.fm-dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: fm-pulse 1.8s infinite; flex: none; }
@keyframes fm-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 107, .55); } 70% { box-shadow: 0 0 0 8px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }
.fm-viewers { display: inline-flex; }
.fm-viewer .av { margin-right: -5px; box-shadow: 0 0 0 2px var(--surface); }
.fm-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.fm-feed { width: 250px; margin: 0; max-height: 560px; overflow: auto; }
.fm-feed-row { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.fm-feed-row:last-child { border-bottom: 0; }
.fm-hint { margin: 8px 2px 14px; }

.fm-wrap { position: relative; height: calc(100vh - 290px); min-height: 420px; overflow: hidden; background-color: var(--surface-2);
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px); background-size: 22px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); touch-action: none; cursor: grab; user-select: none; }
.fm-wrap.dragging { cursor: grabbing; }
.fm-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; width: 1px; height: 1px; }
.fm-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.fm-wire-bg { fill: none; stroke: var(--surface); stroke-width: 7; opacity: .9; }
.fm-wire { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.fm-wire.live { stroke-dasharray: 10 8; animation: fm-flow 1s linear infinite; }
.fm-wire.temp { stroke: var(--accent); stroke-dasharray: 6 6; stroke-width: 3; }
@keyframes fm-flow { to { stroke-dashoffset: -18; } }
.fm-labels { position: absolute; left: 0; top: 0; }
.fm-tag { position: absolute; transform: translate(-50%, -50%); border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow); }
.fm-tag.due { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.fm-tag.late { color: #fff; background: var(--danger); border-color: var(--danger); font-weight: 600; }
.fm-tag:hover { transform: translate(-50%, -50%) scale(1.08); }

.fm-node { position: absolute; width: 250px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 12px; box-shadow: var(--shadow); cursor: default; }
.fm-node-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.fm-node-head.movable { cursor: move; }
.fm-node-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fm-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 13px; flex: none; }
.fm-total { font-size: 11px; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.fm-open { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--muted); }
.fm-open:hover { background: var(--surface-2); color: var(--accent); }
.fm-stage { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 16px; height: 34px; font-size: 13px; }
.fm-stage + .fm-stage { border-top: 1px dashed var(--line); }
.fm-stage i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.fm-sname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-stage em { font-style: normal; font-size: 10px; color: var(--faint); text-transform: uppercase; }
.fm-n { min-width: 22px; text-align: center; font-size: 12px; color: var(--faint); background: var(--surface-2); border-radius: 999px; padding: 0 6px; }
.fm-n.has { color: var(--accent-text); background: var(--accent); }
.fm-sock { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--faint); z-index: 1; }
.fm-sock.in { left: -8px; }
.fm-sock.out { right: -8px; cursor: crosshair; border-color: var(--c); }
.fm-sock.out:hover, .fm-sock.in.hot { transform: scale(1.35); background: var(--accent); border-color: var(--accent); }
.fm-dates { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 12px; padding: 7px 10px; text-align: left; cursor: pointer; border-radius: 0 0 12px 12px; }
.fm-dates.none { color: var(--muted); }
.fm-dates.late { color: var(--danger); font-weight: 600; }
.fm-dates:hover:not(:disabled) { background: var(--surface-2); }
.fm-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; }
.fm-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.fm-arrow { color: var(--accent); font-weight: 700; margin: 0 4px; }
.fm-arrow.big { font-size: 28px; align-self: center; }
.fm-chainbox, .fm-pick { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.fm-chainbox > div:not(.fm-arrow) { flex: 1; display: flex; flex-direction: column; background: var(--surface-2); border-radius: 10px; padding: 10px; }
.fm-pick > .card { flex: 1; margin: 0; }
.fm-flash { animation: fm-flash 2s ease-out; }
@keyframes fm-flash { 0%, 30% { box-shadow: 0 0 0 4px var(--warn), var(--shadow); } 100% { box-shadow: var(--shadow); } }
path.fm-flash { animation: fm-flash-path 2s ease-out; }
@keyframes fm-flash-path { 0%, 40% { stroke-width: 7; } 100% { stroke-width: 3.5; } }

/* zaman cizelgesi */
.tl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 14px; overflow-x: auto; }
.tl-scale { position: relative; height: 22px; margin-left: 170px; min-width: 560px; border-bottom: 1px solid var(--line); }
.tl-scale span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.tl-rows { position: relative; }
.tl-today { position: absolute; top: 0; bottom: 0; margin-left: 170px; width: 0; border-left: 2px dashed var(--danger); z-index: 2; pointer-events: none; }
.tl-today span { position: absolute; top: -2px; left: 4px; font-size: 10px; color: var(--danger); font-weight: 700; }
.tl-row { display: flex; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); }
.tl-name { width: 170px; flex: none; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-track { position: relative; flex: 1; min-width: 560px; height: 46px; }
.tl-bar { position: absolute; top: 9px; height: 26px; min-width: 14px; border: 0; border-radius: 7px; background: var(--c); color: #fff; font: inherit; font-size: 11px; font-weight: 600; padding: 0 8px; white-space: nowrap; overflow: hidden; cursor: pointer; text-align: left; }
.tl-bar.late { box-shadow: 0 0 0 2px var(--danger); }
.tl-mile { position: absolute; top: 8px; transform: translateX(-50%); border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.tl-mile i { width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); border: 2px solid var(--surface); }
.tl-mile.late i { background: var(--danger); }
.tl-mile span { font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.tl-add { position: absolute; top: 11px; left: 6px; border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: 7px; font: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer; }

@media (max-width: 860px) {
  .fm-layout { grid-template-columns: 1fr; }
  .fm-feed { width: auto; max-height: 220px; }
  .fm-wrap { height: 62vh; min-height: 360px; }
  .fm-chainbox, .fm-pick { flex-direction: column; }
  .fm-arrow.big { transform: rotate(90deg); }
}
@media print {
  .fm-zoom, .fm-hint { display: none !important; }
}

/* ================================================================ kapanis aciklamasi + is zinciri */
.result-opt { align-items: flex-start; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.result-opt input { margin-top: 3px; }
.result-task { background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-weight: 600; }
.result-box { background: var(--ok-soft); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
.result-line { font-size: 12px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.chain { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.chain-node { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 10px; font: inherit; color: var(--text); max-width: 200px; cursor: pointer; }
.chain-node b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain-node.here { border: 2px solid var(--accent); background: var(--accent-soft); cursor: default; }
.chain-node.prev:hover, .chain-node.next:hover { border-color: var(--accent); }
.chain-arrow { align-self: center; color: var(--accent); font-weight: 700; font-size: 18px; }

/* akis haritasi: asama sorumlulari + plan onayi */
.fm-sname[data-act] { cursor: pointer; }
.fm-sname[data-act]:hover { text-decoration: underline; text-decoration-style: dotted; }
.fm-owners { display: inline-flex; }
.fm-owners .av { margin-left: -4px; box-shadow: 0 0 0 2px var(--surface); }
.fm-owners em { font-style: normal; font-size: 10px; color: var(--muted); margin-left: 3px; }
.fm-owner-add { font-size: 11px; color: var(--faint); opacity: .7; }
.fm-stage:hover .fm-owner-add { opacity: 1; color: var(--accent); }
.fm-approved { font-size: 12px; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.owner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.owner-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; cursor: pointer; }
.owner-tile input { position: absolute; top: 8px; left: 8px; }
.owner-tile b { font-size: 13px; }
.owner-tile span { font-size: 11px; color: var(--muted); }
.owner-tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* akis panosu: gorsel zincir seridi + sutun sorumlulari */
.chain-strip { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 4px; }
.chain-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; border: 2px solid var(--c); background: var(--surface); color: var(--text); border-radius: 14px; padding: 8px 10px 6px; font: inherit; cursor: pointer; flex: none; }
.chain-step b { font-size: 22px; line-height: 1; color: var(--c); }
.chain-step span { font-size: 12px; white-space: nowrap; }
.chain-step em { display: inline-flex; margin-top: 2px; }
.chain-step em .av { margin-left: -4px; box-shadow: 0 0 0 2px var(--surface); }
.chain-step.son { border-style: double; border-width: 4px; }
.chain-step.onay { border-style: dashed; }
.chain-step:hover { background: var(--surface-2); }
.chain-ext { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.chain-ext:hover { border-color: var(--accent); color: var(--accent); }
.col-owners { display: inline-flex; margin-right: 6px; }
.col-owners .av { margin-left: -4px; box-shadow: 0 0 0 2px var(--surface); }
.col-flash { animation: fm-flash 1.2s ease-out; }

/* is listeleri: buyuk kutular */
.list-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.list-box { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 2px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; padding: 12px; font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.list-box.on { border-color: var(--accent); background: var(--accent-soft); }
.list-box:hover { border-color: var(--accent); }
.lb-name { font-weight: 700; font-size: 15px; }
.lb-num { font-size: 13px; color: var(--muted); }
.lb-num b { font-size: 22px; color: var(--text); margin-right: 2px; }
.lb-num em { font-style: normal; color: var(--warn); }
.lb-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: var(--ok); }
.lb-who { display: inline-flex; align-items: center; min-height: 20px; }
.lb-who .av { margin-right: -4px; box-shadow: 0 0 0 2px var(--surface); }
.lb-who em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 8px; }

/* ================================================================ sag tik menusu */
.ctx-menu { position: fixed; z-index: 95; min-width: 220px; max-width: 300px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 12, 18, .28), 0 2px 6px rgba(10, 12, 18, .12); padding: 5px;
  opacity: 0; transform: scale(.94); transition: opacity .12s ease, transform .12s ease; }
.ctx-menu.show { opacity: 1; transform: none; }
.ctx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: inherit; font: inherit; font-size: 14px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.ctx-menu button:hover, .ctx-menu button:focus-visible { background: var(--accent-soft); outline: none; }
.ctx-menu button.danger { color: var(--danger); }
.ctx-menu button.danger:hover { background: var(--danger-soft); }
.ctx-menu button:disabled { opacity: .45; cursor: default; }
.ctx-ico { width: 20px; flex: none; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.ctx-ico svg { width: 16px; height: 16px; }
.ctx-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-menu em { font-style: normal; font-size: 11px; color: var(--faint); }
.ctx-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.ctx-head { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-ctx] { -webkit-touch-callout: none; }
@media (max-width: 860px) { .ctx-menu { min-width: 240px; } .ctx-menu button { padding: 12px 10px; font-size: 15px; } }

/* birim kutusu: + dugmesi, ortak yoneticiler */
.pyr-plus { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 2px dashed var(--line); background: none;
  color: var(--muted); font: inherit; font-size: 12px; border-radius: 10px; padding: 6px; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.pyr-plus:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pyr-plus svg { width: 14px; height: 14px; }
.pyr-plus.big { flex-direction: column; width: 110px; min-height: 120px; align-self: stretch; font-size: 13px; }
.pyr-plus.big svg { width: 22px; height: 22px; }
.pyr-resp-row[data-ctx] { cursor: context-menu; }
.pyr-leaders { background: linear-gradient(var(--accent-soft), transparent); border: 2px solid var(--accent); border-radius: 16px; padding: 8px 10px 10px; box-shadow: var(--shadow); }
.pyr-leaders-title { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px 4px; }
.pyr-leaders-row { display: flex; gap: 10px; align-items: stretch; }
.pyr-leaders .pyr-node.person { box-shadow: none; }

/* yonetici secimi (birim penceresi) */
.lead-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; margin-top: 6px; padding: 2px; }
.lead-tile { position: relative; display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 10px; padding: 6px 8px; cursor: pointer; }
.lead-tile input { position: absolute; opacity: 0; pointer-events: none; }
.lead-tile span { display: flex; flex-direction: column; min-width: 0; }
.lead-tile b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-tile small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.lead-no { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* kisi secme penceresi + secim kutulari */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; max-height: 52vh; overflow: auto; padding: 2px; }
.pp-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; border: 2px solid var(--line);
  border-radius: 14px; padding: 12px 6px 10px; cursor: pointer; transition: border-color .12s, background .12s, transform .12s; }
.pp-tile:hover { border-color: var(--accent); }
.pp-tile input { position: absolute; top: 8px; left: 8px; }
.pp-tile b { font-size: 13px; }
.pp-tile span { font-size: 11px; color: var(--muted); }
.pp-tile small { font-size: 10px; color: var(--faint); }
.pp-tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.02); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 2px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 14px; padding: 14px; font: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.choice b { font-size: 15px; }
.choice span { font-size: 12px; color: var(--muted); }
.choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.choice.unit { border-left: 6px solid var(--c); }
.choice.on { border-color: var(--accent); }

/* piramit tepesi: sirket yonetimi (sahip + sirket yoneticileri) */
.pyr-node.top { width: auto; min-width: 270px; max-width: 920px; }
.pyr-top-title { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px 0; }
.pyr-top-row { display: flex; flex-wrap: wrap; gap: 0; }
.pyr-top-row .pyr-boss { flex: 1 1 220px; }

/* ================================================================ piramit: isaretci ile surukle + bagla tutamaci */
.pyr-node { touch-action: pan-x pan-y; }
.pyr-node[data-drag-unit], .pyr-node[data-drag-person] { cursor: grab; }
.pyr-dragging, .pyr-dragging * { cursor: grabbing !important; user-select: none; }
.whip { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: var(--faint); background: var(--surface); border: 1px solid var(--line); cursor: crosshair !important; touch-action: none;
  transition: color .12s, border-color .12s, transform .12s, background .12s; }
.pyr-node.unit .whip { top: -13px; left: -13px; right: auto; box-shadow: var(--shadow); }
.whip:hover { color: #e0a800; border-color: #f2c94c; background: #fff6d6; transform: scale(1.15) rotate(-20deg); }
.whip.inline { position: static; display: inline-grid; width: 20px; height: 20px; vertical-align: middle; }
.whip.inline svg { width: 12px; height: 12px; }
.whip-line { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 96; overflow: visible; }
.whip-path { fill: none; stroke: #f2c94c; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 6; animation: whip-dash .5s linear infinite;
  filter: drop-shadow(0 0 3px rgba(242, 201, 76, .7)); }
.whip-end { fill: #f2c94c; stroke: #fff; stroke-width: 2; }
@keyframes whip-dash { to { stroke-dashoffset: -14; } }
.pyr-ghost { position: fixed; left: 0; top: 0; z-index: 96; pointer-events: none; opacity: .92; box-shadow: 0 18px 40px rgba(10, 12, 18, .35) !important;
  transition: none; outline: none !important; }
.pyr-lifted { opacity: .35; transform: scale(.97); }
.pyr-node.drop-on, .pyr-leaders.drop-on, .pyr-loose.drop-on { outline: 3px solid #f2c94c !important; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(242, 201, 76, .25), var(--shadow); transform: scale(1.03); }
.pyr-node.top.drop-on { background: #fff6d6; }
@media (prefers-color-scheme: dark) { .pyr-node.top.drop-on { background: #3a3218; } .whip:hover { background: #3a3218; } }

.pyr-face { display: inline-flex; border-radius: 50%; transition: transform .12s; }
.pyr-face:hover { transform: translateY(-2px) scale(1.15); z-index: 1; }
.pyr-resp-row[data-drag-person], .pyr-face[data-drag-person] { cursor: grab; }

/* ================================================================ akis tuvali (Blender tarzi) */
.fc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
.fc-layout:has(> .fc-wrap:only-child) { grid-template-columns: 1fr; }
.fc-palette { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; align-self: start; display: flex; flex-direction: column; gap: 6px;
  max-height: calc(100vh - 300px); overflow: auto; }
.fc-pal-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fc-pal-team { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-left: 4px solid var(--tc); border-radius: 10px;
  background: var(--surface); cursor: grab; user-select: none; touch-action: none; font-size: 13px; transition: transform .12s, box-shadow .12s; }
.fc-pal-team:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.fc-keys { margin: 0; padding-left: 16px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.fc-wrap { position: relative; height: calc(100vh - 320px); min-height: 460px; overflow: hidden; outline: none; user-select: none; touch-action: none;
  background-color: var(--surface-2); background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px); background-size: 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: default; }
.fc-wrap.panning { cursor: grab; }
.fc-world { position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-origin: 0 0; }
.fc-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.fc-wire-bg { fill: none; stroke: var(--surface); stroke-width: 7; }
.fc-wire { fill: none; stroke-width: 3; stroke-linecap: round; }
.fc-wire.temp { stroke: #f2c94c; stroke-dasharray: 7 6; animation: whip-dash .5s linear infinite; }
.fc-labels { position: absolute; left: 0; top: 0; }
/* Kablo kopar dugmesi: her tuvalde hep gorunur, kablonun renginde; ustune gelince kirmizi */
.fc-edge-x { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--wc, var(--line)); background: var(--surface);
  color: var(--wc, var(--muted)); font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer; opacity: .9; transition: transform .12s, color .12s; padding: 0; z-index: 3; }
.fc-edge-x:hover { color: #fff; background: var(--danger); border-color: var(--danger); opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
.fm-tag { border-color: var(--wc, var(--line)); }
.fc-box { position: absolute; width: 250px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 12px; box-shadow: var(--shadow);
  transition: box-shadow .12s, outline-color .12s; outline: 3px solid transparent; outline-offset: 2px; }
.fc-box.sel { outline-color: #f2a73b; box-shadow: 0 0 0 4px rgba(242, 167, 59, .25), var(--shadow); }
.fc-box.drop-on { outline-color: #f2c94c; }
.fc-box.onay { border-style: dashed; border-top-style: solid; }
.fc-box.son { border-width: 2px; border-top-width: 5px; border-color: var(--ok); }
.fc-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; cursor: move; border-bottom: 1px solid var(--line); }
.fc-head i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.fc-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fc-head em { font-style: normal; font-size: 10px; color: var(--faint); text-transform: uppercase; }
.fc-n { font-size: 11px; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.fc-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px dashed var(--line); min-height: 34px; }
.fc-team { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; background: var(--surface-2); border-left: 3px solid var(--tc); border-radius: 6px; padding: 2px 4px 2px 3px; }
.fc-team .pic.xs { width: 16px; height: 16px; font-size: 9px; }
.fc-x { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px; }
.fc-x:hover { color: var(--danger); }
.fc-owners { display: inline-flex; cursor: pointer; }
.fc-owners .av { margin-left: -4px; box-shadow: 0 0 0 2px var(--surface); }
.fc-hint { font-size: 11px; color: var(--faint); }
.fc-mini { margin-left: auto; border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: 6px; font-size: 11px; padding: 1px 6px; cursor: pointer; }
.fc-mini:hover { border-color: var(--accent); color: var(--accent); }
.fc-cards { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.fc-card { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: grab; font-size: 12px;
  transition: border-color .1s, background .1s, opacity .1s; }
.fc-card:hover { border-color: var(--accent); }
.fc-card.sel { border-color: #f2a73b; background: rgba(242, 167, 59, .14); box-shadow: 0 0 0 1px #f2a73b; }
.fc-card.lifted { opacity: .35; }
.fc-card.closed .fc-card-t { text-decoration: line-through; color: var(--muted); }
.fc-card.pending { border-left: 3px solid var(--warn); }
.fc-card-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-due { font-size: 10px; color: var(--muted); white-space: nowrap; }
.fc-due.late { color: var(--danger); font-weight: 700; }
.fc-more { border: 0; background: none; color: var(--accent); font: inherit; font-size: 11px; cursor: pointer; text-align: left; padding: 2px 4px; }
.fc-empty { font-size: 11px; color: var(--faint); text-align: center; padding: 6px; }
.fc-add { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted);
  font: inherit; font-size: 12px; padding: 7px; cursor: pointer; border-radius: 0 0 12px 12px; }
.fc-add:hover { color: var(--accent); background: var(--surface-2); }
.fc-add svg { width: 14px; height: 14px; }
.fc-sock { position: absolute; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--faint); z-index: 2; }
.fc-sock.in { left: -8px; }
.fc-sock.out { right: -8px; border-color: var(--c); cursor: crosshair; touch-action: none; }
.fc-sock.out:hover { transform: scale(1.35); background: #f2c94c; border-color: #f2c94c; }
.fc-marquee { position: absolute; border: 1.5px dashed #f2a73b; background: rgba(242, 167, 59, .1); pointer-events: none; z-index: 5; }
.fc-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; }
.fc-selbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: var(--text); color: var(--bg); border-radius: 999px; padding: 6px 14px;
  font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; }
.fc-selbar a { color: inherit; text-decoration: underline; cursor: pointer; }
.fc-ghost { position: fixed; left: 0; top: 0; z-index: 96; pointer-events: none; background: var(--surface); color: var(--text); border: 2px solid #f2a73b; border-radius: 10px;
  padding: 6px 12px; font-size: 13px; box-shadow: 0 14px 30px rgba(10, 12, 18, .3); max-width: 240px; }
.fc-ghost.team { border-color: #f2c94c; font-weight: 700; }
.fc-color input { position: absolute; opacity: 0; }
.fc-color i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.fc-color input:checked + i { border-color: var(--text); }
@media (max-width: 860px) {
  .fc-layout { grid-template-columns: 1fr; }
  .fc-palette { max-height: none; flex-direction: row; flex-wrap: wrap; }
  .fc-palette .small, .fc-keys, .fc-pal-title:last-of-type { display: none; }
  .fc-wrap { height: 64vh; }
}

.del-warn { border-left: 4px solid var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 10px 12px; }
.del-warn p { margin: 6px 0 0; }

/* ================================================================ ortak liste araclari (arama, tarih, coklu secim) */
.lt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.lt-search { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 12px;
  min-width: 220px; flex: 1 1 240px; max-width: 420px; height: 36px; color: var(--muted); }
.lt-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lt-search input { border: 0; outline: 0; background: none; color: var(--text); font: inherit; width: 100%; }
.lt-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lt-dates .input.sm { height: 34px; }
.lt-quick { display: flex; gap: 4px; }
.lt-chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.lt-chip:hover { border-color: var(--accent); color: var(--accent); }
.lt-chip.clear { color: var(--danger); border-color: var(--danger-soft); }
.lt-count { margin-left: auto; }
.lt-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
.lt-n { font-size: 13px; }
.lt-check { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; cursor: pointer; }
.lt-check input { position: absolute; opacity: 0; pointer-events: none; }
.lt-check i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: background .1s, border-color .1s; }
.lt-check input:checked + i { background: var(--accent); border-color: var(--accent); }
.lt-check input:checked + i::after { content: '✓'; color: var(--accent-text); font-weight: 700; font-size: 14px; }
[data-lt-item] { position: relative; }
.row-item .lt-check { position: static; margin-right: 4px; }
[data-lt-item][hidden] { display: none !important; }
@media (max-width: 860px) { .lt-search { max-width: none; } .lt-count { margin-left: 0; width: 100%; } }

.lt-group:not(:has([data-lt-item]:not([hidden]))) { display: none; }
.lt-row { display: flex; align-items: center; }
.lt-row > .row-item { flex: 1; min-width: 0; }
.lt-row > .lt-check { position: static; margin-left: 8px; }
td > .lt-check { position: static; display: inline-grid; vertical-align: middle; margin-right: 6px; }

/* harita: secili kutu + toplanti */
.fm-node.sel { outline: 3px solid #f2a73b; outline-offset: 3px; }
.fm-selbar:empty { display: none; }
.fm-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(242, 167, 59, .12); border: 1px solid #f2a73b; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.meet-people { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.meet-p { border-radius: 50%; opacity: .45; transition: opacity .2s; position: relative; }
.meet-p.on { opacity: 1; box-shadow: 0 0 0 2px var(--ok); }
.meet-p.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.meet-card .meet-ico { font-size: 26px; }
.meet-card.kesin { opacity: .8; }
.meet-people em { font-style: normal; font-size: 11px; color: var(--muted); }
.aw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 280px; overflow: auto; padding: 2px; margin-top: 6px; }
.aw-tile { position: relative; display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 10px; padding: 6px 8px; cursor: pointer; }
.aw-tile input { position: absolute; opacity: 0; pointer-events: none; }
.aw-tile span { display: flex; flex-direction: column; min-width: 0; }
.aw-tile b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-tile small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.aw-cl { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; font-size: 13px; }
.aw-tabs { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.aw-tab { border: 2px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.aw-tab.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.aw-tab em { font-style: normal; color: var(--accent); font-weight: 700; }
.aw-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.aw-mode-opt { display: flex; gap: 8px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; }
.aw-mode-opt span { display: flex; flex-direction: column; }
.aw-mode-opt small { color: var(--muted); font-size: 11px; }
.aw-mode-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 860px) { .aw-mode { grid-template-columns: 1fr; } }

.ord-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: ord; }
.ord-list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: var(--surface); counter-increment: ord; }
.ord-list li::before { content: counter(ord); font-weight: 700; color: var(--accent); width: 18px; text-align: center; }
.ord-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }

/* organizasyon tuvali */
.oc-wrap { position: relative; height: calc(100vh - 230px); min-height: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; touch-action: none; outline: none;
  background-color: var(--bg); background-image: radial-gradient(circle, color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.oc-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.oc-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.oc-wire { fill: none; stroke-width: 3; }
.oc-wire.thin { stroke-width: 1.5; opacity: .55; }
.oc-wire.dash { stroke-dasharray: 9 7; }
.oc-wire.cl { stroke-dasharray: 3 6; stroke-width: 3.5; stroke-linecap: round; }
.oc-wire.temp { stroke: #f2c94c; stroke-width: 3; stroke-dasharray: 6 5; }
.oc-wire-bg { fill: none; stroke: var(--surface); stroke-width: 7; opacity: .7; }
.oc-labels { position: absolute; left: 0; top: 0; }
.oc-box { position: absolute; width: 230px; background: var(--surface); border: 2px solid var(--line); border-top: 6px solid var(--c); border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.12); user-select: none; }
.oc-box.sel { outline: 3px solid #f2a73b; outline-offset: 2px; }
.oc-box.drop-on, .oc-top.drop-on { outline: 3px dashed #f2c94c; outline-offset: 3px; }
.oc-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: grab; border-bottom: 1px solid var(--line); }
.oc-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-go { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 8px; width: 24px; height: 24px; cursor: pointer; font-weight: 700; }
.oc-leads { padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.oc-lead { display: flex; align-items: center; gap: 6px; }
.oc-lead span { display: flex; flex-direction: column; min-width: 0; }
.oc-lead b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-lead small { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-lead.empty { opacity: .6; }
.oc-foot { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px 8px; font-size: 11.5px; color: var(--muted); }
.oc-mx { color: var(--accent); font-weight: 600; }
.oc-sock { position: absolute; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c, var(--accent)); z-index: 2; }
.oc-sock.in { top: -12px; }
.oc-sock.out { bottom: -9px; }
.oc-sock[data-oc-whip] { cursor: crosshair; background: #f2c94c; }
.oc-sock[data-oc-whip]:hover { transform: scale(1.3); }
.oc-top { position: absolute; min-width: 300px; background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 8px 12px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.12); --c: var(--accent); }
.oc-top-title { font-weight: 700; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.oc-top-row { display: flex; flex-wrap: wrap; gap: 10px; }
.oc-boss { display: flex; align-items: center; gap: 6px; }
.oc-boss span { display: flex; flex-direction: column; }
.oc-boss b { font-size: 12.5px; }
.oc-boss small { font-size: 10.5px; color: var(--muted); }
.oc-frame { position: absolute; border: 2px dashed var(--c); border-radius: 18px; background: color-mix(in srgb, var(--c) 9%, transparent); }
.oc-frame.sel { border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, #f2a73b 70%, transparent); }
.oc-frame-head { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: grab; background: color-mix(in srgb, var(--c) 22%, transparent); border-radius: 16px 16px 0 0; }
.oc-frame-head .oc-sock.in { top: -12px; --c: var(--c); }
.oc-fmgr { display: flex; gap: 2px; }
.oc-frame-hint { padding: 18px; font-size: 12px; color: var(--muted); text-align: center; }
.oc-resize { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; cursor: nwse-resize; border-right: 3px solid var(--c); border-bottom: 3px solid var(--c); border-radius: 0 0 6px 0; }
.oc-legend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; color: var(--muted); }
.oc-legend i { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--muted); vertical-align: middle; margin-right: 4px; }
.oc-legend i.dash { border-top-style: dashed; }
.oc-legend i.cl { border-top: 3px dotted #9b8cf2; }
.oc-wrap.dragging { cursor: grabbing; }
.pyr-xm { display: block; font-style: normal; font-size: 10.5px; color: var(--accent); margin-top: 2px; }
.pyr-mx { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px; }
.pyr-mx span { font-size: 10.5px; border: 1px dashed var(--accent); color: var(--accent); border-radius: 999px; padding: 1px 7px; }
.pyr-mx span.cl { border-style: dotted; border-color: var(--cc); color: var(--cc); }
.xm-pick { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.xm-pick summary { cursor: pointer; }
.pw-row { display: flex; gap: 6px; }
.pw-row .input { flex: 1; }
@media (max-width: 860px) { .oc-wrap { height: calc(100vh - 260px); } .oc-legend { display: none; } }

.fc-team.cl { border-style: dotted; }
.fc-pal-cl { width: 22px; text-align: center; }

.meet-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; border: 2px solid var(--accent); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.meet-banner .meet-ico { font-size: 24px; }
.meet-banner span.grow { display: flex; flex-direction: column; }
.meet-banner small { color: var(--muted); }

/* toplanti: palet, akis ici, canli hareket */
.fm-layout.with-pal { grid-template-columns: 190px minmax(0, 1fr) auto; }
.fm-pal { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 290px); overflow: auto; padding-right: 4px; }
.fm-pal-flow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 10px; background: var(--surface); cursor: grab; user-select: none; touch-action: none; }
.fm-pal-flow b { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-pal-flow small { color: var(--muted); }
.fm-wrap.drop-on { outline: 3px dashed #f2c94c; outline-offset: -3px; }
.fm-node { cursor: grab; }
.fm-node.fm-remote { box-shadow: 0 0 0 3px #f2c94c; }
.fm-node.fm-remote::after { content: attr(data-who) ' taşıyor'; position: absolute; top: -24px; left: 8px; background: #f2c94c; color: #222; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.fm-enter { border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.fm-draft { font-size: 10px; font-weight: 700; color: #222; background: #f2c94c; border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.mf-wrap { height: calc(100vh - 300px); }
.mf-box .mf-tools { display: flex; gap: 4px; padding: 6px 8px 8px; flex-wrap: wrap; }
.mf-box .mf-tools button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 11px; cursor: pointer; }
.mf-box .mf-tools button:hover { border-color: var(--accent); }
.mf-box.fm-flash { box-shadow: 0 0 0 3px #f2c94c; }
.mf-add { position: absolute; left: 12px; bottom: 12px; }
@media (max-width: 860px) { .fm-layout.with-pal { grid-template-columns: 1fr; } .fm-pal { flex-direction: row; max-height: none; overflow-x: auto; } .fm-pal-flow { flex: none; } }

/* piramit: siraya birak + kumeler */
.pyr-node.unit.drop-before { box-shadow: -6px 0 0 #f2c94c; }
.pyr-node.unit.drop-after { box-shadow: 6px 0 0 #f2c94c; }
.pyr-tip { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; background: #f2c94c; color: #222; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pyr-tip.none { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.pyr-clusters { margin-top: 14px; border: 1px dashed var(--line); border-radius: 16px; padding: 10px 12px; }
.pyr-cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pyr-cl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pyr-cl { position: relative; width: 240px; border: 2px dashed var(--cc); border-radius: 14px; padding: 10px 12px 10px 30px; background: color-mix(in srgb, var(--cc) 10%, var(--surface)); }
.pyr-cl.drop-on { outline: 3px dashed #f2c94c; outline-offset: 3px; }
.pyr-cl .whip { position: absolute; left: 6px; top: 8px; }
.pyr-cl-title { display: flex; align-items: center; gap: 6px; }
.pyr-cl-title b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pyr-cl-units { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.pyr-cl-u { font-size: 11px; border-left: 4px solid var(--c); background: var(--surface); border-radius: 6px; padding: 2px 6px; }
.pyr-cl-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); }

.fc-pal-team span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fc-pal-sub { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-pal-new { margin-top: 6px; width: 100%; }

.meet-p { display: inline-flex; }
.meet-kick { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--danger, #e5484d); color: #fff; font-size: 11px; line-height: 16px; padding: 0; cursor: pointer; opacity: 0; transition: opacity .15s; }
.meet-p:hover .meet-kick, .meet-kick:focus { opacity: 1; }
@media (hover: none) { .meet-kick { opacity: .85; } }

/* piramitte kume ara dugumu */
.pyr-node.pyr-clnode { position: relative; min-width: 200px; max-width: 260px; border: 2px dashed var(--cc); border-radius: 16px; padding: 10px 12px 10px 32px;
  background: color-mix(in srgb, var(--cc) 12%, var(--surface)); text-align: left; }
.pyr-node.pyr-clnode .whip { position: absolute; left: 7px; top: 9px; }
.pyr-node.pyr-clnode.drop-on { outline: 3px dashed #f2c94c; outline-offset: 3px; }

/* Istatistik: Kisaca */
.kf-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.kf-chip { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.kf-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.kf-scope { width: auto; min-width: 200px; }
.kf-summary { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; margin-bottom: 14px; font-size: 16px; line-height: 1.6; }
.kf-summary p { margin: 2px 0; }
.kf-summary .good { color: var(--ok, #3fb37f); font-weight: 700; }
.kf-summary .bad { color: var(--danger, #e5484d); font-weight: 700; }
.kf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kf-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px; }
.kf-card.big .kf-big { font-size: 38px; }
.kf-card.warn { border-color: color-mix(in srgb, var(--warn, #e8a33b) 60%, var(--line)); }
.kf-card.light-ok { border-color: var(--ok, #3fb37f); background: color-mix(in srgb, var(--ok, #3fb37f) 8%, var(--surface)); }
.kf-card.light-warn { border-color: var(--warn, #e8a33b); background: color-mix(in srgb, var(--warn, #e8a33b) 8%, var(--surface)); }
.kf-card.light-danger { border-color: var(--danger, #e5484d); background: color-mix(in srgb, var(--danger, #e5484d) 8%, var(--surface)); }
.kf-ico { font-size: 32px; line-height: 1; }
.kf-main { min-width: 0; }
.kf-title { font-size: 13px; color: var(--muted); font-weight: 600; }
.kf-big { font-size: 26px; font-weight: 800; line-height: 1.2; }
.kf-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kf-trend { font-weight: 700; }
.kf-trend.good { color: var(--ok, #3fb37f); }
.kf-trend.bad { color: var(--danger, #e5484d); }
.kf-trend.flat { color: var(--muted); }
.kf-h { margin: 18px 0 8px; }
.kf-chart { margin-bottom: 14px; }
.kf-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.kf-person { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.kf-person.warn { border-color: color-mix(in srgb, var(--warn, #e8a33b) 60%, var(--line)); }
.kf-medal { position: absolute; top: -10px; left: -6px; font-size: 22px; }
.kf-foot { margin-top: 16px; }
@media (max-width: 720px) { .kf-grid { grid-template-columns: 1fr 1fr; } .kf-card { flex-direction: column; gap: 4px; } .kf-card.big .kf-big { font-size: 30px; } .kf-big { font-size: 22px; } }
