/* =========================================================
   PXE 3D — 3D modelleme & render (js/apps/uc.js)
   Bütün sınıflar os-uc- ile başlar.
   ========================================================= */
.os-uc { --uc: #E87D2B; --us: #4772B3; position: relative; height: 100%; overflow: hidden; background: #1D1D1D; color: #E6E6E6; container-type: inline-size; }
.os-uc-app { height: 100%; display: flex; flex-direction: column; }

/* üst çubuk */
.os-uc-top { flex: none; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 6px; background: #232323; border-bottom: 1px solid #111; }
.os-uc-menus { display: flex; gap: 1px; flex: none; }
.os-uc-menus button { padding: 5px 8px; border-radius: 5px; font-size: 12px; color: #BDBDBD; white-space: nowrap; }
.os-uc-menus button:hover, .os-uc-menus button.is-on { background: #3A3A3A; color: #fff; }
.os-uc-ws { display: flex; gap: 2px; flex: none; }
.os-uc-ws button { padding: 6px 10px; border-radius: 5px; font-size: 12px; color: #A8A8A8; white-space: nowrap; }
.os-uc-ws button:hover { color: #fff; }
.os-uc-ws button[aria-selected="true"] { background: #3D3D3D; color: #fff; box-shadow: inset 0 -2px 0 var(--uc); }
.os .os-uc-rb { height: 26px; padding: 0 12px; font-size: 10px; flex: none; margin-left: auto; }

/* iş sekmeleri (ortak .os-kat-bar, Blender grisine uyarlanmış) */
.os-uc .os-uc-kat { flex: none; background: #1A1A1A; border-bottom: 1px solid #111; padding: 0 4px; }
.os-uc .os-uc-kat button { height: 31px; padding: 0 13px; font-size: 11.5px; color: #9A9A9A; }
.os-uc .os-uc-kat button:hover { color: #fff; background: #262626; }
.os-uc .os-uc-kat button[aria-selected="true"] { color: #fff; background: #2E2E2E; }
.os-uc .os-uc-kat button[aria-selected="true"]::before { background: var(--uc); }

/* ana alan */
.os-uc-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 2px; background: #161616; }
.os-uc-vp { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.os-uc-vh { flex: none; height: 34px; display: flex; align-items: center; gap: 3px; padding: 0 6px; background: #2A2A2A; border-bottom: 1px solid #161616; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; }
.os-uc-vh::-webkit-scrollbar { display: none; }
.os-uc-hb { flex: none; height: 24px; padding: 0 9px; border-radius: 5px; background: #3A3A3A; color: #DADADA; font-size: 11.5px; }
.os-uc-hb:hover { background: #474747; color: #fff; }
.os-uc-hb[aria-pressed="true"], .os-uc-hb.is-on { background: var(--us); color: #fff; }
.os-uc-om { flex: none; padding: 0 6px; font-size: 11.5px; color: #9A9A9A; }
.os-uc-sep { flex: none; width: 1px; height: 18px; margin: 0 4px; background: #444; }
.os-uc-shade { flex: none; display: flex; gap: 1px; margin-left: auto; padding: 2px; border-radius: 6px; background: #1F1F1F; }
.os-uc-shade button { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 4px; color: #BDBDBD; font-size: 11px; }
.os-uc-shade button:hover { color: #fff; background: #333; }
.os-uc-shade button[aria-pressed="true"] { background: var(--us); color: #fff; }
.os-uc-shade svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.os-uc-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #333; touch-action: none; cursor: default; }
.os-uc-stage.is-drag { cursor: grabbing; }
.os-uc-stage.is-modal { cursor: move; }
.os-uc-cv, .os-uc-ov { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.os-uc-ov { pointer-events: none; }
.os-uc-prog { position: absolute; left: 50%; top: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(20, 20, 22, .86); border: 1px solid rgba(255, 255, 255, .1); transform: translateX(-50%); font-size: 12px; white-space: nowrap; }
.os-uc-prog b { font: 700 12px/1 var(--f-mono); color: var(--uc); }
.os-uc-prog i { width: 90px; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.os-uc-prog em { display: block; width: 0; height: 100%; background: var(--uc); }
.os-uc-done { position: absolute; left: 50%; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(20, 20, 22, .92); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transform: translateX(-50%); font-size: 12px; white-space: nowrap; }
.os .os-uc-done .btn { height: 28px; padding: 0 12px; font-size: 10px; }
.os-uc-x { width: 26px; height: 26px; border-radius: 50%; font-size: 17px; line-height: 1; color: #BDBDBD; }
.os-uc-x:hover { background: #3A3A3A; color: #fff; }
.os-uc-hint { position: absolute; left: 12px; bottom: 8px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 10px/1.2 var(--f-mono); color: rgba(255, 255, 255, .45); pointer-events: none; }

/* sağ paneller */
.os-uc-side { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 4px; background: #161616; }
.os-uc-side .os-pnl { flex: none; background: #2A2A2A; border-color: #1A1A1A; }
.os-uc-side .os-pnl-h { color: #B5B5B5; border-color: #1F1F1F; }
.os-uc-ol { max-height: 230px; overflow: auto; padding: 4px; }
.os-uc-olh, .os-uc-oli { display: flex; align-items: center; min-height: 24px; border-radius: 4px; font-size: 12px; }
.os-uc-olh { gap: 7px; padding: 0 6px; color: #CFCFCF; }
.os-uc-oli { padding-left: 14px; }
.os-uc-oli.is-ch { padding-left: 30px; }
.os-uc-oli > button[data-sel], .os-uc-oli > span { flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; gap: 7px; text-align: left; color: #DADADA; }
.os-uc-oli > button[data-sel] span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-uc-oli:hover { background: #333; }
.os-uc-oli.is-sel { background: #334D80; }
.os-uc-oli.is-sel > button[data-sel] { color: #FFB84D; }
.os-uc-oli.is-dim { opacity: .55; }
.os-uc-oli.is-dim:hover { background: none; }
.os-uc-oli.is-hid > button[data-sel] { opacity: .45; }
.os-uc-ic { width: 12px; height: 12px; flex: none; }
.os-uc-ic-mesh { background: var(--uc); clip-path: polygon(50% 4%, 98% 92%, 2% 92%); }
.os-uc-ic-cam { background: #9A9A9A; clip-path: polygon(0 22%, 66% 22%, 66% 40%, 100% 20%, 100% 80%, 66% 60%, 66% 78%, 0 78%); }
.os-uc-ic-sun { border-radius: 50%; background: #E2B33C; transform: scale(.75); box-shadow: 0 0 0 2px rgba(226, 179, 60, .35); }
.os-uc-ic-col { border-radius: 2px; border: 1.5px solid #CFCFCF; }
.os-uc-eye { position: relative; width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 4px; }
.os-uc-eye::before { content: ""; width: 12px; height: 8px; border: 1.5px solid #CFCFCF; border-radius: 50%; }
.os-uc-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #CFCFCF; }
.os-uc-eye:hover { background: rgba(255, 255, 255, .08); }
.os-uc-oli.is-hid .os-uc-eye { opacity: .3; }
.os-uc-pt { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid #1F1F1F; }
.os-uc-pt button { padding: 6px 10px; border-radius: 5px 5px 0 0; font-size: 11.5px; color: #A8A8A8; white-space: nowrap; }
.os-uc-pt button:hover { color: #fff; }
.os-uc-pt button[aria-selected="true"] { background: #333; color: #fff; box-shadow: inset 0 2px 0 var(--uc); }
.os-uc-pb { padding: 6px 12px 14px; }
.os-uc-gl { margin: 10px 0 6px; font: 700 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8F8F8F; }
.os-uc-v3 { display: grid; gap: 2px; }
.os-uc-v3 label { display: grid; grid-template-columns: 24px 1fr; align-items: center; overflow: hidden; border-radius: 4px; background: #1F1F1F; }
.os-uc-v3 span { height: 24px; display: grid; place-items: center; font: 700 10px/1 var(--f-mono); cursor: ew-resize; touch-action: none; -webkit-user-select: none; user-select: none; }
.os-uc-v3 .a0 { color: #FF3352; }
.os-uc-v3 .a1 { color: #8BDC00; }
.os-uc-v3 .a2 { color: #2890FF; }
.os-uc-v3 input { width: 100%; height: 24px; padding: 0 8px; border: 0; background: #3A3A3A; color: #EEE; font: 400 11.5px/1 var(--f-mono); text-align: right; outline: none; -moz-appearance: textfield; appearance: textfield; }
.os-uc-v3 input::-webkit-inner-spin-button, .os-uc-v3 input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.os-uc-v3 input:focus { background: #222; box-shadow: inset 0 0 0 1px var(--us); }
.os-uc-v3 input:disabled { opacity: .4; }
.os-uc-tip { margin-top: 12px; font-size: 11px; line-height: 1.7; color: #8F8F8F; }
.os-uc-tip kbd { opacity: .8; }
.os-uc-mh { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.os-uc-ball { --c: #888; --h: .5; --s: 20%; width: 46px; height: 46px; flex: none; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, var(--h)) 0, rgba(255, 255, 255, 0) var(--s)), radial-gradient(circle at 60% 66%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, .58) 100%), var(--c); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.os-uc-mn { font-size: 12.5px; font-weight: 600; }
.os-uc-sw { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.os-uc-sw button { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: transform .15s; }
.os-uc-sw button:hover:not(:disabled) { transform: scale(1.1); }
.os-uc-sw button[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
.os-uc-sw button:disabled { opacity: .35; cursor: default; }
.os-uc-rg { display: grid; grid-template-columns: 78px 1fr 40px; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; }
.os-uc-rg output { font: 400 10.5px/1 var(--f-mono); color: #999; text-align: right; }
.os .os-uc input[type="range"] { accent-color: var(--uc); }
.os-uc-wd { display: flex; flex-wrap: wrap; gap: 6px; }
.os .os-uc-wd .chip { height: 26px; padding: 0 10px; font-size: 11.5px; color: #E6E6E6; }
.os-uc-stats { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; padding: 10px 12px 12px; font: 400 11px/1.2 var(--f-mono); }
.os-uc-stats dt { color: #999; }
.os-uc-stats dd { text-align: right; color: #EEE; }
/* açıklama kutusu: sağ panelin ilk bölümü */
.os-uc-side .os-uc-katp { background: #262626; box-shadow: inset 0 2px 0 var(--uc); }
.os-uc-katp .os-kat .os-kat-t { font-size: 17px; }

/* zaman çizelgesi */
.os-uc-tl { flex: none; height: 76px; display: grid; grid-template-rows: 36px minmax(0, 1fr); background: #232323; border-top: 1px solid #111; }
.os-uc-tlc { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.os-uc-tlc button { width: 28px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 5px; background: #3A3A3A; color: #DDD; }
.os-uc-tlc button:hover { background: #474747; color: #fff; }
.os-uc-tlc svg { width: 13px; height: 13px; fill: currentColor; }
.os-uc .i-pause, .os-uc.is-playing .i-play { display: none; }
.os-uc.is-playing .i-pause { display: inline; }
.os-uc.is-playing .os-uc-play { background: var(--us); }
.os-uc-fr { flex: none; margin-left: 8px; font: 700 12px/1 var(--f-mono); color: var(--uc); }
.os-uc-tlc small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 10px/1 var(--f-mono); color: #8F8F8F; }
.os-uc-track { position: relative; margin: 0 16px 9px; border-radius: 4px; background: #1A1A1A; cursor: pointer; touch-action: none; }
.os-uc-ticks i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .08); }
.os-uc-ticks span { position: absolute; top: 3px; left: 3px; font: 400 9px/1 var(--f-mono); color: #777; }
.os-uc-kf { position: absolute; top: 64%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #E2B33C; transform: rotate(45deg); }
.os-uc-ph { position: absolute; top: -2px; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--us); pointer-events: none; }
.os-uc-ph::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 8px; border-radius: 2px; background: var(--us); }

/* durum çubuğu */
.os-uc-st { flex: none; height: 26px; display: flex; align-items: center; gap: 16px; padding: 0 12px; background: #232323; border-top: 1px solid #111; font: 400 10px/1 var(--f-mono); color: #8F8F8F; white-space: nowrap; overflow: hidden; }
.os-uc-s-doc { color: #EEE; font-weight: 700; }
.os-uc-s-r { margin-left: auto; }

/* açılır menü */
.os-uc-dd { position: absolute; z-index: 20; min-width: 230px; padding: 5px; border-radius: 8px; background: #2B2B2B; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: osUcIn .14s ease-out; }
.os-uc-dd button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 7px 10px; border-radius: 5px; font-size: 12.5px; text-align: left; white-space: nowrap; color: #E6E6E6; }
.os-uc-dd button:hover { background: var(--us); color: #fff; }
.os-uc-dd kbd { border: 0; padding: 0; font-size: 10px; opacity: .55; }
.os-uc-dd hr { margin: 4px 6px; border: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
@keyframes osUcIn { from { opacity: 0; transform: translateY(-4px); } }

/* dar pencere / telefon */
@container (max-width: 1100px) {
  .os-uc-shade span { display: none; }
}
@container (max-width: 860px) {
  .os-uc-app { overflow-x: hidden; overflow-y: auto; }
  .os-uc-main { display: contents; }
  .os-uc-top { order: 0; }
  .os-uc-vp { order: 1; flex: none; height: max(320px, 72cqw); }
  .os-uc-tl { order: 2; }
  .os-uc-side { order: 3; flex: none; overflow: visible; }
  .os-uc-st { order: 4; }
  .os-uc-ws, .os-uc-hint { display: none; }
  .os-uc-top { justify-content: space-between; }
  .os-uc-menus { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .os-uc-menus::-webkit-scrollbar { display: none; }
  .os-uc-ol { max-height: none; }
}
@container (max-width: 520px) {
  .os-uc-om, .os-uc-tlc small, .os-uc-s-sel { display: none; }
}

.os-uc:focus, .os-uc:focus-visible { outline: none; }
