/* ==========================================================
   NYAHOME 스타일 - 모던 & 심플, 파스텔 포인트
   ========================================================== */
:root {
  --accent: #ffb6c9;         /* 포인트 색 */
  --accent-strong: #e87f9d;  /* 진한 포인트 (글자용) */
  --accent-soft: #ffeef3;    /* 연한 포인트 (배경용) */
  --surface: #ffffff;
  --bg-desktop: linear-gradient(160deg, #fdf0f4 0%, #eef4fd 60%, #f0fbf2 100%);
  --text: #37322f;
  --sub: #a39b96;
  --line: #ece8e6;
  --line-soft: #f4f1ef;
  --danger: #d9534f;
  --danger-soft: #fdecec;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { font-family: var(--font); color: var(--text); font-size: 14px; }
.hidden { display: none !important; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; color: var(--text); }
img { max-width: 100%; }
.material-symbols-rounded { font-size: inherit; vertical-align: -3px; line-height: 1; }

/* ---------- 로그인 화면 ---------- */
#login-screen {
  position: fixed; inset: 0;
  background: var(--bg-desktop);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px 52px;
  box-shadow: 0 16px 48px rgba(60, 40, 50, .1);
  text-align: center;
  min-width: 320px;
}
.login-mark { font-size: 34px; color: var(--accent); margin-bottom: 10px; }
.login-card h1 { font-size: 19px; font-weight: 800; letter-spacing: 3px; }
.login-card p { margin: 6px 0 22px; color: var(--sub); font-size: 13px; }
.login-card input {
  display: block; width: 100%; margin-bottom: 10px;
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); outline: none;
  text-align: center; font-size: 14px;
  transition: border-color .15s;
}
.login-card input:focus { border-color: var(--accent); }
.login-card button {
  width: 100%; padding: 11px; border: none; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  transition: filter .15s;
}
.login-card button:hover { filter: brightness(.96); }
#login-error { color: var(--danger); margin-top: 12px; min-height: 18px; font-size: 12.5px; }

/* ---------- 바탕화면 ---------- */
#desktop {
  position: fixed; inset: 0;
  background: var(--bg-desktop);
  background-size: cover; background-position: center;
}
#desktop-icons {
  position: absolute; top: 28px; left: 28px;
  display: grid; grid-template-columns: repeat(2, 88px);
  gap: 22px 10px; z-index: 1;
}
.desk-icon {
  width: 88px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.desk-icon .desk-ico {
  height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--accent-strong);
}
.desk-icon .desk-ico img {
  width: 44px; height: 44px; object-fit: contain;
  image-rendering: pixelated; /* 도트 아이콘이 안 뭉개지게 */
}
.desk-icon .label {
  font-size: 10px; font-weight: 600; color: var(--text);
  text-shadow: 0 1px 4px rgba(255,255,255,.9);
  text-align: center;
}

/* ---------- 우주 배경 ---------- */
#space-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#desktop.space-mode .desk-icon .desk-ico { color: #cdbcf7; }
#desktop.space-mode .desk-icon .label {
  color: #f0ecff;
  text-shadow: 0 1px 8px rgba(10, 8, 40, .85);
}
#desktop.space-mode #taskbar {
  background: rgba(18, 15, 44, .72);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
