/* ─────────────────────────────────────────────────────────────────────────
 * Settings — prototype-v2 SoT: user-portal/settings/index.html inline <style>
 *   mobile-first: 좌측 nav가 모바일에서는 가로 스크롤, 데스크탑에서 sidebar.
 * ──────────────────────────────────────────────────────────────────────── */

.settings-container {
  max-width: 1000px;
  /* UI-22 — 상단 여백은 portal-main 만 */
  margin: 0 auto 24px;
  padding: 0 var(--container-padding);
}
@media (min-width: 768px) {
  .settings-container { margin: 0 auto 40px; }
}

.settings-header { margin-bottom: 24px; }
.settings-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .settings-header h2 { font-size: 28px; }
}
.settings-header p {
  color: var(--text-secondary);
  font-size: 14px;
}
@media (min-width: 768px) {
  .settings-header p { font-size: 15px; }
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .settings-grid { grid-template-columns: 240px 1fr; gap: 40px; }
}

.settings-nav {
  display: flex;
  flex-direction: row;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
}
@media (min-width: 1024px) {
  .settings-nav { flex-direction: column; overflow-x: visible; padding-bottom: 0; }
}
.settings-nav-item {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
}
@media (min-width: 1024px) {
  .settings-nav-item { padding: 12px 16px; font-size: 14px; }
}
.settings-nav-item:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}
.settings-nav-item.external {
  color: var(--primary);
}
.settings-nav-item.active {
  background: var(--primary);
  color: white;
}
.settings-nav-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 0;
  display: none;
}
@media (min-width: 1024px) {
  .settings-nav-divider { display: block; }
}

/* UI-20 (V1.7.2) — 설정·알림 섹션: 테두리 프레임 → 면·음영. 내부 요소와의 "카드 안의 카드" 해소 */
.settings-section {
  background: var(--surface-1, var(--bg-surface));
  border: none;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--surface-1-shadow, none);
}
@media (min-width: 768px) {
  .settings-section { padding: 28px; margin-bottom: 20px; }
}

.settings-section-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .settings-section-title { font-size: 18px; margin-bottom: 24px; }
}

.settings-form-group { margin-bottom: 20px; }
.settings-form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.settings-form-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .option-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.option-grid.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .option-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.option-card {
  border: 1px solid var(--glass-border);
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-surface);
  font-family: inherit;
}
.option-card:hover {
  border-color: var(--primary);
  background: var(--bg-accent-sky);
}
.option-card.active {
  border-color: var(--primary);
  background: var(--bg-accent-sky);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.option-card i {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
  display: block;
}
.option-card.active i { color: var(--primary); }
.option-title {
  font-size: 13px;
  font-weight: 700;
  display: block;
  color: var(--text-main);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--glass-border-bright);
  transition: 0.4s;
  border-radius: 24px;
}
.toggle-slider::before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--bg-surface);
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .toggle-slider { background-color: var(--primary); }
input:checked + .toggle-slider::before { transform: translateX(20px); }
/* 토글 input 시각 숨김으로 글로벌 :focus-visible outline 안 보임 — slider 에 시각화. */
.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
[data-theme='dark'] .toggle-slider { background-color: var(--text-muted); }
[data-theme='dark'] .toggle-slider::before { background-color: var(--bg-muted); }

.index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .index-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--bg-darker);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  gap: 12px;
}
.index-row-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.index-row-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
}
.toggle-row + .toggle-row { margin-top: 10px; }
.toggle-row span { display: flex; align-items: center; gap: 8px; }

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .theme-options { flex-direction: row; gap: 16px; }
}
.theme-option-card {
  flex: 1;
  background: var(--bg-surface);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.theme-option-card.active {
  border-color: var(--primary);
  background: var(--bg-accent-sky);
}
.theme-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.theme-option-label > div { flex: 1; }
.theme-option-label strong {
  font-size: 13px;
  display: block;
  color: var(--text-main);
}
.theme-active-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: white;
  display: none;
}
.theme-option-card.active .theme-active-badge {
  display: inline-block;
}

