/* ============================================================
   style.css — 이지테이블 UI 스타일
   ============================================================ */
:root {
  --bg: #f4f5fa;
  --panel-bg: #ffffff;
  --border: #e4e7ef;
  --text: #1c1f26;
  --text-muted: #6b7280;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-contrast: #ffffff;
  --primary-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --accent-bg: #eef0ff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --row-hover: #f3f5fc;
  --row-zebra: #fafbfe;
  --header-bg: #f7f8fc;
  --shadow: 0 8px 28px rgba(23, 25, 35, 0.13);
  --shadow-soft: 0 2px 10px rgba(23, 25, 35, 0.06);
  --badge-text: #2563eb;   --badge-text-bg: #eff6ff;
  --badge-num: #059669;    --badge-num-bg: #ecfdf5;
  --badge-date: #d97706;   --badge-date-bg: #fffbeb;
  --badge-bool: #7c3aed;   --badge-bool-bg: #f5f3ff;
  --badge-any: #6b7280;    --badge-any-bg: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --panel-bg: #171a22;
    --border: #2a2f3c;
    --text: #e8eaf0;
    --text-muted: #98a0ae;
    --primary: #818cf8;
    --primary-hover: #a5b0fc;
    --primary-contrast: #ffffff;
    --primary-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
    --accent-bg: #242a49;
    --danger: #f87171;
    --danger-bg: #3b1f22;
    --row-hover: #1e2230;
    --row-zebra: #191d27;
    --header-bg: #1c2029;
    --shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.35);
    --badge-text: #93c5fd;   --badge-text-bg: #1e2a44;
    --badge-num: #6ee7b7;    --badge-num-bg: #16302a;
    --badge-date: #fcd34d;   --badge-date-bg: #362b14;
    --badge-bool: #c4b5fd;   --badge-bool-bg: #2b2545;
    --badge-any: #9ca3af;    --badge-any-bg: #262a33;
  }
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Segoe UI", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

button { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- 상단 바 ---------- */
#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
  flex: 0 0 auto;
}
.brand-text h1 { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.v-divider { width: 1px; height: 22px; background: var(--border); margin: 0 2px; }

/* ---------- 버튼 ---------- */
.btn {
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s, transform 0.08s, box-shadow 0.12s;
}
.btn:hover:not(:disabled) { background: var(--row-hover); border-color: var(--text-muted); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.btn-primary {
  background: var(--primary-grad);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}
.btn.btn-primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.42); }
.btn.btn-small { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 5px;
  line-height: 1;
}
.btn-icon:hover { background: var(--row-hover); color: var(--text); }

.btn-icon-lg {
  border: 1px solid var(--border);
  background: var(--panel-bg);
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  width: 34px; height: 34px;
  border-radius: 9px;
  line-height: 1;
  transition: background 0.12s, opacity 0.12s;
}
.btn-icon-lg:hover:not(:disabled) { background: var(--row-hover); }
.btn-icon-lg:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- 도구 모음 ---------- */
#toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
  overflow-x: auto;
}
.tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s;
}
.tool-btn:hover:not(:disabled) { background: var(--row-hover); border-color: var(--border); }
.tool-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tool-btn .caret { font-size: 10px; color: var(--text-muted); }

.toolbar-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 4px;
}
.toolbar-hint b { color: var(--primary); font-weight: 600; }

/* ---------- 레이아웃 ---------- */
#mainLayout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 252px;
  min-height: 0;
}

/* 데이터가 없을 때: 도구 모음/기록/탭을 감추고 시작 화면만 */
body.no-data #toolbar,
body.no-data #sidebarSteps,
body.no-data #bottomBar { display: none; }
body.no-data #mainLayout { grid-template-columns: 1fr; }
body.no-data #gridPane { background: var(--bg); }

#appFooter {
  flex: 0 0 auto;
  padding: 5px 16px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.8;
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links { margin-bottom: 2px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  margin: 0 7px;
}
.footer-links a:hover { color: var(--primary); }

aside#sidebarSteps {
  background: var(--panel-bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

#stepsList {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 8px;
}

.empty-state {
  padding: 26px 16px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
}
.empty-state.error { color: var(--danger); }

