:root {
  --blue: #1f6feb;
  --blue-d: #1557c0;
  --ink: #16202c;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --red: #d93b3b;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button { font: inherit; cursor: pointer; }

/* ---------- 고객 안내 페이지 ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.landing header { width: 100%; padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.logo b { color: var(--blue); }
.landing header a { color: var(--muted); font-size: 14px; text-decoration: none; }
.hero { max-width: 760px; width: 100%; padding: 32px 24px 64px; text-align: center; }
.hero .tel { font-size: 64px; font-weight: 900; letter-spacing: -2px; color: var(--blue); margin: 8px 0 0; }
.hero h1 { font-size: 30px; margin: 4px 0 12px; letter-spacing: -1px; }
.hero p.sub { color: var(--muted); font-size: 18px; margin: 0 0 36px; }
.big-btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-size: 26px; font-weight: 800; padding: 26px 56px; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(31, 111, 235, .35); transition: transform .1s, background .1s;
}
.big-btn:hover { background: var(--blue-d); transform: translateY(-2px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0 32px; text-align: left; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.step b { display: block; font-size: 17px; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.notice { background: #fff6e5; border: 1px solid #f3d9a4; border-radius: 14px; padding: 16px 20px; text-align: left; font-size: 14px; line-height: 1.7; color: #6b4d12; }
.notice b { color: #8a5a00; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .hero .tel { font-size: 48px; } .big-btn { font-size: 21px; padding: 22px 32px; } }

/* ---------- 상담원 화면 ---------- */
body.console { background: #0e1117; color: #e6edf3; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: #161b22; border-bottom: 1px solid #262c36; flex-wrap: wrap; z-index: 10; }
.bar .brand { font-weight: 800; white-space: nowrap; }
.bar .brand span { color: #8b949e; font-weight: 500; margin-left: 4px; }
.connect { display: flex; gap: 6px; }
.bar input, .bar select { background: #0d1117; color: #e6edf3; border: 1px solid #30363d; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; }
.bar input#code { width: 130px; font-size: 18px; letter-spacing: 3px; font-weight: 700; }
.bar input#name { width: 110px; }
.bar input#key { width: 120px; }
.bar button { background: #21262d; color: #e6edf3; border: 1px solid #30363d; border-radius: 8px; padding: 7px 12px; font-size: 14px; white-space: nowrap; }
.bar button:hover { background: #30363d; }
.bar button.primary { background: var(--blue); border-color: var(--blue); }
.bar button.danger { background: #3d1518; border-color: #6e2a2f; color: #ffb3b3; }
.bar button.on { background: var(--blue); border-color: var(--blue); }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; }
.seg button { border-radius: 0; margin-left: -1px; }
.seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.seg button:last-child { border-radius: 0 8px 8px 0; }
.tools label { font-size: 13px; color: #8b949e; display: flex; align-items: center; gap: 6px; }
.status { margin-left: auto; font-size: 13px; color: #8b949e; white-space: nowrap; }
.status.ok { color: #3fb950; }
.status.err { color: #ff7b72; }

#stage { flex: 1; position: relative; outline: none; overflow: hidden; }
#desk { position: absolute; inset: 0; }
canvas.mon { position: absolute; background: #000; image-rendering: auto; box-shadow: 0 0 0 1px #30363d; cursor: default; touch-action: none; }
.mon-label { position: absolute; font-size: 12px; background: rgba(31,111,235,.85); color: #fff; padding: 2px 8px; border-radius: 0 0 6px 0; pointer-events: none; }
#hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(22,27,34,.92); border: 1px solid #30363d; padding: 8px 14px; border-radius: 10px; font-size: 13px; color: #c9d1d9; pointer-events: none; transition: opacity .2s; }
#stage:focus #hint { opacity: 0; }
#empty { position: absolute; inset: 0; display: grid; place-items: center; color: #6e7681; text-align: center; line-height: 1.8; }

/* 전체화면: 위쪽 막대는 마우스를 화면 맨 위로 올리면 나타남 */
body.fs .bar { position: fixed; left: 0; right: 0; top: 0; transform: translateY(calc(-100% + 4px)); transition: transform .15s; opacity: .97; }
body.fs .bar:hover { transform: none; }

#drop { position: absolute; inset: 12px; border: 3px dashed var(--blue); border-radius: 16px; background: rgba(31,111,235,.18); display: grid; place-items: center; font-size: 22px; font-weight: 700; pointer-events: none; z-index: 5; }
#toast { position: absolute; right: 16px; bottom: 16px; max-width: 420px; background: #1f2937; border: 1px solid #3b82f6; color: #e6edf3; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; z-index: 6; box-shadow: 0 6px 24px rgba(0,0,0,.4); word-break: break-all; }
.landing header a { margin-left: 2px; }