#desktop.space-mode #taskbar-logo { color: #cdbcf7; }
#desktop.space-mode #taskbar-clock { color: rgba(240, 236, 255, .6); }
#desktop.space-mode .task-btn { color: rgba(240, 236, 255, .55); }
#desktop.space-mode .task-btn.active { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- 작업표시줄 ---------- */
#taskbar {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  height: 46px; z-index: 5000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  box-shadow: 0 8px 24px rgba(60, 40, 50, .08);
}
#taskbar-logo {
  font-weight: 800; font-size: 12.5px; letter-spacing: 2px;
  color: var(--accent-strong); white-space: nowrap;
}
#taskbar-windows { flex: 1; display: flex; gap: 4px; overflow-x: auto; }
.task-btn {
  border: none; background: transparent;
  border-radius: 9px; padding: 6px 12px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; color: var(--sub);
  display: flex; align-items: center; gap: 6px;
}
.task-btn i, .task-btn .material-symbols-rounded { font-size: 12px; }
.task-btn img { width: 14px; height: 14px; object-fit: contain; image-rendering: pixelated; }
.task-btn.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
#taskbar-clock { font-size: 12.5px; font-weight: 600; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 창 (윈도우) ---------- */
.window {
  position: absolute;
  min-width: 320px; min-height: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(60, 40, 50, .13);
  display: flex; flex-direction: column;
  overflow: hidden;
  resize: both;
}
.window-header {
  height: 42px; flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center;
  padding: 0 10px 0 16px; gap: 8px;
  cursor: move; user-select: none;
}
.window-header .w-icon { color: var(--accent-strong); font-size: 13px; display: flex; align-items: center; }
.window-header .w-icon img { width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; }
.window-header .w-title {
  flex: 1; font-weight: 600; font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window-header button {
  width: 28px; height: 28px; border: none; border-radius: 8px;
  background: transparent; color: #c2bab5;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.window-header button:hover { background: var(--line-soft); color: var(--text); }
.window-header .w-close:hover { background: var(--danger-soft); color: var(--danger); }
.window-body { flex: 1; overflow: auto; padding: 18px; }

/* ---------- 공용 UI ---------- */
.btn {
  border: none; border-radius: 10px; padding: 8px 16px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  transition: filter .15s;
}
.btn:hover { filter: brightness(.96); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--accent-soft); color: var(--accent-strong); }
.btn.plain { background: transparent; color: var(--sub); }
.btn.plain:hover { background: var(--line-soft); color: var(--text); }
.btn.danger { background: transparent; color: #d8b0b0; }
.btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

.input, input.input, textarea.input {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; outline: none; background: #fff;
  transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: #c9c2bd; }
textarea.input { resize: vertical; }
input[type="checkbox"] { accent-color: var(--accent-strong); width: 15px; height: 15px; }
input[type="color"] { border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 28px; padding: 2px; background: #fff; cursor: pointer; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--sub); font-size: 12.5px; }
.section-title {
  font-size: 13.5px; font-weight: 700;
  margin: 20px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: var(--accent); display: inline-block;
}

/* 탭 (세그먼트) */
.tabs {
  display: inline-flex; gap: 2px; flex-wrap: wrap; margin-bottom: 14px;
  background: var(--line-soft); border-radius: 10px; padding: 3px;
}
.tab-btn {
  border: none; background: transparent;
  border-radius: 8px; padding: 6px 13px; font-size: 12.5px; font-weight: 500;
  color: var(--sub);
}
.tab-btn.active { background: #fff; color: var(--accent-strong); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.07); }

/* ---------- 커스텀 팝업 (모달) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(40, 30, 35, .32);
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: var(--surface); border-radius: 14px;
  padding: 24px; min-width: 300px; max-width: min(420px, 90vw);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-msg { font-size: 14px; line-height: 1.65; white-space: pre-line; }
.modal-input { width: 100%; margin-top: 14px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------- 커스텀 드롭다운 ---------- */
.cselect { position: relative; display: inline-block; }
.cselect-btn {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 8px 12px; font-size: 13px; width: 100%;
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  color: var(--text); text-align: left;
}
.cselect-btn i { font-size: 10px; color: var(--sub); }
.cselect-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 9400;
  min-width: 100%; max-height: 220px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  padding: 4px;
}
.cs-opt {
  padding: 7px 11px; font-size: 13px; border-radius: 7px; cursor: pointer;
  white-space: nowrap;
}
.cs-opt:hover { background: var(--line-soft); }
.cs-opt.on { color: var(--accent-strong); font-weight: 700; background: var(--accent-soft); }

/* ---------- 커스텀 달력 선택기 ---------- */
.cdate-menu { padding: 10px; min-width: 232px; }
.cdate-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cdate-title { font-size: 12.5px; font-weight: 700; }
.cdate-nav {
  border: none; background: transparent; width: 26px; height: 26px;
  border-radius: 7px; color: var(--sub); font-size: 11px;
}
.cdate-nav:hover { background: var(--line-soft); color: var(--text); }
.cdate-grid { display: grid; grid-template-columns: repeat(7, 30px); gap: 2px; justify-content: center; }
.cdate-dow { font-size: 10px; color: var(--sub); text-align: center; padding: 3px 0; font-weight: 600; }
.cdate-day {
  width: 30px; height: 27px; border: none; background: transparent;
  border-radius: 7px; font-size: 12px; color: var(--text);
}
.cdate-day:hover { background: var(--line-soft); }
.cdate-day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.cdate-day.sel { background: var(--accent); color: #fff; font-weight: 700; }
.cdate-day.blank { visibility: hidden; }
.cdate-clear { width: 100%; margin-top: 8px; }

/* ---------- 투두 ---------- */
.todo-item .drag-handle { color: #ddd6d1; cursor: grab; font-size: 12px; }
.todo-item.dragging { opacity: .4; }
.todo-dates { font-size: 10.5px; color: var(--sub); margin-top: 2px; display: flex; gap: 8px; }
.todo-dates .over { color: var(--danger); font-weight: 600; }

/* ---------- OC 프로필 / 버전 ---------- */
.ver-tabs { margin-bottom: 14px; }
.ver-tabs .tab-btn { display: inline-flex; align-items: center; gap: 6px; }
.vt-edit { font-size: 10px; opacity: .6; cursor: pointer; }
.vt-edit:hover { opacity: 1; }
.oc-fade { animation: ocFade .45s ease; }
@keyframes ocFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.oc-profile-head { display: flex; gap: 18px; align-items: flex-start; }
.oc-profile-head .op-name { font-size: 18px; font-weight: 800; }
.oc-catch {
  color: var(--accent-strong); font-size: 13px; margin-top: 6px; line-height: 1.5;
}
.oc-catch::before { content: "\201C"; margin-right: 2px; opacity: .6; }
.oc-catch::after { content: "\201D"; margin-left: 2px; opacity: .6; }
.pf-label { width: 84px; flex-shrink: 0; color: var(--sub); font-size: 12px; }
.pf-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.rel-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 8px; }
.rel-edit { border: 1px solid var(--line); border-radius: 11px; padding: 10px; margin-bottom: 8px; }

/* ---------- 리치 에디터 ---------- */
.editor-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.editor-toolbar {
  display: flex; gap: 2px; padding: 6px; flex-wrap: wrap;
  background: #fafaf9; border-bottom: 1px solid var(--line-soft);
}
.editor-toolbar button {
  border: none; background: transparent; border-radius: 7px;
  width: 30px; height: 28px; font-size: 12.5px; color: var(--sub);
}
.editor-toolbar button:hover { background: var(--line-soft); color: var(--text); }
.editor-area {
  min-height: 120px; max-height: 400px; overflow-y: auto;
  padding: 14px; outline: none; font-size: 14px; line-height: 1.7;
}
.editor-area img { border-radius: 8px; }
.editor-area a { color: var(--accent-strong); }

/* 포스트 카드 */
.post-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 12px; background: #fff;
}
.post-card .post-date { font-size: 11.5px; color: var(--sub); margin-bottom: 8px; }
.post-content { line-height: 1.7; word-break: break-word; }
.post-content img { border-radius: 10px; margin: 4px 0; }
.post-content a { color: var(--accent-strong); }
.yt-embed {
  margin-top: 10px; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16 / 9; width: 100%; max-width: 480px;
}
.yt-embed iframe { width: 100%; height: 100%; border: none; }

/* ---------- 슬라이드쇼 ---------- */
.slideshow {
  width: 100%; aspect-ratio: 3 / 1;
  border-radius: 12px; overflow: hidden; position: relative;
  background: var(--accent-soft);
}
.slideshow .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s;
}
.slideshow .slide.on { opacity: 1; }
.slideshow .slide-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; color: var(--accent-strong); font-size: 13px; opacity: .7;
}
.slide-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.slide-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer;
}
.slide-dots span.on { background: #fff; }

/* ---------- 다이어리 (메모지) ---------- */
.diary-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.memo-card {
  border-radius: 12px;
  padding: 16px; position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.memo-card .memo-date { font-size: 11px; opacity: .5; margin-bottom: 8px; }
.memo-card .memo-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.memo-card:hover .memo-tools { opacity: 1; }
.memo-c0 { background: #fdf7d8; } .memo-c1 { background: #fdeef3; }
.memo-c2 { background: #eaf3fd; } .memo-c3 { background: #ecfaec; }
.memo-c4 { background: #f5eefd; }

/* ---------- 가계부 ---------- */
.money-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.money-table th {
  background: #fafaf9; padding: 8px 10px; text-align: left;
  font-weight: 600; font-size: 12px; color: var(--sub);
}
.money-table th:first-child { border-radius: 8px 0 0 8px; }
.money-table th:last-child { border-radius: 0 8px 8px 0; }
.money-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.money-plus { color: #2e9e5b; font-weight: 600; }
.money-minus { color: var(--danger); font-weight: 600; }
.summary-cards { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.summary-card {
  flex: 1; min-width: 110px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; text-align: center;
}
.summary-card .sc-label { font-size: 11.5px; color: var(--sub); }
.summary-card .sc-val { font-size: 16px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* 리스트형 항목 (가계부 탭, 투두 등) */
.list-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 14px; margin-bottom: 8px;
}
.list-item a { color: var(--accent-strong); }

/* ---------- 달력 ---------- */
.cal-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.cal-head .cal-title { font-size: 16px; font-weight: 700; min-width: 110px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-weight: 600; font-size: 11.5px; padding: 4px 0; color: var(--sub); }
.cal-cell {
  min-height: 76px; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 9px; padding: 5px; cursor: pointer; overflow: hidden;
}
.cal-cell:hover { border-color: var(--accent); }
.cal-cell .d { font-size: 11.5px; font-weight: 600; }
.cal-cell.today { background: var(--accent-soft); border-color: var(--accent); }
.cal-cell.other { opacity: .35; }
.cal-ev {
  font-size: 11px; border-radius: 5px; padding: 1px 6px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}

/* ---------- 북마크 ---------- */
.bm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) { .bm-grid { grid-template-columns: repeat(2, 1fr); } }
.bm-card {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: var(--text);
  transition: box-shadow .15s, border-color .15s;
}
.bm-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(60,40,50,.08); }
.bm-thumb {
  width: 100%; aspect-ratio: 1.91 / 1;
  background-size: cover; background-position: center;
  background-color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong); font-size: 20px;
}
.bm-body { padding: 10px 12px 12px; }
.bm-title {
  font-size: 12.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.bm-site { font-size: 11px; color: var(--sub); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 3px; }
.bm-del {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border: none; border-radius: 8px;
  background: rgba(255,255,255,.9); color: var(--sub); font-size: 11px;
  opacity: 0; transition: opacity .15s;
  display: flex; align-items: center; justify-content: center;
}
.bm-card:hover .bm-del { opacity: 1; }
.bm-del:hover { color: var(--danger); background: #fff; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }

/* 태그 칩 */
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-soft); color: var(--accent-strong);
  border-radius: 7px; padding: 2.5px 9px; font-size: 11.5px; font-weight: 500;
  border: none;
}
button.tag-chip { cursor: pointer; }
.tag-chip.on { background: var(--accent-strong); color: #fff; }
.tag-chip .t-x { cursor: pointer; opacity: .6; }
.tag-chip .t-x:hover { opacity: 1; }

/* ---------- 투두 ---------- */
.todo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid var(--line-soft);
}
.todo-item .todo-text { flex: 1; font-size: 13.5px; }
.todo-item.done .todo-text { text-decoration: line-through; color: var(--sub); }
.todo-item .btn { opacity: 0; transition: opacity .15s; }
.todo-item:hover .btn { opacity: 1; }

/* ---------- OC ---------- */
.oc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.oc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; text-align: center;
  transition: box-shadow .15s, border-color .15s;
}
.oc-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(60,40,50,.08); }
.oc-card .oc-img {
  width: 100%; aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  background-color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--accent-strong);
}
.oc-card .oc-name { padding: 9px 6px 2px; font-weight: 600; font-size: 13px; }
.oc-card .oc-ename { font-size: 10.5px; color: var(--sub); padding-bottom: 10px; }
.kv-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.oc-detail-img {
  width: 150px; height: 150px; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--line); background: var(--accent-soft);
}
.pair-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
}
.pair-imgs { display: flex; align-items: center; gap: 10px; justify-content: center; }
.pair-imgs .p-img {
  width: 80px; height: 80px; border-radius: 12px;
  background-size: cover; background-position: center; background-color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--accent-strong);
}
.pair-imgs .p-heart { font-size: 15px; color: var(--accent-strong); }
.pair-name { text-align: center; font-size: 15px; font-weight: 700; margin: 10px 0 2px; }