/* ---------- 시작(웰컴) 화면 ---------- */
.welcome {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 32px 20px;
  overflow-y: auto;
}

.drop-hero {
  width: min(620px, 100%);
  border: 2px dashed var(--border);
  border-radius: 20px;
  background: var(--panel-bg);
  padding: 44px 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-soft);
}
.drop-hero:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.16);
}
.drop-hero-icon { font-size: 46px; margin-bottom: 12px; }
.drop-hero-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.drop-hero-sub { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.drop-hero-btn { margin-top: 18px; }

.welcome-links { display: flex; gap: 6px; margin-top: -12px; flex-wrap: wrap; justify-content: center; }
.welcome-sample {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
}
.welcome-sample:hover { background: var(--accent-bg); }

.welcome-steps {
  display: flex;
  gap: 14px;
  width: min(680px, 100%);
}
.welcome-card {
  flex: 1 1 0;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 15px;
  box-shadow: var(--shadow-soft);
}
.welcome-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 9px;
}
.welcome-card-title { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.welcome-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

.welcome-privacy { font-size: 11.5px; color: var(--text-muted); }

/* ---------- 그리드 영역 ---------- */
#gridPane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}
#gridWrapper {
  flex: 1 1 auto;
  overflow: auto;
}

table.data-grid {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  min-width: 100%;
}
table.data-grid th, table.data-grid td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 6px 11px;
  text-align: left;
  white-space: nowrap;
}
table.data-grid thead th {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  font-weight: 600;
  box-shadow: 0 1px 0 var(--border);
  transition: background 0.1s;
}
table.data-grid thead th:hover { background: var(--row-hover); }
table.data-grid thead th.selected-col {
  background: var(--accent-bg);
  box-shadow: inset 0 -2px 0 var(--primary), 0 1px 0 var(--border);
}

.type-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  margin-right: 7px;
  vertical-align: 1px;
}
.type-badge.t-text { color: var(--badge-text); background: var(--badge-text-bg); }
.type-badge.t-number { color: var(--badge-num); background: var(--badge-num-bg); }
.type-badge.t-date { color: var(--badge-date); background: var(--badge-date-bg); }
.type-badge.t-boolean { color: var(--badge-bool); background: var(--badge-bool-bg); }
.type-badge.t-any { color: var(--badge-any); background: var(--badge-any-bg); }

table.data-grid th .col-menu-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 9px;
  font-size: 10px;
  padding: 0;
}
table.data-grid tbody tr:nth-child(even) td { background: var(--row-zebra); }
table.data-grid tbody tr:hover td { background: var(--row-hover); }
table.data-grid td.null-cell { color: var(--text-muted); font-style: italic; opacity: 0.7; }
table.data-grid .row-num-col {
  color: var(--text-muted);
  background: var(--header-bg) !important;
  text-align: right;
  position: sticky;
  left: 0;
  z-index: 1;
  font-size: 11px;
}
table.data-grid thead .row-num-col { z-index: 3; }

/* ---------- 하단 바: 시트 탭 + 상태 ---------- */
#bottomBar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  min-height: 34px;
}
#sheetTabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}
.sheet-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.sheet-tab:hover { background: var(--row-hover); color: var(--text); }
.sheet-tab.active {
  background: var(--accent-bg);
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 2px 0 var(--primary);
}
.sheet-tab-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.sheet-tab-menu {
  border: none; background: transparent;
  color: inherit; cursor: pointer;
  font-size: 13px; padding: 0 2px;
  border-radius: 4px;
}
.sheet-tab-menu:hover { background: rgba(127, 127, 127, 0.15); }

.add-tab-btn {
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 12px;
}
.add-tab-btn:hover { background: var(--row-hover); color: var(--primary); }

#statusBar {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- 작업 기록(단계) ---------- */
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  cursor: pointer;
  margin-bottom: 3px;
  font-size: 12.5px;
  transition: background 0.1s;
}
.step-item:hover { background: var(--row-hover); }
.step-item.active { background: var(--accent-bg); font-weight: 600; }
.step-item.faded { opacity: 0.4; }

