/* =============================================
   민성이의 가계부 - 메인 스타일
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Bebas+Neue&display=swap');

:root {
  --bg: #0f0f14;
  --bg2: #1a1a24;
  --bg3: #22222f;
  --card: #1e1e2a;
  --border: #2e2e3e;
  --text: #f0f0f8;
  --text2: #9090b0;
  --text3: #5a5a78;
  --accent: #7c6af7;
  --accent2: #a78bfa;
  --income: #34d399;
  --expense: #f87171;
  --transfer: #60a5fa;
  --yellow: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font: 'Noto Sans KR', sans-serif;
}

[data-theme="light"] {
  --bg: #f5f5fa;
  --bg2: #ebebf5;
  --bg3: #e0e0ee;
  --card: #ffffff;
  --border: #d0d0e0;
  --text: #1a1a2e;
  --text2: #5a5a78;
  --text3: #9090b0;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; }

/* ── 앱 레이아웃 ──────────────────────────── */
#app { display: flex; flex-direction: column; height: 100dvh; max-width: 480px; margin: 0 auto; position: relative; background: var(--bg); }

.page { display: none; flex: 1; overflow-y: auto; padding-bottom: 70px; }
.page.active { display: block; }

/* ── 헤더 ──────────────────────────────────── */
.app-header { padding: 16px 20px 10px; background: var(--bg); position: sticky; top: 0; z-index: 100; }
.app-header h1 { font-size: 18px; font-weight: 700; color: var(--accent2); }
.app-header .subtitle { font-size: 12px; color: var(--text3); }
.header-row { display: flex; justify-content: space-between; align-items: center; }

/* ── 하단 탭 바 ─────────────────────────────── */
.tab-bar {
  display: flex; position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: var(--bg2); border-top: 1px solid var(--border);
  z-index: 200; padding: 4px 0 env(safe-area-inset-bottom);
}
.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; cursor: pointer; border: none; background: none; color: var(--text3);
  font-size: 10px; font-family: var(--font); gap: 3px; transition: color 0.2s;
}
.tab-btn.active { color: var(--accent2); }
.tab-btn svg { width: 22px; height: 22px; }

/* ── FAB 버튼 (+) ─────────────────────────── */
.fab {
  position: fixed; bottom: 70px; right: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
  border: none; cursor: pointer; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(124,106,247,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(124,106,247,0.7); }
.fab.open { transform: rotate(45deg); }
.fab svg { color: white; width: 28px; height: 28px; }

/* 카메라 FAB (홈에서만) */
.fab-camera {
  position: fixed; bottom: 136px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; z-index: 299;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: transform 0.2s;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.fab-camera.visible { opacity: 1; pointer-events: all; }
.fab-camera svg { color: var(--text2); width: 20px; height: 20px; }

/* ── 모달 ──────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 500; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2); border-radius: 24px 24px 0 0; width: 100%;
  max-width: 480px; max-height: 90dvh; overflow-y: auto;
  padding: 0 0 env(safe-area-inset-bottom);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; }
.modal-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text2); cursor: pointer; padding: 4px; }
.modal-body { padding: 16px 20px; }

/* ── 탭 (지출/수입/이체) ─────────────────── */
.type-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.type-tab {
  flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: none; color: var(--text2); font-family: var(--font); font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.type-tab.active[data-type="expense"] { border-color: var(--expense); color: var(--expense); background: rgba(248,113,113,0.1); }
.type-tab.active[data-type="income"] { border-color: var(--income); color: var(--income); background: rgba(52,211,153,0.1); }
.type-tab.active[data-type="transfer"] { border-color: var(--transfer); color: var(--transfer); background: rgba(96,165,250,0.1); }

/* ── 폼 요소 ──────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; color: var(--text2); margin-bottom: 6px; display: block; font-weight: 500; }
.form-input, .form-select {
  width: 100%; padding: 12px 14px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-select option { background: var(--bg2); }

/* 내역 입력란 폰트 강제 설정 */
#txMemo, #transferMemo, #searchKeyword {
  font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif !important;
}

.amount-input-wrap { position: relative; }
.amount-symbol { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 16px; font-weight: 700; }
.money-symbol { color: #9ca3af; font-weight: 400; margin-right: 1px; font-size: 0.9em; }
.amount-input-wrap .form-input { padding-left: 36px; font-size: 20px; font-weight: 700; }

/* ── 카테고리 선택 드롭다운 ─────────────── */
.cat-select-wrap { display: flex; gap: 8px; }
.cat-select-wrap .form-select { flex: 1; }

/* ── 아이콘 그리드 ────────────────────────── */
.icon-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-height: 200px;
  overflow-y: auto; padding: 4px;
}
.icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px;
  border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid transparent;
  transition: all 0.15s; background: var(--bg3);
}
.icon-item:hover { border-color: var(--accent); }
.icon-item.selected { border-color: var(--accent2); background: rgba(124,106,247,0.15); }
.icon-item span { font-size: 9px; color: var(--text2); text-align: center; line-height: 1.2; }
.icon-img { object-fit: contain; }

/* ── 계좌 선택 ───────────────────────────── */
.account-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.account-chip {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg3);
  cursor: pointer; transition: all 0.2s; font-size: 13px; color: var(--text2);
}
.account-chip.selected { border-color: var(--accent); color: var(--text); background: rgba(124,106,247,0.15); }
.account-chip img { width: 20px; height: 20px; object-fit: contain; border-radius: 50%; }