.settings-info-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.save-bar {
  position: sticky;
  bottom: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: var(--z-sticky);
  gap: 10px;
}
@media (min-width: 768px) {
  .save-bar { padding: 16px 28px; }
}
.save-bar span {
  font-size: 12px;
  color: var(--text-muted);
}
.save-bar button {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.save-bar button:disabled { opacity: 0.7; cursor: not-allowed; }
.save-bar button.saved { background: #10b981; }

/* ─── prototype 정합 추가 클래스 ───────────────────────── */
.settings-error-banner {
  background: var(--bg-accent-red);
  color: var(--danger, #991b1b);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}
/* 다크 모드 대비 보강 — bg-accent-red(#FFF1F2 라이트 기준) 위 darken text 가 다크 배경에서 가독성 낮음. */
[data-theme='dark'] .settings-error-banner {
  color: #fecaca;
}

.notif-quick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.notif-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-darker);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  gap: 12px;
}
.notif-quick-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-quick-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ─── 탭 전환: 모바일 섹션 select (데스크탑은 사이드바 nav) ───────── */
.settings-mobile-nav {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  margin-bottom: 4px;
}
@media (min-width: 1024px) {
  .settings-mobile-nav { display: none; }
}
@media (max-width: 1023px) {
  .settings-nav { display: none; }
}

/* ─── 계정 관리 섹션 ───────────────────────────────────── */
.account-info-box {
  background: var(--bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 2px 16px;
}
.account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 14px;
}
.account-info-row:last-child { border-bottom: none; }
.account-info-row span { color: var(--text-secondary); }
.danger-label { color: #dc2626; }
/* ─── 간편 로그인 연결 ──────────────────────────────────── */
.account-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.account-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.account-link-btn:hover:not(:disabled) { border-color: #1a3a5c; color: #1a3a5c; }
.account-link-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.account-withdraw-btn {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.account-withdraw-btn:hover:not(:disabled) { background: #dc2626; color: white; }
.account-withdraw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── 관심 키워드 ───────────────────────────────────────── */
.kw-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.kw-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
}
.kw-add-btn {
  flex-shrink: 0;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.kw-tag-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 24px; }
.kw-empty { font-size: 13px; color: var(--text-muted); }
.kw-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  background: var(--primary-muted, rgba(0, 113, 205, 0.12));
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.kw-tag button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  opacity: 0.7;
  display: inline-flex;
}
.kw-tag button:hover { opacity: 1; }
.kw-trending { margin-top: 16px; }
.kw-trending-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kw-trending-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-chip {
  padding: 6px 12px;
  border: 1px dashed var(--glass-border);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.kw-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ─── 알림 카테고리 ─────────────────────────────────────── */
.notif-category {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}
.notif-cat-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 지수별 급변 알림 임계치 입력 (IDX_THRSHLD / PC) */
.idx-alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.idx-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--bg-surface);
}
.idx-alert-name {
  font-size: 14px;
  color: var(--text-main);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.idx-alert-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.idx-alert-input input[type="number"] {
  width: 72px !important;
  padding: 6px 8px !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 6px !important;
  background: var(--bg-base) !important;
  color: var(--text-main);
  font-size: 14px;
  text-align: right;
}
.idx-alert-unit {
  font-size: 13px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

/* 급변 알림 — 지수 알림 뮤트 시 흐리게 */
.idx-alert-block[aria-disabled="true"] { opacity: 0.5; }
/* 개별 알림 삭제(×) */
.idx-alert-del {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--glass-border); background: none; color: var(--text-muted);
  cursor: pointer; font-size: 12px;
}
.idx-alert-del:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.idx-alert-del:disabled { cursor: not-allowed; opacity: 0.5; }

/* 알림 추가 폼 (지수 선택 + % + 추가) — 전역 input/select 스타일 !important 로 덮음 */
.idx-alert-add {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px;
  border: 1px dashed var(--glass-border); border-radius: 8px; background: var(--bg-base);
}
.idx-alert-add select {
  flex: 1 1 160px; min-width: 140px; max-width: 240px; width: auto !important;
  height: 36px !important; padding: 0 10px !important;
  border: 1px solid var(--glass-border) !important; border-radius: 6px !important;
  background: var(--bg-surface) !important; color: var(--text-main); font-size: 14px !important;
}
.idx-alert-add input[type="number"] {
  width: 72px !important; height: 36px !important; padding: 0 8px !important;
  border: 1px solid var(--glass-border) !important; border-radius: 6px !important;
  background: var(--bg-surface) !important; color: var(--text-main); font-size: 14px; text-align: right;
}
.idx-alert-add-btn {
  height: 36px; padding: 0 16px; border-radius: 6px; border: none; cursor: pointer; flex: 0 0 auto;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
}
.idx-alert-add-btn:hover:not(:disabled) { filter: brightness(1.05); }
.idx-alert-add-btn:disabled { cursor: not-allowed; opacity: 0.5; }

/* ─── 알림 독립 메뉴 ───────────────────────────────────── */
.notification-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 20px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .notification-container { padding: 12px 40px 40px; }
}
.notification-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.notification-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .notification-summary-grid { grid-template-columns: repeat(3, 1fr); }
}
/* UI-20 — 알림 유형 요약: 섹션 내부 카드이므로 테두리 제거하고 가라앉는 음영으로 */
.notification-summary-card {
  border: none;
  border-radius: var(--radius-md);
  background: var(--surface-1-sunken, var(--bg-darker));
  padding: 16px;
}
.notification-summary-card i {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 10px;
}
.notification-summary-card strong {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 5px;
}
.notification-summary-card span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.notification-section-subtitle {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  margin: 18px 0 8px;
}
.notification-type-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notification-type-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.notification-type-head .settings-section-title {
  margin-bottom: 8px;
}
.notification-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .notification-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.notification-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
}
.notification-field select {
  width: 100% !important;
  height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 10px !important;
  background: var(--bg-surface) !important;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px !important;
}
.notification-readonly {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 42px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--bg-darker);
}
.notification-readonly strong {
  color: var(--text-main);
  font-size: 13px;
}
.notification-readonly span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.notification-onboarding {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 12px;
  background: var(--bg-accent-sky);
}
@media (min-width: 768px) {
  .notification-onboarding { grid-template-columns: auto 1fr auto; }
}
.notification-onboarding i {
  color: var(--primary);
  font-size: 18px;
}
.notification-onboarding strong {
  display: block;
  color: var(--text-main);
  font-size: 13px;
  margin-bottom: 3px;
}
.notification-onboarding span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.notification-inline-link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
@media (min-width: 768px) {
  .notification-inline-link {
    grid-column: auto;
    justify-self: end;
  }
}
.notification-keyword-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.notification-bundle-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--bg-darker);
}
.bundle-meter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px) {
  .bundle-meter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bundle-meter span {
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 12px;
}
.bundle-meter b {
  color: var(--text-main);
  font-size: 15px;
}
.bundle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bundle-list.disabled {
  opacity: 0.62;
}
.bundle-list-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--bg-surface);
}
.bundle-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--bg-accent-sky);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.bundle-list-row strong {
  min-width: 0;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.4;
  word-break: keep-all;
}
.bundle-more,
.bundle-disabled-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.notification-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.notification-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 900px) {
  .notification-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.notification-preview-card {
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow: hidden;
}
.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
}
.preview-card-type {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
}
.preview-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.preview-status.active {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
}
.preview-status.muted {
  color: var(--text-muted);
  background: var(--bg-darker);
}
.kakao-preview {
  margin: 14px;
  padding: 12px;
  border: 1px solid rgba(184, 145, 0, .28);
  border-radius: 12px;
  background: #fff3a6;
  color: #1a2b3d;
}
.kakao-preview.disabled {
  border-color: #cbd5e1;
  background: #e5e7eb;
  color: #64748b;
  opacity: 1;
  filter: none;
}
.kakao-preview.disabled .kakao-preview-avatar { background: #64748b; }
.kakao-preview.disabled .kakao-preview-sender,
.kakao-preview.disabled .kakao-preview-sender small { color: #64748b; }
.kakao-preview.disabled .kakao-preview-body { background: #f8fafc; color: #64748b; }
.kakao-preview-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.kakao-preview-avatar {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #0a2540;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}
.kakao-preview-sender {
  min-width: 0;
  color: #33475c;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.35;
}
.kakao-preview-sender small {
  color: #5b7188;
  font-size: inherit;
  font-weight: 600;
}
.kakao-preview-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #1a2b3d;
}
.kakao-preview-body strong {
  font-size: 14px;
  font-weight: 900;
}
.kakao-preview-meta {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.72;
}
.kakao-preview-body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.kakao-preview-body li {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}
.kakao-preview-body li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
