/* myAGV Pro 물류창고 시뮬레이터 — 이 페이지 전용 스타일 */
html, body.agvsim { height: 100%; margin: 0; }
body.agvsim { display: flex; flex-direction: column; background: var(--bg, #0c1015); color: var(--text, #e5e7eb); font-family: var(--sans, 'Pretendard Variable', system-ui, sans-serif); }

.as-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--border, #253040); flex-wrap: wrap; font-size: 14px; }
.as-back { color: var(--text-dim, #9ca3af); text-decoration: none; }
.as-field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim, #9ca3af); }
.as-field select { padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border, #253040); background: var(--bg-elev-2, #161c24); color: var(--text, #e5e7eb); font: inherit; }
.as-link { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border, #253040); color: var(--text-dim, #9ca3af); }
.as-link.on { color: #22c55e; border-color: #22c55e; }
.as-help-link { font-size: 12px; color: var(--accent, #38bdf8); }

.as-main { flex: 1; display: flex; min-height: 0; }
.as-view { position: relative; flex: 1; min-width: 0; outline: none; }
.as-view canvas.three { display: block; width: 100%; height: 100%; }
.as-minimap { position: absolute; right: 10px; top: 10px; width: 260px; height: 220px; border-radius: 8px; background: rgba(10, 14, 19, .82); border: 1px solid rgba(255, 255, 255, .15); }
.as-hud { position: absolute; left: 10px; top: 10px; font: 12px/1.55 var(--mono, ui-monospace, monospace); background: rgba(10, 14, 19, .78); color: #e5e7eb; padding: 6px 10px; border-radius: 8px; white-space: pre; pointer-events: none; }
.as-hud .bad { color: #f87171; font-weight: 700; }
.as-hud .ok { color: #4ade80; }
.as-hud .warn { color: #fbbf24; }
.as-toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(220, 38, 38, .92); color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; }

.as-panel { width: 300px; overflow: auto; border-left: 1px solid var(--border, #253040); padding: 6px 14px 14px; font-size: 13px; }
.as-panel h3 { font-size: 13px; margin: 14px 0 6px; }
.as-row { display: flex; gap: 6px; margin-bottom: 6px; }
.as-row button { flex: 1; }
.as-panel button { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border, #253040); background: var(--bg-elev-2, #161c24); color: var(--text, #e5e7eb); font: inherit; font-size: 12.5px; cursor: pointer; }
.as-panel button.on { border-color: #22c55e; color: #22c55e; }
.as-panel button.danger { border-color: #dc2626; color: #fff; background: #b91c1c; font-weight: 700; }
.as-slider { display: block; margin: 6px 0; font-size: 12px; color: var(--text-dim, #9ca3af); }
.as-slider span { float: right; font-family: var(--mono, monospace); color: var(--accent, #38bdf8); }
.as-slider input { width: 100%; }
.as-check { display: block; font-size: 12.5px; margin: 3px 0; }
.as-keys { font-size: 12px; line-height: 2; }
.as-keys kbd { display: inline-block; min-width: 22px; text-align: center; padding: 0 5px; border: 1px solid var(--border, #253040); border-radius: 4px; background: var(--bg-elev-2, #161c24); font-family: var(--mono, monospace); }
.as-note { font-size: 11.5px; color: var(--text-faint, #64748b); line-height: 1.55; margin: 6px 0; }
.as-wheels { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.as-wheels th, .as-wheels td { padding: 3px 4px; border-bottom: 1px solid var(--border, #253040); text-align: left; }
.as-wheels td:last-child { text-align: right; font-family: var(--mono, monospace); color: var(--accent, #38bdf8); }
.as-src { font-size: 11px; color: var(--text-faint, #64748b); line-height: 1.6; margin-top: 16px; }

/* Playground 안에 들어갈 때(?embed=1): 3D 화면 · 미니맵 · HUD 만 */
body.agvsim.embed .as-top, body.agvsim.embed .as-panel { display: none; }
body.agvsim.embed .as-minimap { width: 200px; height: 170px; }

@media (max-width: 820px) {
  .as-main { flex-direction: column; }
  .as-view { min-height: 55vh; }
  .as-panel { width: auto; border-left: 0; border-top: 1px solid var(--border, #253040); }
  .as-minimap { width: 180px; height: 150px; }
}
