/* ===== Settings View — Layout ===== */
.view-settings {
  flex-direction: column;
}

/* 고정 상단 — 탭 네비게이션만 */
.settings-top {
  flex-shrink: 0;
  padding: 8px 16px 0;
  background: var(--surface-app-canvas);
}

/* Settings tabs consume the shared .ui-tabs / .ui-tab primitive. */

/* 탭 콘텐츠 영역: 각 탭이 독립 스크롤 */
.settings-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-tab-content {
  display: none;
}

.settings-tab-content.active {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

/* 첫 자식이 자체 margin-top을 가지면 padding과 합쳐져 간격이 부풀어 보임 — 무력화 */
.settings-tab-content.active > :first-child {
  margin-top: 0;
}

/* 공통 섹션 */
.settings-section {
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.settings-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.settings-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.settings-error {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

/* Mobile */
@media (max-width: 767px) {
  .settings-top {
    padding: 6px 12px 0;
  }
  .settings-tab-content.active {
    padding: 8px 12px 12px;
  }
}