/* ── 버튼 ─────────────────────────────────── */
.btn-primary {
  width: 100%; padding: 14px; background: linear-gradient(135deg, var(--accent), #6366f1);
  border: none; border-radius: var(--radius-sm); color: white; font-family: var(--font);
  font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  padding: 10px 20px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text2); font-family: var(--font);
  font-size: 14px; cursor: pointer;
}
.btn-danger { background: rgba(239,68,68,0.15); border-color: var(--red); color: var(--red); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ── 홈 화면 ──────────────────────────────── */
.home-summary {
  margin: 0 16px 16px; padding: 20px; background: linear-gradient(135deg, #1e1a3a 0%, #1a2a3a 100%);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.home-summary .month-label { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.home-summary .balance { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.home-summary .balance.positive { color: var(--income); }
.home-summary .balance.negative { color: var(--expense); }
.summary-row { display: flex; gap: 12px; margin-top: 14px; }
.summary-item { flex: 1; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 10px 12px; }
.summary-item .label { font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.summary-item .value { font-size: 15px; font-weight: 700; }
.summary-item.income .value { color: var(--income); }
.summary-item.expense .value { color: var(--expense); }

/* ── 계좌 카드 ───────────────────────────── */
.accounts-scroll { display: flex; gap: 12px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.accounts-scroll::-webkit-scrollbar { display: none; }
.account-card {
  min-width: 140px; padding: 14px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border); flex-shrink: 0;
}
.account-card .name { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.account-card .bal { font-size: 16px; font-weight: 700; }
.account-card .bal.positive { color: var(--income); }
.account-card .bal.negative { color: var(--expense); }

/* ── 거래 목록 ───────────────────────────── */
.tx-list { padding: 0 16px; }
.tx-date-group { margin-bottom: 12px; }
.tx-date-label { font-size: 12px; color: var(--text2); margin-bottom: 8px; padding: 0 2px; font-weight: 600; }
.tx-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--card); border-radius: var(--radius-sm); margin-bottom: 6px;
  border: 1px solid var(--border); cursor: pointer; transition: background 0.15s;
}
.tx-item:hover { background: var(--bg3); }
.tx-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tx-info { flex: 1; min-width: 0; }
.tx-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-cat { font-size: 11px; color: var(--text2); margin-top: 2px; }
.tx-amount { font-size: 15px; font-weight: 700; text-align: right; }
.tx-amount.income { color: var(--income); }
.tx-amount.expense { color: var(--expense); }
.tx-amount.transfer { color: var(--transfer); }

.tx-item.reorder-mode {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  cursor: grab !important;
  touch-action: none !important;
}
.tx-item.reorder-mode * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  pointer-events: none !important;
}
.tx-item.reorder-mode button {
  pointer-events: auto !important;
}
.tx-dragging {
  opacity: 0.4 !important;
  border: 2px dashed var(--primary) !important;
}
.tx-drop-target {
  border-top: 3px solid #7c6af7 !important;
  background: rgba(124, 106, 247, 0.15) !important;
}

/* ── 달력 ──────────────────────────────────── */
.calendar-wrap { padding: 0 16px; }

/* ── 달력 상단 요약 카드 & 범례 ─────────── */
.cal-summary-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; text-align: center;
}
.cal-sum-item { display: flex; flex-direction: column; gap: 2px; }
.cal-sum-label { font-size: 11px; color: var(--text3); font-weight: 500; }
.cal-sum-val { font-size: 13px; font-weight: 800; }
.cal-sum-val.budget { color: #a78bfa; }
.cal-sum-val.exp { color: #f87171; }
.cal-sum-val.rem { color: #34d399; }
.cal-sum-val.neg { color: #ef4444; }

.cal-legend-row {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 12px;
  font-size: 10.5px; color: var(--text2); font-weight: 600;
}
.cal-legend-row span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot-sm { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { background: none; border: none; color: var(--text2); cursor: pointer; padding: 6px 10px; font-size: 18px; border-radius: 6px; }
.cal-nav:hover { background: var(--bg3); }
.cal-title { font-size: 17px; font-weight: 700; color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-label { text-align: center; font-size: 11px; color: var(--text3); padding: 4px 0; font-weight: 600; }
.cal-cell {
  min-height: 78px; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; border-radius: 8px; cursor: pointer; gap: 1px; padding: 4px 1px;
  transition: all 0.15s; position: relative; overflow: hidden; background: var(--card);
  border: 1px solid var(--border);
}
.cal-cell:hover { background: var(--bg3); }
.cal-cell.today {
  border: 1.5px solid var(--accent) !important;
  background: rgba(124,106,247,0.12) !important;
}
.cal-cell.today .cal-num {
  background: var(--accent); color: #fff !important; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}
.cal-num { font-size: 12px; font-weight: 700; margin-bottom: 2px; }

.cal-daily-stats {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; flex: 1; gap: 1.5px; padding: 0 1px;
}
.cal-budget-line {
  font-size: 8px; font-weight: 700; color: #a78bfa; white-space: nowrap;
  letter-spacing: -0.4px; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis;
}
.cal-exp-line {
  font-size: 8px; font-weight: 700; color: #f87171; white-space: nowrap;
  letter-spacing: -0.4px; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis;
}
.cal-rem-line {
  font-size: 8px; font-weight: 700; color: #34d399; white-space: nowrap;
  letter-spacing: -0.4px; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis;
}
.cal-rem-line.neg { color: #ef4444; }

/* ── 달력 하단 상세 ─────────────────────── */
.cal-detail { margin: 14px 0 0; padding: 14px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
.cal-detail-date { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--accent2); }
.cal-detail-empty { font-size: 13px; color: var(--text3); text-align: center; padding: 16px 0; }

/* ── 통계 ──────────────────────────────────── */
.stats-wrap { padding: 0 16px; }
.period-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.period-tab {
  flex: 1; padding: 9px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: none; color: var(--text2); font-family: var(--font); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.period-tab.active { border-color: var(--accent); color: var(--accent2); background: rgba(124,106,247,0.1); }

.donut-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto 20px; }
.donut-wrap canvas { display: block; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center .total { font-size: 16px; font-weight: 700; }
.donut-center .label { font-size: 11px; color: var(--text2); }

.legend-list { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-name { flex: 1; font-size: 13px; }
.legend-pct { font-size: 12px; color: var(--text2); }
.legend-amount { font-size: 13px; font-weight: 700; }

/* ── 예산 오버 표시 ─────────────────────── */
.budget-bar-wrap { margin-bottom: 12px; }
.budget-bar-label { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 12px; }
.budget-bar-bg { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.budget-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.budget-bar-fill.ok { background: var(--income); }
.budget-bar-fill.warn { background: var(--yellow); }
.budget-bar-fill.over { background: var(--expense); }

/* ── 보고서 ─────────────────────────────── */
.report-wrap { padding: 0 16px; }
.report-section { margin-bottom: 20px; }
.report-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text2); letter-spacing: 0.5px; text-transform: uppercase; }

.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row .form-input { flex: 1; }
.search-row .btn-primary { width: auto; padding: 12px 18px; }

.report-tx-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--card); border-radius: var(--radius-sm); margin-bottom: 6px;
  border: 1px solid var(--border);
}
.report-tx-date { font-size: 11px; color: var(--text3); width: 80px; flex-shrink: 0; }
.report-tx-name { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-tx-amount { font-size: 13px; font-weight: 700; }

.analysis-card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; border: 1px solid var(--border); }
.analysis-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--accent2); }

.chart-wrap { position: relative; height: 180px; }

.ai-chat { background: var(--bg3); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); }
.ai-msg { font-size: 13px; line-height: 1.7; color: var(--text2); white-space: pre-wrap; }
.ai-input-row { display: flex; gap: 8px; margin-top: 10px; }
.ai-input { flex: 1; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 13px; outline: none; }
.ai-send { padding: 10px 16px; background: var(--accent); border: none; border-radius: var(--radius-sm); color: white; cursor: pointer; font-size: 13px; font-weight: 700; }

/* ── 설정 ─────────────────────────────────── */
.settings-wrap { padding: 0 16px 20px; }
.settings-section { margin-bottom: 24px; }
.settings-section h3 { font-size: 13px; font-weight: 700; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.settings-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.settings-item:last-child { border-bottom: none; }
.settings-item-label { font-size: 14px; }
.settings-item-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* 토글 */
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg3); border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle-slider::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform 0.2s; }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); }

/* ── 로딩 ──────────────────────────────────── */
#loadingOverlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ──────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 12px 24px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 24px; font-size: 13px; z-index: 9000; opacity: 0;
  transition: all 0.3s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { border-color: var(--income); color: var(--income); }
.toast-error { border-color: var(--expense); color: var(--expense); }
.toast-info { border-color: var(--accent); color: var(--accent2); }

/* ── 섹션 제목 ───────────────────────────── */
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 10px; }
.section-header h2 { font-size: 15px; font-weight: 700; }
.section-header a { font-size: 12px; color: var(--accent2); text-decoration: none; }

/* ── 이체 화살표 ─────────────────────────── */
.transfer-arrow { text-align: center; font-size: 20px; padding: 4px 0; color: var(--transfer); }

/* ── 스크롤바 ────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── 반응형 (태블릿/PC) ─────────────────── */
@media (min-width: 480px) {
  #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .fab { right: calc(50% - 240px + 16px); }
  .fab-camera { right: calc(50% - 240px + 16px); }
}

/* ── 빈 상태 ─────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ── 계좌 관리 ────────────────────────────── */
.account-manage-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--card); border-radius: var(--radius-sm); margin-bottom: 8px;
  border: 1px solid var(--border);
}
.account-manage-item .info { flex: 1; }
.account-manage-item .name { font-size: 14px; font-weight: 600; }
.account-manage-item .type { font-size: 11px; color: var(--text3); }
.account-manage-item .actions { display: flex; gap: 6px; }

/* ── 테마 그리드 ─────────────────────────── */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-item {
  aspect-ratio: 16/9; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent;
  overflow: hidden; transition: border-color 0.2s;
}
.theme-item.selected { border-color: var(--accent2); }
.theme-item span { display: block; width: 100%; height: 100%; }

/* ── 날짜 입력 ───────────────────────────── */
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; }
input[type="date"] { color-scheme: dark; }
[data-theme="light"] input[type="date"] { color-scheme: light; }
