/* 변수 + 글로벌 리셋 + 앱 셸 레이아웃 */
:root {
  --bg-0: #0b0f17;
  --bg-1: #121826;
  --bg-2: #1a2233;
  --bg-3: #232d42;
  --line: #2c3850;
  --text: #e6edf7;
  --muted: #8a96ad;
  --accent: #ffb020;
  --accent-2: #ff5a3c;
  --ok: #4ade80;
  --warn: #facc15;
  --bad: #ef4444;
  --robot-a: #4ea3ff;
  --robot-b: #ff7ad9;
  --path: #ffd166;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  font-size: 13px;
}

#app {
  display: grid;
  grid-template-rows: 56px 1fr;
  height: 100vh;
}

.workspace {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  height: 100%;
  min-height: 0;
}

/* 비밀번호 변경 다이얼로그 */
.pw-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 14, 0.7);
}
.pw-overlay[hidden] { display: none; }
.pw-card {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.pw-card h2 { margin: 0 0 4px; font-size: 15px; }
.pw-card input {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  color: var(--text);
  font-size: 13px;
}
.pw-card input:focus { outline: none; border-color: var(--robot-a); }
.pw-actions { display: flex; gap: 8px; }
.pw-actions button {
  flex: 1;
  padding: 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.pw-actions .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1206;
  font-weight: 600;
}
.pw-msg { font-size: 12px; color: var(--ok); min-height: 16px; text-align: center; }
.pw-msg.err { color: var(--bad); }