.step-num {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--header-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-item.active .step-num {
  background: var(--primary-grad);
  border: none;
  color: #fff;
}
.step-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-btns { display: none; gap: 0; flex: 0 0 auto; }
.step-item:hover .step-btns { display: flex; }
.step-btns .btn-icon { padding: 1px 3px; font-size: 11px; }

.steps-hint {
  padding: 18px 14px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}

/* ---------- 모달 ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 12, 20, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--panel-bg);
  border-radius: 15px;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  animation: modalIn 0.16s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
}

.field { margin-bottom: 13px; display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.field select, .field input[type="text"], .field textarea {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
}
.field textarea { resize: vertical; font-family: "Consolas", monospace; font-size: 12.5px; }
.hint { font-size: 11.5px; color: var(--text-muted); margin: -6px 0 12px; word-break: break-all; line-height: 1.6; }

.checkbox-list, .radio-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  background: var(--bg);
}
.checkbox-row, .radio-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  padding: 3px 0;
  cursor: pointer;
}
.checkbox-row input, .radio-row input { accent-color: var(--primary); }
.checkbox-row.single { border: none; padding: 0; }

.sort-levels, .agg-list { display: flex; flex-direction: column; gap: 6px; }
.sort-level, .agg-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sort-level select, .agg-row select,
.agg-row input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
}
.eq-sign { color: var(--text-muted); }

/* ---------- 드롭다운/컨텍스트 메뉴 ---------- */
.ctx-menu {
  position: fixed;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 5px;
  min-width: 210px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  overflow-y: auto;
  animation: menuIn 0.12s ease-out;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.ctx-menu-title {
  padding: 7px 11px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctx-menu-item {
  text-align: left;
  border: none;
  background: transparent;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}
.ctx-menu-item:hover:not(:disabled) { background: var(--row-hover); }
.ctx-menu-item:disabled { opacity: 0.4; cursor: not-allowed; }
.ctx-menu-item.danger { color: var(--danger); }
.ctx-menu-item.danger:hover:not(:disabled) { background: var(--danger-bg); }
.ctx-menu-sep { height: 1px; background: var(--border); margin: 4px 4px; }

/* ---------- 파일 드롭 오버레이 ---------- */
#dropOverlay {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(79, 70, 229, 0.14);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.drop-box {
  background: var(--panel-bg);
  border: 2px dashed var(--primary);
  border-radius: 20px;
  padding: 42px 60px;
  text-align: center;
  box-shadow: var(--shadow);
}
.drop-box-icon { font-size: 44px; margin-bottom: 10px; }
.drop-box-text { font-size: 16px; font-weight: 700; color: var(--primary); }

/* ---------- 토스트 알림 ---------- */
#toastContainer {
  position: fixed;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s;
  max-width: min(520px, calc(100vw - 40px));
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: none; }
.toast.toast-warn { border-color: var(--danger); color: var(--danger); }
.toast-action {
  flex: 0 0 auto;
  border: none;
  background: var(--primary-grad);
  color: #fff;
  border-radius: 7px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.toast-action:hover { filter: brightness(1.08); }
.toast-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.toast-close:hover { color: var(--text); }

/* ---------- 앱 설치 버튼 ---------- */
.btn-install {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.btn-install:hover:not(:disabled) { background: var(--accent-bg); border-color: var(--primary); }

/* ---------- 사용 설명서 ---------- */
.help-modal { width: 660px; }
.help-modal .modal-body { padding: 6px 22px 20px; }
.help-section { margin-top: 18px; }
.help-section h4 { margin: 0 0 8px; font-size: 14px; }
.help-section p, .help-section li { font-size: 12.8px; line-height: 1.75; }
.help-section p { margin: 6px 0; }
.help-section ul { margin: 6px 0; padding-left: 20px; }
.help-section li { margin-bottom: 4px; }
.help-muted { color: var(--text-muted); }
.help-callout {
  background: var(--accent-bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
}
kbd {
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11.5px;
  font-family: inherit;
}

/* ---------- 스크롤바 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .toolbar-hint { display: none; }
  #mainLayout { grid-template-columns: 1fr 210px; }
}
@media (max-width: 760px) {
  #mainLayout { grid-template-columns: 1fr; }
  #sidebarSteps { display: none; }
  .welcome-steps { flex-direction: column; }
  .brand-sub { display: none; }
}