/* ---------- 설정 ---------- */
.theme-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-swatch {
  width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
  border: 2px solid transparent;
}
.theme-swatch.on { border-color: var(--text); }
.icon-set-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.icon-set-row .isr-label { width: 64px; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.icon-set-row .isr-preview {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--accent-strong); overflow: hidden;
}
.icon-set-row .isr-preview img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; }

/* ---------- 애니메이션 ---------- */
@keyframes winOpen { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes winClose { to { opacity: 0; transform: scale(.95) translateY(10px); } }
@keyframes winMin { to { opacity: 0; transform: translateY(55vh) scale(.4); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.93) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popOut { to { opacity: 0; transform: scale(.95); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.window { animation: winOpen .38s cubic-bezier(.22, .9, .32, 1.12); transition: box-shadow .25s; }
.window.closing { animation: winClose .22s ease forwards; pointer-events: none; }
.window.minimizing { animation: winMin .3s ease-in forwards; pointer-events: none; }
.window.dragging { box-shadow: 0 30px 70px rgba(60, 40, 50, .28); }
.window.dragging .window-header { cursor: grabbing; }
.fade-in { animation: fadeUp .45s ease; }
.desk-icon { animation: fadeUp .6s ease backwards; }
.task-btn { animation: fadeUp .3s ease; }
.modal-overlay { animation: fadeIn .25s ease; }
.modal-box { animation: popIn .3s cubic-bezier(.2, .9, .3, 1.15); }
.modal-overlay.closing { animation: fadeOut .18s ease forwards; pointer-events: none; }
.modal-overlay.closing .modal-box { animation: popOut .18s ease forwards; }
.cselect-menu { animation: menuIn .22s ease; }
.login-card { animation: popIn .55s cubic-bezier(.2, .9, .3, 1.15); }
.btn { transition: filter .15s, transform .12s; }
.btn:active { transform: scale(.95); }
.tag-chip { transition: background .15s, color .15s; }
.tab-btn { transition: background .15s, color .15s, box-shadow .15s; }
.window-header button { transition: background .15s, color .15s; }
.cs-opt { transition: background .12s; }
.cdate-day { transition: background .12s; }

/* 스크롤바 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #e6e0dc; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #d5cdc8; }
::-webkit-scrollbar-track { background: transparent; }

/* 모바일 대응 (간단) */
@media (max-width: 600px) {
  .window { left: 4px !important; right: 4px; width: auto !important; max-width: calc(100vw - 8px); }
  #desktop-icons { grid-template-columns: repeat(2, 80px); }
  .bm-grid { grid-template-columns: 1fr 1fr; }
}
