/* Sanal ofis: 2D harita, üst bilgi, ofis asistanı ve paneller (office-map.js). */
.ofc-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ofc-stat { position: relative; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(150deg, rgba(150, 140, 255, .14), rgba(80, 100, 220, .05)), rgb(var(--sf) / .5); box-shadow: inset 0 0 0 1px rgba(170, 160, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .18); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.ofc-stat b { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.ofc-stat span { font-size: 11.5px; color: var(--ink-2); }
.ofc-stat.on b { color: #9db8ff; }
.ofc-stat.warn b { color: var(--warn); }
.ofc-sample { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 12px; font-size: 13px; }
.ofc-note { margin: -4px 4px 12px; }

.ofc-ai { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); margin-bottom: 14px; background: linear-gradient(120deg, rgba(120, 90, 255, .22), rgba(60, 110, 255, .1) 60%, rgb(var(--fg) / .04)), rgb(var(--sf) / .55); }
.ofc-ai input { width: 100%; margin-top: 8px; padding: 11px 14px; border: 0; border-radius: var(--r-md); background: var(--input); box-shadow: inset 0 0 0 1px rgba(180, 170, 255, .25); color: var(--ink); }
.ofc-ai > .primary { align-self: center; }
.ofc-ai .small-text { display: block; max-width: 80ch; }
.ofc-progress { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }
.ochips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ochip { padding: 4px 10px; border: 0; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
button.ochip:hover { color: var(--ink); background: var(--fill-2); }
.ochips.static .ochip { color: #dcd6ff; background: rgba(150, 130, 255, .14); }

.steps { display: inline-flex; align-items: center; flex-wrap: wrap; }
.steps > i { width: 12px; height: 2px; background: var(--hair); }
.step-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; background: #2a2e4f; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.step-dot.st-running { background: #4f6cff; box-shadow: 0 0 0 3px rgba(79, 108, 255, .3); }
.step-dot.st-done { background: #2f9e6e; }
.step-dot.st-waiting { background: #c99a1e; color: #1b1d2b; }
.step-dot.st-failed { background: #c94a4a; }
.step-dot.st-skipped { opacity: .4; }

.ofc-shell { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 14px; align-items: start; margin-bottom: 14px; }
.ofc-stage { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ofc-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ofc-search { flex: 1 1 200px; }
.ofc-search input, .ofc-tools select { width: 100%; padding: 9px 13px; border: 0; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); }
.ofc-tools select { width: auto; }
.ofc-states { display: flex; flex-wrap: wrap; gap: 6px; }
.state-chip, .jump { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.state-chip b { color: var(--ink); font-weight: 750; }
.state-chip[aria-pressed="true"] { color: var(--ink); background: rgba(120, 140, 255, .28); box-shadow: inset 0 0 0 1px rgba(160, 180, 255, .6); }
.state-chip i, .lg i { width: 8px; height: 8px; border-radius: 50%; background: #8a8fb0; }
.s-working > i { background: #6f8cff; }
.s-waiting > i { background: #ffc94d; }
.s-meeting > i { background: #b48cff; }
.s-done > i { background: #5fd49a; }
.s-alert > i { background: #ff7a7a; }
.s-idle > i { background: #8a8fb0; }
.ofc-jumps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jump { flex: none; }
.jump i, .dept-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dc); flex: none; }
.jump:hover { color: var(--ink); background: var(--fill-2); }
.ofc-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 4px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }

.ofc-map { position: relative; height: min(76vh, 820px); min-height: 420px; border-radius: 22px; overflow: hidden; background: #211610; box-shadow: inset 0 0 0 1px rgba(170, 160, 255, .18), 0 30px 60px -30px rgba(0, 0, 0, .7); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.ofc-map.panning { cursor: grabbing; }
.ofc-map.compact { height: 100%; min-height: 0; touch-action: auto; cursor: default; }
.ov-world .ofc-map.compact { height: 520px; }
.ofc-svg { display: block; width: 100%; height: 100%; font-family: var(--sans); }
.ofc-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 16px; }
.ofc-zoom button { width: 34px; height: 34px; border: 0; border-radius: 11px; background: var(--fill); color: var(--ink); font-size: 17px; font-weight: 700; }
.ofc-zoom button:hover { background: var(--fill-2); }

.shell-floor { fill: #151937; }
.shell-wall { fill: #1e2249; pointer-events: none; }
.shell-wall.side { fill: #191d40; }
.shell-front { fill: rgba(140, 150, 255, .14); pointer-events: none; }
.floor-grid { fill: url(#isoGrid); pointer-events: none; }
.ofc-room .floor { fill: color-mix(in srgb, var(--dc, #7aa8ff) 12%, #1c2043); stroke: color-mix(in srgb, var(--dc, #7aa8ff) 35%, #2c3260); stroke-width: 2; }
.ofc-room.meet .floor { fill: #1d2247; }
.ofc-room.lounge .floor { fill: #1f2145; }
.ofc-room.dept .floor, .ofc-room.meet { cursor: pointer; }
.ofc-room.dept .floor:hover, .ofc-room.meet:hover .floor { fill: color-mix(in srgb, var(--dc, #7aa8ff) 20%, #1c2043); }
.ofc-room.meet.is-live .floor { stroke: #9db8ff; stroke-width: 3; }
.ofc-room.dim { opacity: .3; }
/* Duvarlar: arkası renkli, önü alçak cam bölme. Tıklamayı engellemez. */
.wall, .wall-rim { pointer-events: none; }
.wall.back { fill: color-mix(in srgb, var(--dc, #7aa8ff) 46%, #262b52); }
.wall.side { fill: color-mix(in srgb, var(--dc, #7aa8ff) 34%, #1f2346); }
.wall-rim { fill: none; stroke: color-mix(in srgb, var(--dc, #7aa8ff) 70%, #fff); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wall.front { fill: var(--dc, #7aa8ff); fill-opacity: .32; stroke: color-mix(in srgb, var(--dc, #7aa8ff) 70%, #fff); stroke-opacity: .7; stroke-width: 1.5; }
.wall.front.side { fill-opacity: .14; }
.plaque rect { fill: rgba(12, 14, 32, .82); stroke: color-mix(in srgb, var(--dc, #fff) 70%, transparent); stroke-width: 1.5; }
.plaque text { font-size: 15px; font-weight: 750; fill: #fff; letter-spacing: .02em; }
.ofc-room .plaque[data-act] { cursor: pointer; }
.occ, .meet-sub { font-size: 13px; fill: rgba(255, 255, 255, .72); font-weight: 650; }
.lounge-t { font-size: 13px; font-weight: 800; fill: #4a3c75; letter-spacing: .2em; }

.ofc-desk { cursor: pointer; outline: none; transition: opacity .25s; }
.ofc-desk .hit { fill: transparent; stroke: none; }
.ofc-desk:hover .hit, .ofc-desk:focus-visible .hit { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.ofc-desk.picked .hit { fill: rgba(140, 160, 255, .12); stroke: #9db8ff; stroke-width: 2.5; }
.ofc-desk.found .hit { fill: rgba(255, 220, 120, .1); stroke: #ffd166; stroke-width: 2.5; }
.ofc-desk.dim { opacity: .22; }
.ofc-desk.s-off { opacity: .32; filter: grayscale(1); }
.ofc-desk .np rect { fill: rgba(10, 12, 28, .78); stroke: rgba(255, 255, 255, .12); }
.ofc-desk.is-lead .np rect { stroke: rgba(255, 255, 255, .45); }
.np-n { font-size: 12.5px; font-weight: 750; fill: #fff; }
.np-t { font-size: 9.5px; font-weight: 600; fill: rgba(255, 255, 255, .62); }
.crew rect { fill: #2f3566; }
.crew text { font-size: 10px; font-weight: 800; fill: #fff; }
.scr { fill: #20264d; }
.scr-lines rect { fill: rgba(160, 190, 255, .28); transform-box: fill-box; transform-origin: left center; }
.s-working .scr { fill: #2b3a8f; }
/* Çalışan görev varken ekrandaki satırlar dolar: iş sürüyor. */
.s-working .scr-lines rect { fill: rgba(190, 210, 255, .9); animation: ofc-fill 2.4s ease-in-out infinite; }
.s-working .scr-lines .l2 { animation-delay: .5s; }
.s-working .scr-lines .l3 { animation-delay: 1s; }
.s-working .scr-lines .l4 { animation-delay: 1.5s; }
.s-alert .scr { fill: #5a2230; }
.s-done .scr { fill: #1f4a3a; }
.s-done .scr-lines rect { fill: rgba(140, 240, 190, .7); }
@keyframes ofc-fill { 0% { transform: scaleX(.15); } 70%, 100% { transform: scaleX(1); } }
.bd-working .bd-bg { fill: #4f6cff; }
.bd-waiting .bd-bg { fill: #ffc94d; }
.bd-meeting .bd-bg { fill: #8b5cf6; }
.bd-done .bd-bg { fill: #5fd49a; }
.bd-alert .bd-bg { fill: #e5484d; }
.bd .bd-bg { stroke: rgba(10, 12, 28, .9); stroke-width: 2.5; }
.bd .spin { transform-box: fill-box; transform-origin: center; animation: ofc-spin 1.1s linear infinite; }
.bd-pulse { fill: #e5484d; opacity: .35; transform-box: fill-box; transform-origin: center; animation: ofc-pulse 1.6s ease-out infinite; }
@keyframes ofc-spin { to { transform: rotate(360deg); } }
@keyframes ofc-pulse { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
.ofc-desk.sending .hit { stroke: #ffd166; stroke-width: 2.5; fill: rgba(255, 209, 102, .08); }
.ofc-desk.receiving .hit { stroke: #6f8cff; stroke-width: 2.5; fill: rgba(111, 140, 255, .1); }

.route polyline { fill: none; stroke: rgba(185, 164, 255, .55); stroke-width: 3; stroke-dasharray: 10 8; }
.route.live polyline { stroke: rgba(150, 175, 255, .85); animation: ofc-dash 1.2s linear infinite; }
@keyframes ofc-dash { to { stroke-dashoffset: -36; } }
.rt-n circle { fill: #2a2e4f; stroke: #fff; stroke-width: 2; }
.rt-n text { font-size: 11px; font-weight: 800; fill: #fff; }
.rt-running circle { fill: #4f6cff; }
.rt-done circle { fill: #2f9e6e; }
.rt-waiting circle { fill: #c99a1e; }
.rt-failed circle { fill: #c94a4a; }
.fx-trail { fill: none; stroke: rgba(255, 209, 102, .7); stroke-width: 3; stroke-dasharray: 6 7; }
.fx-label rect { fill: rgba(10, 12, 28, .88); stroke: rgba(255, 209, 102, .5); }
.fx-label text { font-size: 12.5px; font-weight: 700; fill: #fff; }
.fx-doc { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.fx-n { font-size: 10px; font-weight: 800; fill: #fff; }

.ofc-panel { position: sticky; top: 0; max-height: calc(100vh - 140px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); scrollbar-width: thin; }
.ofc-dept-body { display: contents; }
.ofc-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.ofc-head h2 { font-size: 17px; }
.ofc-head .tag-row { margin-top: 6px; }
.ofc-head > .dept-dot { width: 12px; height: 12px; margin-top: 6px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--dc) 25%, transparent); }
.ofc-head .icon-btn { width: 30px; height: 30px; font-size: 12px; flex: none; }
.ofc-head .grow { min-width: 0; }
.ofc-av { flex: none; }
.dept-chip { cursor: pointer; border: 0; }
.ofc-needs { display: flex; flex-wrap: wrap; gap: 6px; }
.need { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--fill); }
.need.ok { color: var(--good); }
.need.no { color: var(--bad); }
.ofc-perf, .ofc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ofc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ofc-perf div, .ofc-kpis div { padding: 8px 9px; border-radius: 12px; background: var(--fill); min-width: 0; }
.ofc-perf b, .ofc-kpis b { display: block; font-size: 16px; }
.ofc-perf span, .ofc-kpis span { font-size: 11px; color: var(--ink-2); }
.ofc-kpis em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.kpi-empty { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ofc-form { display: flex; flex-direction: column; gap: 8px; }
.ofc-form textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--input); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); resize: vertical; }
.ofc-form .ochips { margin-top: 0; }
.ofc-form .task-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ofc-task, .ofc-meeting { padding: 10px; border-radius: 12px; background: var(--fill); display: flex; flex-direction: column; gap: 5px; }
.ofc-task-h { display: flex; align-items: flex-start; gap: 8px; }
.ofc-task-h .grow { min-width: 0; display: flex; flex-direction: column; }
.ofc-files { display: flex; flex-wrap: wrap; gap: 5px; }
.file-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, .92); color: #2b2650; }
.ofc-result { font-size: 12.5px; color: var(--ink); }
.ofc-people { display: flex; flex-direction: column; gap: 4px; }
.ofc-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; }
.ofc-person:hover { background: var(--fill); }
.ofc-person .grow { min-width: 0; display: flex; flex-direction: column; }
.ofc-person .grow .small-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.load i { display: block; height: 100%; background: linear-gradient(90deg, #6f8cff, #b48cff); }
.ofc-checks { display: flex; flex-direction: column; gap: 4px; }
.ofc-check { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; }
.ofc-check:hover { background: var(--fill); }
.ofc-more summary { cursor: pointer; font-size: 12.5px; font-weight: 650; color: var(--ink-2); padding: 6px 0; }
.ofc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ofc-steps li { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: var(--fill); }
.ofc-steps li.step-running { box-shadow: inset 0 0 0 1.5px #6f8cff; }
.ofc-steps li .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ofc-step-who { padding: 0; border: 0; background: none; align-self: flex-start; }
.ofc-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.ofc-project { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 0; border-radius: 14px; text-align: left; color: inherit; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.ofc-project:hover, .ofc-project.on { background: var(--fill-2); box-shadow: inset 0 0 0 1px rgba(160, 180, 255, .5); }

@media (max-width: 1200px) {
  .ofc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ofc-shell { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 900px) {
  .ofc-shell { grid-template-columns: 1fr; }
  .ofc-panel { position: static; max-height: none; }
  .ofc-map { height: 58vh; min-height: 340px; }
  .ofc-ai { grid-template-columns: 1fr; }
  .ofc-ai .ai-orb { display: none; }
  .ofc-ai > .primary { width: 100%; }
  .ofc-legend { display: none; }
}
@media (max-width: 560px) {
  .ofc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofc-stat b { font-size: 20px; }
  .ofc-tools select { flex: 1; }
  .ofc-perf, .ofc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-world .ofc-map.compact { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .ofc-svg * { animation: none !important; }
}

/* Çalışan detayı: ortada büyük avatar, aktif görevler, degrade görev butonu, durum noktası. */
.ofc-pane-t { display: flex; align-items: center; justify-content: space-between; }
.ofc-pane-t h2 { font-size: 18px; }
.ofc-pane-t .icon-btn { width: 30px; height: 30px; font-size: 12px; }
.ofc-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 12px; text-align: center; border-bottom: 1px solid var(--hair); }
.ofc-portrait { display: grid; place-items: center; width: 132px; height: 132px; margin-bottom: 8px; border-radius: 22px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--dc) 45%, #3b2f7a), #1b1840 75%); box-shadow: inset 0 0 0 2px rgba(190, 170, 255, .35), 0 14px 40px -12px color-mix(in srgb, var(--dc) 60%, transparent); }
.ofc-card h2 { font-size: 20px; letter-spacing: -.01em; }
.ofc-card .tag-row { justify-content: center; margin-top: 6px; }
.ofc-h { font-size: 15px; font-weight: 700; margin-top: 4px; }
.ofc-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ofc-todo li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ofc-todo i { width: 13px; height: 13px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.ofc-todo .t-running i { box-shadow: inset 0 0 0 2px #8fa6ff; background: radial-gradient(#8fa6ff 35%, transparent 40%); }
.ofc-todo .t-waiting i { box-shadow: inset 0 0 0 2px #ffc94d; }
.ofc-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 18px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #7b3cff, #a855f7 55%, #6d5cff); box-shadow: 0 10px 30px -8px rgba(140, 80, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s var(--spring), filter .2s; }
.ofc-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ofc-cta span { font-size: 20px; line-height: 1; }
.ofc-state { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ofc-state i { width: 10px; height: 10px; border-radius: 50%; background: #8a8fb0; }
.ofc-state.s-working i, .ofc-state.s-done i { background: #5fd49a; box-shadow: 0 0 0 4px rgba(95, 212, 154, .2); }
.ofc-state.s-waiting i { background: #ffc94d; box-shadow: 0 0 0 4px rgba(255, 201, 77, .2); }
.ofc-state.s-meeting i { background: #b48cff; }
.ofc-state.s-alert i { background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .25); }

/* ---------- Yaşayan ofis: kişiler, mola odaları, yürüme ---------- */
.ofc-pp { cursor: pointer; outline: none; transition: opacity .25s; }
.pp-hit { fill: transparent; }
.ofc-pp:hover .pp-hit, .ofc-pp:focus-visible .pp-hit { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .3); stroke-width: 2; }
.ofc-pp.picked .pp-hit { fill: rgba(140, 160, 255, .14); stroke: #9db8ff; stroke-width: 3; }
.ofc-pp.found .pp-hit { fill: rgba(255, 220, 120, .12); stroke: #ffd166; stroke-width: 3; }
.ofc-pp.dim { opacity: .22; }
.pp-shadow { fill: rgba(0, 0, 0, .28); }
.pp-name { opacity: 0; transition: opacity .15s; pointer-events: none; }
.pp-name rect { fill: rgba(10, 12, 28, .88); stroke: rgba(255, 255, 255, .25); }
.pp-name text { font-size: 13px; font-weight: 750; fill: #fff; }
.ofc-pp:hover .pp-name, .ofc-pp:focus-visible .pp-name, .ofc-pp.picked .pp-name, .ofc-pp.found .pp-name { opacity: 1; }
.pp-at.arriving { opacity: 0; }
.ofc-desk.is-away .scr { fill: #161a36; }
.ofc-desk.is-away .scr-lines { opacity: .25; }
.ofc-walker { pointer-events: none; }

/* Mola odaları */
.ofc-room.rest .floor { fill: color-mix(in srgb, var(--dc) 10%, #1d2045); }
.floor-tiles { fill: url(#isoGrid); pointer-events: none; opacity: .9; }
.ofc-room.kitchen .floor { fill: #262a4f; }
.rug { fill: rgba(180, 140, 255, .16); stroke: rgba(180, 140, 255, .3); stroke-width: 2; }
.tv-scr { fill: #1a2350; }
.is-gaming .tv-scr { animation: ofc-tv 2.6s linear infinite; }
.tv-game .car { fill: #ffd166; animation: ofc-car 2.2s ease-in-out infinite; }
.tv-game .car.b { fill: #ff6a8a; animation-delay: -1.1s; }
.tv-game .lane { fill: rgba(255, 255, 255, .35); }
.arc-scr { fill: #1d2140; }
.arc-scr.on { animation: ofc-arcade 1.4s steps(4) infinite; }
.brew-on { animation: ofc-blink 1s steps(2) infinite; }
.steam path { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.3; stroke-linecap: round; animation: ofc-steam 2s ease-out infinite; }
.steam path + path { animation-delay: -1s; }
@keyframes ofc-tv { 0% { fill: #2a3fa8; } 33% { fill: #7a2fa8; } 66% { fill: #1f8f6b; } 100% { fill: #2a3fa8; } }
@keyframes ofc-car { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(220px); } }
@keyframes ofc-arcade { 0% { fill: #ff6a8a; } 25% { fill: #ffd166; } 50% { fill: #5fd49a; } 75% { fill: #7aa8ff; } }
@keyframes ofc-blink { 50% { opacity: .25; } }
@keyframes ofc-steam { 0% { opacity: 0; transform: translateY(2px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }

/* Kişi hareketleri: her kişi kendi gecikmesiyle (--d) oynar, hepsi aynı anda değil. */
.act-coffee .hand-cup, .act-water .hand-cup, .act-snack .hand-cup, .act-eat .hand-cup { animation: ofc-sip 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ofc-sip { 0%, 55%, 100% { transform: translate(0, 0); } 65%, 82% { transform: translate(-9px, -15px); } }
.act-game .torso { animation: ofc-bounce 1.6s ease-in-out infinite; animation-delay: var(--d); }
.act-game .hand-game { animation: ofc-jiggle .35s ease-in-out infinite; }
@keyframes ofc-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes ofc-jiggle { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.2px); } }
.act-watch .torso { animation: ofc-bounce 4s ease-in-out infinite; animation-delay: var(--d); }
.act-pingpong .hand-paddle { transform-origin: 16px -4px; animation: ofc-swing 1.3s ease-in-out infinite; }
.act-pingpong .torso { animation: ofc-bounce .65s ease-in-out infinite; }
@keyframes ofc-swing { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(30deg); } }
.act-chat .hand-talk { animation: ofc-talk 1.8s ease-in-out infinite; animation-delay: var(--d); }
.act-chat .bubble { opacity: 0; animation: ofc-bubble 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ofc-talk { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
@keyframes ofc-bubble { 0%, 50%, 100% { opacity: 0; } 58%, 88% { opacity: 1; } }
.act-read .torso, .act-phone .torso { animation: ofc-bounce 5s ease-in-out infinite; animation-delay: var(--d); }
.act-arcade .torso { animation: ofc-jiggle .5s ease-in-out infinite; }
.act-type .torso { animation: ofc-bounce 1.1s ease-in-out infinite; animation-delay: var(--d); }
.act-type .tl { animation: ofc-key .32s ease-in-out infinite; }
.act-type .tr { animation: ofc-key .32s ease-in-out infinite; animation-delay: -.16s; }
@keyframes ofc-key { 50% { transform: translateY(-3px); } }
.act-done .hand-cheer { animation: ofc-cheer 1.2s ease-in-out infinite; }
@keyframes ofc-cheer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.act-alert .hand-wave { transform-origin: 20px -30px; animation: ofc-wave .9s ease-in-out infinite; }
@keyframes ofc-wave { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
/* Yürüme: bacaklar sırayla, eller sallanır, gövde hafifçe zıplar. */
.pose-walk .leg.l { animation: ofc-step .5s ease-in-out infinite; }
.pose-walk .leg.r { animation: ofc-step .5s ease-in-out infinite; animation-delay: -.25s; }
.pose-walk .torso { animation: ofc-bounce .25s ease-in-out infinite; }
.pose-walk .sl { animation: ofc-arm .5s ease-in-out infinite; }
.pose-walk .sr { animation: ofc-arm .5s ease-in-out infinite; animation-delay: -.25s; }
@keyframes ofc-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ofc-arm { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .pp-body *, .ofc-room * { animation: none !important; }
}

/* ---------- Çalışan penceresi ---------- */
.ofc-pop-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.ofc-pop-wrap[hidden] { display: none; }
.ofc-pop-bg { position: absolute; inset: 0; background: rgba(6, 7, 18, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: ofc-fade .18s ease-out; }
.ofc-pop { position: relative; width: min(620px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--dc) 22%, #1b1840), #121330 60%); box-shadow: inset 0 0 0 1px rgba(190, 170, 255, .28), 0 40px 90px -20px rgba(0, 0, 0, .8); animation: ofc-pop-in .22s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes ofc-fade { from { opacity: 0; } }
@keyframes ofc-pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.pop-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 12px; }
.pop-head h2 { font-size: 21px; letter-spacing: -.01em; }
.pop-head .tag-row { margin-top: 6px; }
.pop-head .icon-btn { align-self: flex-start; width: 34px; height: 34px; flex: none; }
.pop-portrait { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; flex: none; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--dc) 50%, #3b2f7a), #1b1840 75%); box-shadow: inset 0 0 0 2px rgba(190, 170, 255, .35); }
.pop-now { margin: 0 18px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); align-items: flex-start; }
.pop-now i { margin-top: 5px; flex: none; }
.pop-now .small-text { display: block; margin-top: 2px; }
.pop-tabs { display: flex; gap: 4px; padding: 12px 18px 0; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.pop-tabs button { flex: none; padding: 9px 13px; border: 0; border-radius: 12px 12px 0 0; background: none; color: var(--ink-2); font-weight: 650; font-size: 13.5px; }
.pop-tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 -2px 0 #f2783c; }
.pop-body { padding: 14px 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.pop-quick { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; border-top: 1px solid var(--hair); }
.rep-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 8px; }
.rep-grid select { width: 100%; }
.ofc-report { padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.ofc-report summary { cursor: pointer; display: flex; }
.ofc-report summary .grow { display: flex; flex-direction: column; }
.ofc-report h4 { font-size: 12px; color: var(--ink-2); margin: 8px 0 2px; }
.rep-lines { margin: 6px 0 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.rep-lines.kpi { color: var(--ink-2); font-size: 12.5px; }
body.ofc-pop-open { overflow: hidden; }
@media (max-width: 560px) {
  .ofc-pop-wrap { place-items: end stretch; padding: 0; }
  .ofc-pop { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .pop-portrait { width: 64px; height: 64px; }
  .rep-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Ofis rehberi: açılıp kapanan sohbet balonu ---------- */
.ofc-shell, .ofc-shell.has-sel, .ofc-shell.panel-open { grid-template-columns: minmax(0, 1fr); }
.ofc-shell .ofc-panel { position: fixed; right: 24px; bottom: 92px; top: auto; width: min(392px, calc(100vw - 32px)); max-height: min(72vh, 700px); z-index: 55; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(170, 160, 255, .22); transform-origin: bottom right; animation: ofc-panel-in .2s ease-out; }
@keyframes ofc-panel-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.ofc-panel-fab { position: fixed; right: 24px; bottom: 24px; z-index: 56; width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8a6bff, #5b8cff); box-shadow: 0 14px 34px -10px rgba(91, 140, 255, .8); cursor: pointer; }
.ofc-panel-fab svg { width: 24px; height: 24px; }
.ofc-panel-fab:hover { filter: brightness(1.08); }
.ofc-panel-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ofc-panel-fab.on { background: #2a2c4a; box-shadow: inset 0 0 0 1px rgba(170, 160, 255, .35); }
.fab-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #f2783c; color: #2a1c15; font-size: 11px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #0e1124; }
.ofc-grow { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(138, 107, 255, .1); box-shadow: inset 0 0 0 1px rgba(138, 107, 255, .3); }
.ofc-grow .ghost { align-self: flex-start; }
@media (max-width: 900px) {
  .ofc-shell .ofc-panel { right: 12px; left: 12px; width: auto; bottom: 84px; max-height: 68vh; }
  .ofc-panel-fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ofc-shell .ofc-panel { animation: none; } }

/* ---------- Pakette henüz açılmamış oda ---------- */
.ofc-room.locked .floor { fill: rgba(120, 125, 170, .06); stroke: rgba(170, 175, 230, .28); stroke-width: 2; stroke-dasharray: 10 8; }
.ofc-room.locked rect { fill: rgba(16, 18, 38, .82); stroke: rgba(170, 175, 230, .3); }
.ofc-room.locked .lock { fill: none; stroke: #a9a4c8; stroke-width: 2; }
.ofc-room.locked .lk-t { fill: #e6e3fb; font: 700 15px Inter, system-ui, sans-serif; }
.ofc-room.locked .lk-s { fill: #a9a4c8; font: 500 12.5px Inter, system-ui, sans-serif; }

/* Çalışan seviyesi */
.lvl-list { display: grid; gap: 8px; margin: 10px 0; }
.lvl-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #e3e3e3); border-radius: 12px; background: var(--card, #fff); }
.lvl-card.cur { border-color: var(--dc, #3f74d8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dc, #3f74d8) 25%, transparent); }
.lvl-card.past { opacity: .6; }
.lvl-card .grow { display: grid; gap: 2px; min-width: 0; }
.lvl-step { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: color-mix(in srgb, var(--dc, #3f74d8) 15%, transparent); color: var(--dc, #3f74d8); flex: none; }
.lvl-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted, #666); }
.lvl-total { margin-top: 4px; }

/* 3D ofis */
.ofc-map.o3-slot { position: relative; height: clamp(420px, 68vh, 820px); border-radius: 18px; overflow: hidden; background: #161827; }
.o3 { position: absolute; inset: 0; }
.ofc-scene #ofc3d, .ofc-scene .ofc-svg { touch-action: none; }
.o3 canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.o3 canvas:active { cursor: grabbing; }
.o3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.o3-label { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; white-space: nowrap; font: inherit; will-change: transform; }
.o3-label.room { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: #1b2230; box-shadow: 0 4px 16px rgba(20,30,50,.14); font-size: 13px; }
.o3-label.room b { font-weight: 700; }
.o3-label.room small { color: #5b6476; font-size: 11px; }
.o3-label.room i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.o3-label.room.dept { font-size: 14px; padding: 7px 14px; }
.o3-label.room.meet, .o3-label.room.kitchen, .o3-label.room.lounge, .o3-label.room.game { background: rgba(255,255,255,.8); font-size: 12px; }
.o3-label.room.locked { background: rgba(220,224,232,.92); color: #5b6476; cursor: default; font-size: 12px; }
.o3-label.room.far small { display: none; }
.o3-label.room.meet.far { display: none; }
.o3-label.room:hover:not(.locked) { background: #fff; box-shadow: 0 6px 20px rgba(20,30,50,.22); }
.o3-label.dim { opacity: .35; }
.o3-label.person { flex-direction: row; padding: 4px 9px; border-radius: 10px; background: rgba(23,28,38,.86); color: #fff; font-size: 11.5px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.o3-label.person i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.o3-label.person small { color: #c4ccda; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.o3-label.person.alert { background: #c8372d; }
.o3-label.person.alert small { color: #ffe1de; }
.o3-label.person.hover { background: #1b2230; outline: 2px solid #fff; }
.o3-zoom { position: absolute; right: 14px; bottom: 14px; }
.o3-wrap { position: relative; }
.ofc-dept-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ofc-dept-filter select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--menu);
  color: var(--ink);
  font-size: 16px;
}
.ofc-dept-filter button { min-height: 44px; white-space: nowrap; }
.ov-live .ofc-dept-filter { padding: 8px 10px 0; }
.ov-live .ov-live-hello { position: static; padding: 10px 12px 0; background: none; box-shadow: none; }
.ov-live .ov-live-actions { position: static; padding: 0 10px 10px; }
.ov-live .o3-zoom { position: static; flex-direction: row; justify-content: center; padding: 4px; border-radius: 0; }
.ov-live .o3-zoom button { min-width: 42px; height: 44px; }
.ov-live .o3-zoom [data-dir="fit"] { width: auto; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; }
.ov-live .ofc-fit-text { display: inline; font-size: 12px; }
.ofc-viewmode { margin-right: 4px; }
@media (max-width: 700px) { .ofc-map.o3-slot { height: 62vh; } .o3-label.room small { display: none; } }
/* 3D ofis: iş devri ve teslim notları */
.o3-note { position: absolute; left: 0; top: 0; pointer-events: none; padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); will-change: transform; }
.o3-note.done { background: #1f9d5c; color: #fff; }
.o3-note.flow { background: #3d6fd9; color: #fff; }
/* Arama sonuçları: yazılan departman/uzmanlıktaki kişiler listelenir. */
.ofc-search-wrap { position: relative; flex: 1 1 240px; min-width: 0; }
.ofc-search-wrap .ofc-search { display: block; }
.ofc-found { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--surface, #13131d); border: 1px solid var(--hair-2, rgba(255,255,255,.12)); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); }
.found-head { padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.found-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; }
.found-row:hover, .found-row:focus-visible { background: var(--fill-2); }
.found-row .grow { display: flex; flex-direction: column; min-width: 0; }
.found-row b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.found-row small { font-size: 12px; color: var(--ink-3); }
.found-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.found-row .state-chip { flex: none; pointer-events: none; }
/* 3D: filtre dışındaki kişi adları gizli, eşleşenler vurgulu */
.o3-label.person.dim { opacity: 0; pointer-events: none; }
.o3-label.person.found { box-shadow: 0 0 0 1.5px #f2783c, 0 0 18px -2px rgba(242, 120, 60, .9); }

/* Çalışan profili ve seviye etkileri */
.lvl-perks { margin: 4px 0 6px; padding-left: 18px; font-size: 12.5px; color: var(--muted, #8a8aa0); }
.lvl-perks li { margin: 1px 0; }
.lvl-card.locked { opacity: .55; }
.prof-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 6px; font-size: 14px; }
.prof-dl dt { color: var(--muted, #8a8aa0); }
.prof-dl dd { margin: 0; font-weight: 600; }
.ofc-needs .need small { font-weight: 400; opacity: .8; }
.prof-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prof-hist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line, rgba(127,127,127,.2)); border-radius: 10px; font-size: 13.5px; }
.prof-hist .small-text { display: block; }


.ofc-filter-block { min-width: 0; display: grid; gap: 8px; }
.ofc-fit-text { display: none; }
@media (max-width: 700px) {
  .ofc-page { display: flex; flex-direction: column; min-width: 0; }
  .ofc-page-head { order: -3; margin-bottom: 8px; }
  .ofc-page-head p { margin-block: 4px; }
  .ofc-page > .ofc-locked { order: -2; margin-bottom: 8px; }
  .ofc-page > .ofc-shell { order: -1; margin-bottom: 12px; }
  .ofc-stage > .ofc-scene { position: relative; order: -1; }
  .ofc-stage > .ofc-legend { display: none; }
  .ofc-page .ofc-map { height: clamp(270px, 47svh, 420px); min-height: 0; border-radius: 12px; }
  .ofc-page .o3-wrap { display: grid; gap: 6px; min-width: 0; }
  .ofc-page .ofc-zoom.o3-zoom { position: static; display: flex; flex-direction: row; justify-content: center; gap: 4px; padding: 4px; border-radius: 12px; }
  .ofc-page .ofc-zoom button { flex: 0 0 auto; min-width: 42px; height: 44px; }
  .ofc-page .o3-zoom [data-dir="fit"] { width: auto; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; }
  .ofc-fit-text { display: inline; font-size: 12px; }
  .ofc-page .ofc-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .ofc-page .ofc-stat { padding: 8px; }
  .ofc-page .ofc-stat b { font-size: 18px; }
  .ofc-page .ofc-search input, .ofc-page .ofc-tools select { font-size: 16px; }
  .ofc-page .ofc-tools select { min-width: 0; flex: 1 1 100%; }
  .ofc-page .ofc-states { gap: 4px; }
  .ofc-page .ofc-jumps { padding-bottom: 4px; }
  .ofc-page .ofc-panel-fab { position: static; justify-self: end; width: 44px; height: 44px; }
  .ofc-page .ofc-shell .ofc-panel { bottom: max(84px, calc(env(safe-area-inset-bottom) + 72px)); max-height: min(60svh, 460px); }
  .ofc-page .ofc-scene .ofc-dept-panel {
    position: absolute;
    inset: auto 6px 6px;
    z-index: 4;
    width: min(304px, calc(100% - 12px));
    max-height: min(29svh, 148px);
    margin-inline: auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--hair);
    border-radius: 12px;
    background: var(--panel, #17192d);
    box-shadow: 0 5px 20px rgb(0 0 0 / .32);
  }
  .ofc-page .ofc-scene:has(> .o3-wrap) .ofc-dept-panel { bottom: 66px; }
  .ofc-dept-panel .ofc-head { flex: none; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; }
  .ofc-dept-panel .ofc-head h2 { font-size: 14px; margin: 0; }
  .ofc-dept-panel .ofc-head .icon-btn { width: 40px; height: 40px; }
  .ofc-dept-body { display: grid; gap: 8px; min-height: 0; padding: 8px 10px; overflow-y: auto; overscroll-behavior: contain; }
  .o3-overview-labels .o3-label.room.dept { gap: 3px; padding: 2px 4px; font-size: 9px; line-height: 1.25; }
  .o3-overview-labels .o3-label.room.dept i { width: 5px; height: 5px; }
  .o3-label.room, .o3-label.room.dept { padding: 4px 7px; font-size: 11px; }
  .ov-live .ofc-map, .ov-live .ofc-map.compact, .ov-live .ov-live-3d { height: clamp(240px, 40svh, 350px); }
}
