/* AKIVO ENTERPRISE OS — HQ(어두운 건물 화면) + CONTENT OS(밝은 업무 화면) */
:root {
  --bg: #0a101c; --bg2: #0f1726; --panel: #121c2e; --panel2: #17233a; --line: #23314b; --line2: #2c3c5a;
  --tx: #e8eef8; --tx2: #9fb0c8; --tx3: #6f819c;
  --blue: #2f6bff; --blue2: #4d84ff; --green: #22c55e; --amber: #f5b301; --red: #ef4444; --violet: #a855f7;
  --o-bg: #f4f6fa; --o-card: #ffffff; --o-line: #e5e9f0; --o-tx: #0f172a; --o-tx2: #475569; --o-tx3: #94a3b8; --o-soft: #eef3ff;
  --radius: 14px; --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
#app { display: flex; height: 100vh; overflow: hidden; }

/* ---------- 왼쪽 층 메뉴 ---------- */
.rail { width: 232px; flex: none; background: linear-gradient(180deg, #0c1422, #0a101c); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; }
.brand { display: block; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.brand-mark { display: block; font-weight: 800; font-size: 22px; letter-spacing: .22em; }
.brand-sub { display: block; font-size: 10.5px; letter-spacing: .32em; color: var(--blue2); margin-top: 3px; font-weight: 700; }
.floor-nav { flex: 1; overflow-y: auto; padding: 10px 10px; }
.fl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; margin-bottom: 3px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; color: var(--tx2); transition: .15s; position: relative; }
.fl:hover { background: var(--panel); color: var(--tx); }
.fl.on { background: linear-gradient(90deg, rgba(47, 107, 255, .32), rgba(47, 107, 255, .1)); border-color: rgba(77, 132, 255, .55); color: #fff; }
.fl .no { font-weight: 800; font-size: 16px; width: 26px; color: var(--tx); }
.fl .nm { flex: 1; font-size: 13px; line-height: 1.25; }
.fl .nm small { display: block; font-size: 10.5px; color: var(--tx3); margin-top: 2px; }
.fl.on .nm small { color: #bcd0ff; }
.fl .st { width: 8px; height: 8px; border-radius: 50%; background: #475569; flex: none; }
.fl .st.live { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: pulse 2s infinite; }
.fl .st.ready { background: var(--amber); }
.fl.all { margin-bottom: 10px; border-color: var(--line); }
.fl.all .no { font-size: 15px; }
.rail-foot { padding: 12px; border-top: 1px solid var(--line); }
.ceo-card { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--panel); border-radius: 12px; }
.ceo-avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #1e293b, #334155); display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line2); }
.ceo-label { font-size: 11px; color: var(--tx3); }
.ceo-where { font-size: 13px; font-weight: 700; }
.rail-ver { font-size: 10.5px; color: var(--tx3); margin-top: 8px; text-align: center; }

/* ---------- 위 막대 ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 58px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.crumb { font-size: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb span { color: var(--tx3); font-weight: 500; margin: 0 6px; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(34, 197, 94, .1); color: #4ade80; font-size: 12px; font-weight: 600; flex: none; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.top-chips { display: flex; gap: 8px; margin-left: 8px; overflow: hidden; }
.tchip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 12px; color: var(--tx2); white-space: nowrap; }
.tchip b { color: var(--tx); font-size: 15px; margin-left: 6px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.clock { color: var(--tx2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bell { border: 1px solid var(--line2); background: var(--panel); border-radius: 10px; padding: 6px 12px; font-size: 12.5px; color: var(--tx2); }
.bell b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; margin-left: 4px; }
.bell b.zero { background: #334155; }
.icon-btn { border: 0; background: none; width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: inherit; font-size: 16px; }
.icon-btn:hover { background: rgba(127, 127, 127, .15); }
.only-mobile { display: none; }
.view { flex: 1; overflow: hidden; position: relative; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 건물 / 층 화면 ---------- */
.hq { display: flex; height: 100%; }
.stage { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #13213a, #070b14 70%); }
.scene { position: relative; width: 100%; height: 100%; transform-origin: center; transition: transform .35s ease; flex: none; }
.scene img.bg { width: 100%; height: 100%; display: block; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.band { position: absolute; left: 11%; right: 9%; border-radius: 6px; cursor: pointer; transition: .18s; border: 2px solid transparent; }
.band:hover, .band.hot { background: rgba(47, 107, 255, .16); border-color: rgba(120, 160, 255, .9); box-shadow: 0 0 0 4px rgba(47, 107, 255, .2), inset 0 0 40px rgba(47, 107, 255, .25); }
.band.live { border-color: rgba(34, 197, 94, .55); }
.band .tag { position: absolute; right: 8px; top: 6px; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; background: rgba(10, 16, 28, .82); color: var(--tx2); border: 1px solid var(--line2); backdrop-filter: blur(4px); }
.band.live .tag { color: #4ade80; border-color: rgba(34, 197, 94, .6); }
.band .tag.ready { color: #fcd34d; }
.dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c, var(--green)); border: 2px solid #fff; box-shadow: 0 0 8px var(--c, var(--green)); pointer-events: none; }
.dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c, var(--green)); animation: ping 1.8s infinite; }
.cover { position: absolute; z-index: 4; border-radius: 10px; background: linear-gradient(135deg, #0d1628, #13254a); border: 1px solid rgba(120, 160, 255, .7); display: flex; flex-direction: column; justify-content: center; padding: 0 6%; color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.cover b { font-size: clamp(9px, .95vw, 14px); letter-spacing: .02em; white-space: nowrap; }
.cover span { font-size: clamp(8px, .75vw, 11.5px); color: #93b4ff; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover:hover { border-color: #fff; }
.ceo-pin { position: absolute; left: 7.4%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #0b1324; border: 2px solid var(--blue2); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; z-index: 5; transition: top .9s cubic-bezier(.6, 0, .3, 1); box-shadow: 0 0 0 5px rgba(47, 107, 255, .25); }
.bubble { position: absolute; transform: translate(-50%, -110%); background: rgba(10, 16, 28, .9); border: 1px solid var(--line2); color: var(--tx); font-size: 11.5px; padding: 6px 9px; border-radius: 9px; white-space: nowrap; pointer-events: none; animation: rise .3s ease; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.bubble b { color: var(--c, #4ade80); }
.zone { position: absolute; transform: translate(-50%, -50%); padding: 7px 12px; border-radius: 10px; background: rgba(10, 16, 28, .85); border: 1px solid rgba(120, 160, 255, .6); color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; transition: .15s; }
.zone:hover { background: var(--blue); transform: translate(-50%, -50%) scale(1.06); }
.zone small { display: block; font-size: 10px; font-weight: 500; color: #bcd0ff; }
.agent-hit { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; background: transparent; }
.agent-hit .dot { left: 50%; top: 50%; pointer-events: none; }
.agent-hit.sel .dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.stage-ctl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(10, 16, 28, .85); border: 1px solid var(--line2); }
.stage-ctl button { border: 0; background: none; color: var(--tx); min-width: 34px; height: 30px; border-radius: 8px; white-space: nowrap; }
.stage-ctl button:hover { background: var(--panel2); }
.stage-ctl span { align-self: center; font-size: 12px; color: var(--tx2); min-width: 44px; text-align: center; }
.floor-badge { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 14px; background: rgba(10, 16, 28, .85); border: 1px solid var(--line2); }
.floor-badge b { font-size: 22px; width: 52px; height: 44px; display: grid; place-items: center; border: 1px solid var(--blue2); border-radius: 10px; }
.notready { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 10px 18px; border-radius: 12px; background: rgba(10, 16, 28, .88); border: 1px solid rgba(245, 179, 1, .55); color: #fde68a; font-size: 13px; text-align: center; z-index: 4; }
.notready a { color: #93b4ff; text-decoration: underline; }
.stage:has(.ticker) .floor-badge, .stage:has(.ticker) .stage-ctl { bottom: 56px; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: rgba(7, 11, 20, .9); border-top: 1px solid var(--line); font-size: 12px; color: var(--tx2); overflow: hidden; white-space: nowrap; }
.ticker .lbl { color: #4ade80; font-weight: 700; flex: none; }
.ticker .ev { flex: none; animation: rise .4s ease; }
.ticker .ev b { color: var(--tx); font-weight: 600; margin: 0 6px; }

.side { width: 320px; flex: none; border-left: 1px solid var(--line); background: var(--bg2); overflow-y: auto; padding: 16px; }
.card-d { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card-d h4 { margin: 0 0 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.card-d h4 .cnt { margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--tx2); }
.kv:last-child { border: 0; }
.kv b { color: var(--tx); }
.bar { height: 7px; border-radius: 4px; background: #1e2a40; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #6ea0ff); border-radius: 4px; transition: width .6s; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 13px; transition: .15s; white-space: nowrap; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #2559d9; }
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--tx2); }
.btn.ghost:hover { color: var(--tx); border-color: var(--tx3); }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }
.agent-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; cursor: pointer; }
.agent-row:hover, .agent-row.sel { background: var(--panel2); }
.agent-row .av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; }
.agent-row .in { flex: 1; min-width: 0; }
.agent-row .in b { display: block; font-size: 12.5px; }
.agent-row .in small { display: block; color: var(--tx3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-row .pct { font-size: 11.5px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.statline { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4ade80; }
.statline i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.statline.idle { color: var(--tx3); }
.statline.wait { color: #fcd34d; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--tx2); }
.mini-list li:last-child { border: 0; }
.mini-list li b { color: var(--tx); font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dept-chips span { padding: 5px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); font-size: 12px; color: var(--tx2); }

/* 5F 탭 */
.f5-tabs { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(10, 16, 28, .88); border: 1px solid var(--line2); }
.f5-tabs a { padding: 7px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--tx2); }
.f5-tabs a.on { background: var(--blue); color: #fff; }

/* ---------- CONTENT OS (밝은 업무 화면) ---------- */
.os { display: flex; height: 100%; background: var(--o-bg); color: var(--o-tx); }
.os-nav { width: 214px; flex: none; background: #fff; border-right: 1px solid var(--o-line); display: flex; flex-direction: column; overflow-y: auto; }
.os-brand { padding: 18px 18px 12px; }
.os-brand .t { font-size: 10.5px; letter-spacing: .3em; color: var(--o-tx3); font-weight: 700; }
.os-brand .n { font-size: 19px; font-weight: 300; letter-spacing: .04em; margin-top: 2px; }
.os-brand .n b { font-weight: 800; }
.os-brand .s { font-size: 11px; color: var(--o-tx3); margin-top: 6px; line-height: 1.4; }
.os-nav a { display: flex; align-items: center; gap: 10px; margin: 1px 10px; padding: 9px 10px; border-radius: 10px; color: var(--o-tx2); }
.os-nav a:hover { background: #f1f5f9; }
.os-nav a.on { background: var(--o-soft); color: var(--blue); }
.os-nav a .no { width: 22px; height: 22px; border-radius: 7px; background: #f1f5f9; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--o-tx2); flex: none; }
.os-nav a.on .no { background: var(--blue); color: #fff; }
.os-nav a .lb b { display: block; font-size: 13px; font-weight: 600; color: var(--o-tx); }
.os-nav a.on .lb b { color: var(--blue); }
.os-nav a .lb small { font-size: 11px; color: var(--o-tx3); }
.os-nav a .badge { margin-left: auto; font-size: 10.5px; padding: 1px 6px; border-radius: 8px; background: #fee2e2; color: #dc2626; font-weight: 700; }
.os-nav .sep { height: 1px; background: var(--o-line); margin: 8px 14px; }
.os-nav .mode { margin: auto 12px 14px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--o-line); font-size: 11.5px; color: var(--o-tx2); }
.os-nav .mode .seg { margin-top: 8px; }
.os-main { flex: 1; overflow-y: auto; padding: 24px 28px 60px; min-width: 0; }
.os-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.os-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.os-head h1 small { font-size: 14px; color: var(--o-tx3); font-weight: 500; margin-left: 8px; }
.os-head p { margin: 6px 0 0; color: var(--o-tx2); }
.os-head .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.os .btn.ghost { border-color: var(--o-line); color: var(--o-tx2); background: #fff; }
.os .btn.ghost:hover { border-color: #cbd5e1; color: var(--o-tx); }
.os .btn.dark { background: #0f172a; color: #fff; }
.os .btn.soft { background: var(--o-soft); color: var(--blue); }
.os .btn.ok { background: #16a34a; color: #fff; }
.os .btn.warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.os .btn.danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.c { background: var(--o-card); border: 1px solid var(--o-line); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.c + .c { margin-top: 14px; }
.c h3 { margin: 0 0 14px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.c h3 small { font-weight: 500; color: var(--o-tx3); font-size: 12px; }
.c h3 .r { margin-left: auto; display: flex; gap: 6px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.mt { margin-top: 14px; }
.muted { color: var(--o-tx3); }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f1f5f9; color: var(--o-tx2); white-space: nowrap; }
.pill.blue { background: #e0e9ff; color: #1d4ed8; }
.pill.green { background: #dcfce7; color: #15803d; }
.pill.amber { background: #fef3c7; color: #b45309; }
.pill.red { background: #fee2e2; color: #b91c1c; }
.pill.violet { background: #f3e8ff; color: #7e22ce; }
.pchip { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--pc); color: #fff; font-size: 10.5px; font-weight: 800; }
.pchip.off { background: #e2e8f0; color: #94a3b8; }
.bdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ai-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f1f5f9; color: #64748b; border: 1px dashed #cbd5e1; }
.ai-badge.on { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* 파이프라인 단계 카드 (대시보드 예시 이미지 구성) */
.pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.step { position: relative; background: #fff; border: 1px solid var(--o-line); border-radius: 14px; padding: 14px; cursor: pointer; transition: .15s; }
.step:hover { border-color: #93b4ff; box-shadow: var(--shadow); transform: translateY(-2px); }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 800; background: var(--sc, #e0e9ff); color: var(--st, #1d4ed8); }
.step b { display: block; margin-top: 10px; font-size: 14px; }
.step .ko { font-size: 12.5px; font-weight: 600; color: var(--o-tx2); }
.step small { display: block; font-size: 11px; color: var(--o-tx3); margin-top: 4px; min-height: 28px; }
.step .cnt { margin-top: 8px; font-size: 20px; font-weight: 800; }
.step .cnt span { font-size: 11px; color: var(--o-tx3); font-weight: 500; margin-left: 4px; }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: #cbd5e1; font-size: 13px; z-index: 1; }
.todo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.todo div { border: 1px solid var(--o-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.todo div:hover { border-color: #93b4ff; }
.todo b { font-size: 24px; display: block; }
.todo span { font-size: 12px; color: var(--o-tx2); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { border: 1px solid var(--o-line); background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--o-tx); }
.quick button:hover { border-color: var(--blue); color: var(--blue); }

/* 표 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--o-line); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.tbl th { text-align: left; font-weight: 600; color: var(--o-tx3); background: #f8fafc; padding: 10px 12px; border-bottom: 1px solid var(--o-line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fafcff; }
.tbl .t { font-weight: 600; max-width: 320px; }
.tbl a.lnk { color: var(--blue); }

/* 폼 */
.f { display: grid; gap: 6px; margin-bottom: 12px; }
.f label, .lbl { font-size: 12px; font-weight: 600; color: var(--o-tx2); }
.inp, .os select, .os textarea, .os input[type=text], .os input[type=date], .os input[type=datetime-local], .os input[type=time], .os input[type=number], .os input[type=password], .os input[type=url], .modal input[type=text], .modal select, .modal textarea, .modal input[type=date], .modal input[type=datetime-local], .modal input[type=password], .modal input[type=number] {
  width: 100%; border: 1px solid var(--o-line); background: #fff; border-radius: 10px; padding: 9px 11px; color: var(--o-tx); outline: none; transition: .15s;
}
.os textarea, .modal textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.os input:focus, .os select:focus, .os textarea:focus, .modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(47, 107, 255, .14); }
.seg { display: inline-flex; padding: 3px; background: #f1f5f9; border-radius: 10px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--o-tx2); }
.seg button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.ck { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--o-line); border-radius: 10px; font-size: 12.5px; cursor: pointer; background: #fff; user-select: none; }
.ck input { margin: 0; accent-color: var(--blue); }
.ck.on { border-color: var(--blue2); background: var(--o-soft); color: #1d4ed8; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--o-line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--o-tx3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-color: var(--blue); }
.empty { text-align: center; padding: 34px 16px; color: var(--o-tx3); border: 1px dashed #cbd5e1; border-radius: 14px; background: #fbfcfe; }
.empty b { display: block; color: var(--o-tx2); font-size: 14px; margin-bottom: 6px; }

/* 브리핑 카드 */
.brief-head { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; border-radius: 18px; padding: 22px 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.brief-head .k { font-size: 11px; letter-spacing: .25em; color: #93c5fd; font-weight: 700; }
.brief-head h2 { margin: 4px 0; font-size: 26px; }
.brief-head .d { color: #cbd5e1; font-size: 13px; }
.brief-head .nums { margin-left: auto; display: flex; gap: 26px; }
.brief-head .nums div { text-align: center; }
.brief-head .nums b { display: block; font-size: 32px; font-weight: 800; }
.brief-head .nums span { font-size: 12px; color: #cbd5e1; }
.idea { background: #fff; border: 1px solid var(--o-line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; align-content: start; transition: .15s; }
.idea.st-채택 { border-color: #86efac; background: #f7fef9; }
.idea.st-보류 { border-color: #fde68a; }
.idea.st-제외 { opacity: .55; }
.idea h4 { margin: 0; font-size: 15.5px; line-height: 1.4; }
.idea .why { font-size: 12.5px; color: var(--o-tx2); background: #f8fafc; border-radius: 10px; padding: 9px 11px; line-height: 1.5; }
.idea .why b { color: #1d4ed8; }
.decide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #f1f5f9; padding: 3px; border-radius: 10px; }
.decide button { border: 0; background: none; padding: 7px 0; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--o-tx2); }
.decide button.on[data-v=대기] { background: #fff; color: var(--o-tx); }
.decide button.on[data-v=채택] { background: #16a34a; color: #fff; }
.decide button.on[data-v=보류] { background: #f59e0b; color: #fff; }
.decide button.on[data-v=제외] { background: #64748b; color: #fff; }
.note { font-size: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 9px 11px; border-radius: 10px; line-height: 1.5; }
.note.blue { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* 프리셋 슬롯 1~100 */
.slots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.slot { aspect-ratio: 1; border: 1px dashed #cbd5e1; border-radius: 9px; display: grid; place-items: center; font-size: 11px; color: var(--o-tx3); background: #fff; position: relative; padding: 2px; text-align: center; line-height: 1.15; overflow: hidden; }
.slot.full { border: 1px solid var(--bc, var(--blue)); background: color-mix(in srgb, var(--bc, var(--blue)) 10%, #fff); color: var(--o-tx); font-weight: 600; font-size: 10px; }
.slot.full i { position: absolute; left: 4px; top: 2px; font-style: normal; font-size: 9px; color: var(--o-tx3); }
.slot.sel { outline: 2px solid var(--blue); outline-offset: 1px; }
.slot:hover { border-color: var(--blue2); }

/* 플랫폼 미리보기 */
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pv { background: #fff; border: 1px solid var(--o-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.pv.ok { border-color: #86efac; box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.pv-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--o-line); }
.pv-top b { font-size: 13px; }
.pv-top .r { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.pv-media { aspect-ratio: var(--ar, 16/9); max-height: 260px; background: linear-gradient(135deg, var(--pc, #334155), #0f172a); color: #fff; display: grid; place-items: center; padding: 16px; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.35; position: relative; margin: 0 auto; width: 100%; }
.pv-media small { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 600; opacity: .8; }
.pv-body { padding: 10px 12px; display: grid; gap: 6px; flex: 1; }
.pv-body input, .pv-body textarea { font-size: 12.5px !important; }
.pv-body textarea { min-height: 110px !important; }
.pv-foot { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--o-line); align-items: center; }

/* 캘린더 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--o-line); border-radius: 12px; overflow: hidden; background: var(--o-line); gap: 1px; }
.cal .h { background: #f8fafc; padding: 8px; font-size: 11.5px; font-weight: 700; color: var(--o-tx3); text-align: center; }
.cal .d { background: #fff; min-height: 96px; padding: 6px; font-size: 11px; }
.cal .d.other { background: #fafbfc; color: #cbd5e1; }
.cal .d.today { box-shadow: inset 0 0 0 2px var(--blue2); }
.cal .d .dn { font-weight: 700; margin-bottom: 4px; }
.cal .ev { display: flex; gap: 4px; align-items: center; padding: 2px 4px; border-radius: 5px; margin-bottom: 2px; background: #f1f5f9; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.cal .ev .pchip { min-width: 18px; height: 15px; font-size: 8.5px; padding: 0 3px; }
.cal .ev.done { background: #dcfce7; }

/* 차트 */
.kpi { background: #fff; border: 1px solid var(--o-line); border-radius: 14px; padding: 16px; }
.kpi span { font-size: 12px; color: var(--o-tx3); }
.kpi b { display: block; font-size: 26px; font-weight: 800; margin-top: 4px; }
.kpi em { font-style: normal; font-size: 12px; color: #16a34a; font-weight: 700; }
.chart svg { width: 100%; height: auto; display: block; }
.hbar { display: grid; grid-template-columns: 110px 1fr 60px; gap: 10px; align-items: center; font-size: 12px; margin-bottom: 8px; }
.hbar .tr { height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 5px; }
.score { display: inline-flex; gap: 3px; }
.score i { width: 5px; height: 14px; border-radius: 2px; background: #e2e8f0; }
.score i.on { background: var(--blue); }
.lineage { display: grid; gap: 6px; }
.lin-root { font-weight: 700; padding: 10px 12px; border-radius: 10px; background: #0f172a; color: #fff; }
.lin-kids { border-left: 2px solid #cbd5e1; margin-left: 16px; padding-left: 14px; display: grid; gap: 6px; }
.lin-kid { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--o-line); border-radius: 10px; background: #fff; font-size: 12.5px; }

/* 성장 카드 */
.opp { background: #fff; border: 1px solid var(--o-line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.opp .lift { font-size: 12px; font-weight: 800; color: #16a34a; background: #dcfce7; padding: 3px 9px; border-radius: 999px; }
.opp h4 { margin: 0; font-size: 16px; line-height: 1.4; }
.opp .m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.opp .m div { background: #f8fafc; border-radius: 10px; padding: 8px 4px; }
.opp .m b { display: block; font-size: 16px; }
.opp .m span { font-size: 11px; color: var(--o-tx3); }
.grow-banner { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1px solid #bbf7d0; }
.grow-banner .n { text-align: center; min-width: 90px; }
.grow-banner .n b { font-size: 26px; display: block; }
.grow-banner .n span { font-size: 12px; color: var(--o-tx2); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--o-line); border-radius: 12px; cursor: pointer; margin-bottom: 8px; }
.opt.on { border-color: var(--blue2); background: var(--o-soft); }
.opt b { display: block; }
.opt small { color: var(--o-tx2); }

/* 스튜디오 파이프라인 */
.sp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sp-step { border: 1px solid var(--o-line); border-radius: 14px; padding: 14px; background: #fff; display: grid; gap: 8px; align-content: start; }
.sp-step.done { border-color: #86efac; background: #f7fef9; }
.sp-step .h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sp-step .h i { width: 24px; height: 24px; border-radius: 8px; background: #e0e9ff; color: #1d4ed8; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.sp-step.done .h i { background: #16a34a; color: #fff; }
.sp-step small { color: var(--o-tx3); font-size: 11.5px; line-height: 1.45; }
.scene-list { display: grid; gap: 8px; }
.scene-row { display: grid; grid-template-columns: 34px 1fr 120px; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--o-line); border-radius: 10px; background: #fff; }
.scene-row .no { font-weight: 800; color: var(--o-tx3); text-align: center; }
.scene-row .img { width: 120px; aspect-ratio: 9/16; max-height: 120px; border-radius: 8px; background: #e2e8f0 center/cover; display: grid; place-items: center; font-size: 10px; color: #64748b; text-align: center; padding: 4px; }
.sub-line { font-family: var(--font); font-size: 12.5px; padding: 6px 9px; border-radius: 7px; background: #f8fafc; border: 1px solid var(--o-line); margin-bottom: 4px; display: flex; gap: 8px; }
.sub-line span { color: var(--o-tx3); font-variant-numeric: tabular-nums; flex: none; }

/* ---------- 편집기 (어두운 작업 화면) ---------- */
.ed { background: #0d1320; color: #e2e8f0; border-radius: 16px; border: 1px solid #1e293b; overflow: hidden; }
.ed-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #1e293b; flex-wrap: wrap; }
.ed-top .t { font-weight: 700; margin-right: 6px; }
.ed .btn.ghost { border-color: #334155; color: #cbd5e1; background: transparent; }
.ed .btn.ghost:hover { border-color: #64748b; color: #fff; }
.ed .btn.ghost.on { border-color: var(--blue2); color: #fff; background: rgba(47, 107, 255, .25); }
.ed-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 270px; min-height: 460px; }
.ed-bin { border-right: 1px solid #1e293b; padding: 10px; overflow-y: auto; max-height: 520px; }
.ed-bin .drop { border: 1px dashed #334155; border-radius: 10px; padding: 14px 8px; text-align: center; font-size: 11.5px; color: #94a3b8; margin-bottom: 8px; cursor: pointer; }
.ed-bin .drop.over { border-color: var(--blue2); background: rgba(47, 107, 255, .12); }
.media { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; cursor: grab; font-size: 11.5px; border: 1px solid transparent; }
.media:hover { background: #172033; }
.media.sel { border-color: var(--blue2); background: rgba(47, 107, 255, .15); }
.media .th { width: 48px; height: 32px; border-radius: 5px; background: #1e293b center/cover; flex: none; display: grid; place-items: center; font-size: 10px; color: #94a3b8; }
.media .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media .nm small { display: block; color: #64748b; }
.media .unused { font-size: 9.5px; color: #f59e0b; }
.ed-pv { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; background: #080c15; gap: 10px; }
.ed-pv .cv-wrap { position: relative; display: grid; place-items: center; width: 100%; height: 380px; }
.ed-pv canvas { max-width: 100%; max-height: 380px; background: #000; box-shadow: 0 0 0 1px #1e293b; cursor: move; }
.ed-pv .ctrl { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 12px; color: #94a3b8; }
.ed-pv .ctrl button { border: 0; background: #1e293b; color: #fff; border-radius: 8px; padding: 6px 10px; }
.ed-pv .ctrl .play { background: var(--blue); width: 40px; }
.ed-insp { border-left: 1px solid #1e293b; padding: 12px; overflow-y: auto; max-height: 520px; font-size: 12px; }
.ed-insp h5 { margin: 4px 0 8px; font-size: 12px; color: #94a3b8; letter-spacing: .04em; }
.ed-insp .grp { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #1e293b; }
.ed-insp label { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: #cbd5e1; }
.ed-insp label > span:first-child { width: 64px; flex: none; color: #94a3b8; }
.ed-insp input[type=range] { flex: 1; accent-color: var(--blue2); min-width: 0; }
.ed-insp input[type=number], .ed-insp input[type=text], .ed-insp select, .ed-insp textarea { background: #111a2b; border: 1px solid #263349; color: #e2e8f0; border-radius: 7px; padding: 5px 7px; width: 70px; font-size: 12px; }
.ed-insp input[type=text], .ed-insp textarea, .ed-insp select { flex: 1; width: auto; min-width: 0; }
.ed-insp input[type=color] { width: 30px; height: 26px; border: 0; padding: 0; background: none; border-radius: 6px; }
.ed-insp .val { width: 40px; text-align: right; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.ed-insp .mini { display: flex; gap: 4px; flex-wrap: wrap; }
.ed-insp .mini button { border: 1px solid #263349; background: #111a2b; color: #cbd5e1; border-radius: 6px; padding: 4px 7px; font-size: 11px; }
.ed-insp .mini button.on { border-color: var(--blue2); background: rgba(47, 107, 255, .25); color: #fff; }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.swatches i { width: 20px; height: 20px; border-radius: 5px; border: 1px solid #334155; cursor: pointer; display: inline-block; }
.swatches button { width: 20px; height: 20px; border-radius: 5px; border: 1px dashed #475569; background: none; color: #94a3b8; font-size: 12px; line-height: 1; padding: 0; }
.pos9 { display: grid; grid-template-columns: repeat(3, 18px); gap: 3px; }
.pos9 button { width: 18px; height: 18px; border-radius: 4px; border: 1px solid #334155; background: #111a2b; padding: 0; }
.pos9 button.on { background: var(--blue2); border-color: var(--blue2); }
.tl { border-top: 1px solid #1e293b; padding: 8px 10px 12px; user-select: none; }
.tl-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; }
.tl-bar .btn { padding: 5px 9px; font-size: 11.5px; }
.tl-scroll { overflow-x: auto; position: relative; }
.tl-inner { position: relative; min-width: 100%; }
.tl-ruler { height: 20px; position: relative; border-bottom: 1px solid #1e293b; font-size: 9.5px; color: #64748b; cursor: pointer; }
.tl-ruler span { position: absolute; top: 3px; transform: translateX(2px); border-left: 1px solid #334155; padding-left: 3px; height: 16px; }
.tl-track { position: relative; height: 54px; border-bottom: 1px solid #141c2c; background: #0b111c; }
.tl-track.sub { height: 34px; }
.tl-track .lb { position: sticky; left: 0; z-index: 3; display: inline-block; font-size: 10px; color: #64748b; padding: 2px 5px; background: #0b111c; }
.clip { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; background: #1d4ed8; border: 1px solid #3b82f6; overflow: hidden; font-size: 10.5px; color: #fff; padding: 3px 8px; cursor: grab; white-space: nowrap; }
.clip.aud { background: #065f46; border-color: #10b981; }
.clip.img { background: #6d28d9; border-color: #a78bfa; }
.clip.sub { background: #92400e; border-color: #f59e0b; top: 4px; bottom: 4px; }
.clip.sel { box-shadow: 0 0 0 2px #fff; z-index: 2; }
.clip canvas.wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.clip .hd { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; background: rgba(255, 255, 255, .25); z-index: 2; }
.clip .hd.l { left: 0; }
.clip .hd.r { right: 0; }
.clip .nm { position: relative; z-index: 1; pointer-events: none; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #ef4444; z-index: 5; pointer-events: none; }
.playhead::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #ef4444; }
.tl.blade .tl-track { cursor: crosshair; }
.kbd { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; border: 1px solid #334155; color: #94a3b8; }

/* 사진 꾸미기 편집기 */
.pe-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 560px; }
.pe-stage { background: #080c15; display: grid; place-items: center; padding: 16px; position: relative; }
.pe-stage canvas { max-width: 100%; max-height: 620px; box-shadow: 0 0 0 1px #1e293b; cursor: grab; }
.pe-stage .hint { position: absolute; bottom: 10px; font-size: 11.5px; color: #64748b; }
.text9 { display: grid; gap: 4px; }
.text9 .blk { border: 1px solid #1e293b; border-radius: 8px; padding: 6px; }
.text9 .blk > b { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.text9 input[type=text] { width: 100%; margin-bottom: 3px; }

/* ---------- 모달·알림 ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(2, 6, 23, .55); display: grid; place-items: center; z-index: 100; padding: 16px; animation: rise .2s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); background: #fff; color: var(--o-tx); border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--o-line); }
.modal-head h3 { margin: 0; font-size: 16px; flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--o-line); }
.modal .btn.ghost { border-color: var(--o-line); color: var(--o-tx2); }
.confirm-msg { margin: 0; line-height: 1.6; white-space: pre-line; }
.toast-root { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 200; }
.toast { background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: rise .25s ease; max-width: 360px; border-left: 4px solid var(--blue); }
.toast.ok { border-color: var(--green); }
.toast.err { border-color: var(--red); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .4s; }
.spin { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- 반응형 ---------- */
@media (max-width: 1280px) {
  .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step:nth-child(4)::after { display: none; }
  .ed-body { grid-template-columns: 180px minmax(0, 1fr) 240px; }
}
@media (max-width: 1100px) {
  .side { width: 280px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
  .sp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-body, .pe-body { grid-template-columns: 1fr; }
  .ed-bin, .ed-insp { max-height: none; border: 0; border-bottom: 1px solid #1e293b; }
  .top-chips { display: none; }
}
@media (max-width: 860px) {
  .rail { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: .25s; }
  .rail.open { transform: none; box-shadow: 10px 0 40px rgba(0, 0, 0, .5); }
  .only-mobile { display: inline-grid; }
  .topbar { padding: 0 12px; gap: 8px; }
  .crumb { font-size: 16px; }
  .clock { display: none; }
  .hq { flex-direction: column; overflow-y: auto; }
  .stage { flex: none; height: min(62vh, 92vw); }
  .band .tag { display: none; }
  .band.live .tag { display: block; font-size: 9px; padding: 2px 6px; }
  .cover span { display: none; }
  .floor-badge { display: none; }
  .side { width: auto; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .os { flex-direction: column; overflow-y: auto; }
  .os-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--o-line); flex: none; }
  .os-brand, .os-nav .sep, .os-nav .mode { display: none; }
  .os-nav a { flex: none; margin: 6px 2px; }
  .os-nav a .lb small { display: none; }
  .os-main { padding: 16px; overflow: visible; }
  .pipe, .todo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .brief-head .nums { margin-left: 0; }
  .sp { grid-template-columns: 1fr; }
  .f5-tabs { top: 8px; }
  .ticker { display: none; }
}

/* ---------- 3D 오피스 ---------- */
.stage3d { display: block; }
.w3d { position: absolute; inset: 0; }
.w3d canvas { display: block; width: 100% !important; height: 100% !important; outline: none; touch-action: none; }
.w3d-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tx2); font-size: 13px; }
.w3d-ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.w3d-zone { position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: 9px; background: rgba(10, 16, 28, .86); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; pointer-events: auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.w3d-zone small { display: block; font-size: 10px; font-weight: 500; color: #bcd0ff; }
.w3d-zone.link { border-color: rgba(120, 160, 255, .75); cursor: pointer; }
.w3d-zone.link:hover { background: var(--blue); }
.w3d-zone::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-top-color: rgba(10, 16, 28, .86); border-bottom: 0; }
.w3d-tag { position: absolute; left: 0; top: 0; padding: 5px 9px; border-radius: 8px; background: rgba(10, 16, 28, .9); border: 1px solid #3b82f6; font-size: 11.5px; white-space: nowrap; color: #fff; }
.w3d-tag b { margin-right: 6px; }
.w3d-tag span { color: #4ade80; }
.w3d-bubble { position: absolute; left: 0; top: 0; padding: 5px 9px; border-radius: 9px; background: rgba(255, 255, 255, .95); color: #0f172a; font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: rise .3s ease; }
.ref-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #070b14; z-index: 3; }
.stage-ctl button.on { background: var(--blue); }
.checks3d { list-style: none; margin: 0; padding: 0; }
.checks3d li { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 12.5px; color: var(--tx2); }
.checks3d li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #475569; flex: none; }
.checks3d li.done { color: var(--tx); }
.checks3d li.done::before { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 3px var(--panel); }
.stage3d .notready { top: 64px; }
.f5-tabs a { white-space: nowrap; }
@media (max-width: 860px) {
  .stage3d { height: 58vh; }
  .w3d-zone { font-size: 10px; padding: 3px 7px; }
  .w3d-zone small { display: none; }
  .f5-tabs a { padding: 5px 10px; font-size: 11.5px; }
  .stage3d .notready { top: 52px; font-size: 11px; width: 90%; }
  .stage-ctl { right: 8px; bottom: 8px; }
}
