/* ===== 我們的小天地 — Design Tokens (§1) ===== */
:root {
  /* 1.1 色彩 (§1.1) */
  --pink: #F1567F;
  --pinkDark: #D83C68;
  --pinkSoft: #FFEAF1;
  --pinkLight: #FFF5F8;
  --peach: #FFA987;
  --lavender: #B9A7FF;
  --ink: #3D2E36;
  --inkSoft: #9A8A91;
  --cream: #FFF8F5;
  --grayBg: #FBF1F2;
  --border: #F3E3E8;
  --success: #3DBE7A;
  --warning: #FFB020;
  --danger: #FF5A6E;
  --white: #FFFFFF;

  /* 漸層 (§1.1) */
  --heartGradient: linear-gradient(135deg, #FFC2D6, #FF93B4, #F1567F);
  --peachGradient: linear-gradient(135deg, #FFC59B, #FF9A76);
  --softGradient: linear-gradient(180deg, #FFF5F8, #FFF8F5);

  /* 1.3 間距 */
  --sp4: 4px;
  --sp8: 8px;
  --sp12: 12px;
  --sp16: 16px;
  --sp22: 22px;
  --sp28: 28px;
  --pageGutter: 16px;

  /* 1.3 圓角 */
  --rSm: 12px;
  --rMd: 16px;
  --rLg: 22px;
  --rPill: 28px;

  /* 1.4 陰影 */
  --cardShadow: 0 4px 14px rgba(232, 86, 140, 0.06);
  --softShadow: 0 6px 18px rgba(241, 86, 127, 0.10);

  /* 字體層級 (§1.2) */
  --fontDisplay: 26px;
  --fontH1: 22px;
  --fontH2: 18px;
  --fontBody: 15px;
  --fontCaption: 12px;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ===== AppBackground (§4.1) ===== */
.app-bg {
  min-height: 100vh;
  background: var(--softGradient);
  position: relative;
  overflow: hidden;
}
.app-bg::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(241, 86, 127, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.app-bg::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -8%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(185, 167, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

/* ===== MAIN LAYOUT (Desktop sidebar) ===== */
aside.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--cardShadow);
}
.sidebar-brand {
  padding: 24px 20px 16px;
  font-size: 1.15em;
  font-weight: 800;
  color: var(--pink);
  border-bottom: 1px solid var(--pinkSoft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand span { font-size: 1.3em; }
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp12) 0;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  text-decoration: none;
  color: var(--inkSoft);
  font-size: .93em;
  border-left: 3px solid transparent;
  transition: all .18s;
  border-radius: 0 var(--rSm) var(--rSm) 0;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--pinkSoft);
  color: var(--pink);
  border-left-color: var(--pink);
}
.sidebar-nav a .ico { font-size: 1.15em; width: 24px; text-align: center; }
.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: .82em;
  color: var(--inkSoft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-footer a { text-decoration: none; color: var(--inkSoft); }
.sidebar-footer a:hover { color: var(--pink); }

main.main-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp28) 32px;
  min-width: 0;
}

/* ===== TOP BAR (§3.2) ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp22);
  flex-wrap: wrap;
  gap: var(--sp12);
}
.topbar .greeting {
  font-size: var(--fontH1);
  font-weight: 800;
  color: var(--ink);
}
.topbar .greeting .wave {
  display: inline-block;
  animation: wave .6s ease-in-out 3;
}
@keyframes wave {
  0%, 100% { transform: rotate(0) }
  50% { transform: rotate(14deg) }
}
.topbar .time {
  font-size: var(--fontCaption);
  color: var(--inkSoft);
  background: var(--white);
  padding: 6px 14px;
  border-radius: var(--rPill);
  box-shadow: var(--cardShadow);
}
.topbar-actions {
  display: flex;
  gap: var(--sp8);
  align-items: center;
}
.topbar-actions .badge {
  background: var(--pinkSoft);
  color: var(--pink);
  font-size: .78em;
  padding: 4px var(--sp12);
  border-radius: var(--rPill);
  font-weight: 600;
}

/* ===== 共用元件 (§2) ===== */

/* GradientButton — 主按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp8);
  padding: 14px 24px;
  border: none;
  border-radius: var(--rPill);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: all .2s ease;
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--heartGradient);
  color: var(--white);
  box-shadow: var(--softShadow);
  width: 100%;
  height: 52px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* 次按鈕 */
.btn-outline {
  background: var(--white);
  color: var(--pink);
  border: 1.5px solid var(--border);
  border-radius: var(--rPill);
}
.btn-outline:hover {
  border-color: var(--pink);
  background: var(--pinkSoft);
}

/* 危險按鈕 */
.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  border-radius: var(--rPill);
}
.btn-danger:hover {
  background: #FFF0F0;
}

/* 幽靈按鈕 */
.btn-ghost {
  background: var(--grayBg);
  color: var(--inkSoft);
}
.btn-ghost:hover {
  background: var(--border);
}

/* 小按鈕 */
.btn-sm {
  padding: 6px 14px;
  font-size: .8em;
  height: auto;
}

/* SoftCard — 卡片 */
.card {
  background: var(--white);
  border-radius: var(--rMd);
  box-shadow: var(--cardShadow);
  padding: 18px;
  margin-bottom: var(--sp16);
}
.card-header {
  display: flex;
  align-items: center;
  gap: var(--sp8);
  margin-bottom: 14px;
  font-weight: 800;
  font-size: var(--fontH2);
  color: var(--ink);
}
.card-header .ico { font-size: 1.2em; }

/* SectionTitle — 區塊標題 */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp12);
}
.section-title h2 {
  font-size: var(--fontH2);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.section-title a {
  font-size: 13px;
  font-weight: 500;
  color: var(--pink);
  text-decoration: none;
}
.section-title a:hover {
  opacity: 0.8;
}

/* 輸入框 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 12px var(--sp16);
  border: 1.5px solid var(--border);
  border-radius: var(--rSm);
  background: var(--grayBg);
  font-size: var(--fontBody);
  font-family: inherit;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(241, 86, 127, 0.12);
}
::placeholder {
  color: var(--inkSoft);
}

/* 輸入框群組（含圖示） */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.15em;
  color: var(--pink);
  pointer-events: none;
  z-index: 1;
}
.input-group input {
  padding-left: 42px;
}

/* Chip / 晶片標籤 */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--sp12);
  border-radius: var(--rPill);
  font-size: var(--fontCaption);
  font-weight: 600;
  background: var(--pinkSoft);
  color: var(--pinkDark);
}
.chip.selected {
  background: var(--pink);
  color: var(--white);
}

/* EmptyState — 空狀態 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px var(--sp16);
  text-align: center;
}
.empty-state .empty-icon {
  font-size: 3em;
  margin-bottom: var(--sp16);
}
.empty-state .empty-text {
  font-size: var(--fontBody);
  color: var(--inkSoft);
  margin-bottom: var(--sp22);
  line-height: 1.5;
}
.empty-state .btn {
  width: auto;
}

/* 骨架屏 (Skeleton) */
.skeleton {
  background: linear-gradient(90deg, var(--pinkSoft) 25%, var(--pinkLight) 50%, var(--pinkSoft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--rSm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 16px;
  margin-bottom: var(--sp8);
  width: 80%;
}
.skeleton-text.short { width: 50%; }
.skeleton-card {
  height: 100px;
  margin-bottom: var(--sp12);
}
.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Toast / SnackBar */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px var(--sp22);
  border-radius: var(--rSm);
  font-size: var(--fontBody);
  z-index: 9999;
  animation: toastIn .3s ease, toastOut .3s ease 2.2s forwards;
  max-width: 90vw;
  text-align: center;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 對話框 / Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61, 46, 54, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show {
  display: flex;
}
.modal-content {
  background: var(--white);
  border-radius: var(--rLg);
  padding: var(--sp28);
  max-width: 420px;
  width: 90%;
  box-shadow: var(--softShadow);
  text-align: center;
}
.modal-content h2 {
  font-size: var(--fontH2);
  font-weight: 800;
  margin: 0 0 var(--sp12);
  color: var(--ink);
}
.modal-content p {
  font-size: var(--fontBody);
  color: var(--inkSoft);
  margin-bottom: var(--sp22);
  line-height: 1.5;
}
.modal-content .btn-group {
  display: flex;
  gap: var(--sp8);
}
.modal-content .btn-group .btn {
  flex: 1;
  height: 44px;
  font-size: 14px;
}

/* 進度條 */
.progress-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--grayBg);
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  border-radius: 5px;
  background: var(--heartGradient);
  transition: width .4s ease;
}
.progress-bar .fill.warning {
  background: var(--warning);
}
.progress-bar .fill.danger {
  background: var(--danger);
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: var(--fontCaption);
  color: var(--inkSoft);
  margin-top: 4px;
}

/* 頭像 */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pinkSoft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--pink);
  font-size: var(--fontBody);
  flex-shrink: 0;
}
.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: var(--fontCaption);
}
.avatar.lg {
  width: 64px;
  height: 64px;
  font-size: var(--fontH1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--pink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ===== GRID LAYOUTS ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp16);
  margin-bottom: var(--sp16);
}

/* 工具網格 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp12);
}
.tool-card {
  background: var(--white);
  border-radius: var(--rMd);
  padding: 20px var(--sp16);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: var(--cardShadow);
  transition: all .25s;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.tool-card:hover {
  border-color: var(--pink);
  box-shadow: var(--softShadow);
  transform: translateY(-3px);
}
.tool-card:active {
  transform: scale(0.97);
}
.tool-card .tool-icon {
  font-size: 2em;
  margin-bottom: var(--sp8);
  display: block;
}
.tool-card .tool-label {
  font-size: .9em;
  font-weight: 600;
  color: var(--ink);
}
.tool-card .tool-desc {
  font-size: .76em;
  color: var(--inkSoft);
  margin-top: 4px;
}

/* ===== BINDING STATUS (§4.3) ===== */
.binding-status {
  display: flex;
  align-items: center;
  gap: var(--sp12);
  flex-wrap: wrap;
}
.binding-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.bound { background: var(--success); }
.dot.pending { background: var(--warning); }
.dot.none { background: #ccc; }

.binding-form {
  display: flex;
  gap: var(--sp8);
  margin-top: var(--sp12);
}

/* ===== CHAT PANEL (§4.4) ===== */
.chat-panel {
  display: flex;
  flex-direction: column;
  max-height: 500px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: var(--sp12);
  flex-wrap: wrap;
}
.chat-head .quota {
  font-size: .76em;
  color: var(--inkSoft);
  font-weight: normal;
  margin-left: auto;
}
.chat-head .cclear {
  font-size: .72em;
  padding: 4px 10px;
  border: none;
  background: var(--grayBg);
  border-radius: var(--rSm);
  cursor: pointer;
  color: var(--inkSoft);
}
.chat-head .cclear:hover { background: var(--border); }

#chatlog {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: var(--grayBg);
  border-radius: var(--rSm);
  min-height: 300px;
  max-height: 360px;
}
#chatlog .m {
  max-width: 74%;
  padding: 9px 14px;
  border-radius: var(--rMd);
  margin: 6px 0;
  clear: both;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-size: .92em;
  line-height: 1.45;
}
#chatlog .mine {
  background: var(--pink);
  color: var(--white);
  float: right;
  border-bottom-right-radius: 4px;
}
#chatlog .theirs {
  background: var(--white);
  color: var(--ink);
  float: left;
  border-bottom-left-radius: 4px;
  box-shadow: var(--cardShadow);
}
#chatlog .t {
  display: block;
  font-size: .7em;
  opacity: .7;
  margin-top: 3px;
}
#chatlog .recalled {
  background: var(--border) !important;
  color: var(--inkSoft) !important;
  font-style: italic;
  font-size: .82em;
}
#chatlog .aacard {
  background: transparent !important;
  max-width: 85%;
  padding: 0;
}
#chatlog .aac {
  background: var(--white);
  border: 1px solid #ffd0e2;
  border-left: 4px solid var(--pink);
  border-radius: var(--rSm);
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--cardShadow);
}
#chatlog .aac-h {
  font-size: .78em;
  color: var(--pink);
  font-weight: 700;
}
#chatlog .aac-b {
  margin: 4px 0;
  font-size: 1em;
}
#chatlog .aac-f {
  font-size: .74em;
  color: var(--inkSoft);
}
#chatlog .recallbtn {
  display: none;
  font-size: .68em;
  background: rgba(255, 255, 255, .4);
  border: none;
  border-radius: var(--rSm);
  cursor: pointer;
  margin-left: 6px;
  padding: 1px 6px;
}
#chatlog .mine:hover .recallbtn { display: inline-block; }

.chat-composer {
  display: flex;
  gap: var(--sp8);
  align-items: center;
  margin-top: var(--sp12);
  flex-wrap: wrap;
}
.chat-composer input {
  flex: 1;
  min-width: 180px;
  padding: 11px var(--sp16);
  border: 1.5px solid var(--border);
  border-radius: var(--rPill);
  font-size: .93em;
  font-family: inherit;
  background: var(--white);
}
.chat-composer input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(241, 86, 127, 0.12);
}
.icon-btn {
  border: none;
  background: var(--grayBg);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.icon-btn:hover { background: var(--border); }
.icon-btn.on { background: var(--pink); color: var(--white); }

.panel-tray {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: var(--grayBg);
  border-radius: var(--rSm);
  margin-bottom: var(--sp8);
  max-height: 120px;
  overflow-y: auto;
}
#stickerPanel img {
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: var(--rSm);
  transition: transform .15s;
}
#stickerPanel img:hover { transform: scale(1.12); }
#emojiPanel span {
  font-size: 1.4em;
  cursor: pointer;
}

#clearBanner {
  background: #FFF7E6;
  border: 1px solid #FFE0A3;
  border-radius: var(--rSm);
  padding: 8px var(--sp12);
  margin-bottom: 10px;
  font-size: .82em;
  display: none;
}
#clearBanner button {
  font-size: .8em;
  border: none;
  border-radius: var(--rSm);
  padding: 4px 10px;
  cursor: pointer;
  margin-left: 6px;
}
#clearBanner .agree { background: var(--pink); color: var(--white); }
#clearBanner .cancel { background: var(--grayBg); }

#searchBar { display: none; margin-bottom: 10px; }
#searchBar input {
  flex: 1;
  padding: 9px;
  border: 1.5px solid var(--border);
  border-radius: var(--rSm);
  font-family: inherit;
}
#searchResults {
  max-height: 160px;
  overflow-y: auto;
  margin-top: 6px;
  font-size: .85em;
}

/* ===== IMAGE GRID ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.image-grid .image-item {
  text-align: center;
  background: var(--grayBg);
  border-radius: var(--rSm);
  overflow: hidden;
  transition: transform .2s;
}
.image-grid .image-item:hover { transform: scale(1.03); }
.image-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.image-grid p {
  margin: 0;
  padding: 6px var(--sp8);
  font-size: .78em;
  color: var(--inkSoft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== MOBILE BOTTOM NAV (§3.1) ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(241, 86, 127, 0.06);
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 env(safe-area-inset-bottom, 4px);
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--inkSoft);
  font-size: .7em;
  padding: 4px var(--sp8);
  transition: color .18s;
}
.mobile-nav a span { font-size: .85em; }
.mobile-nav a.active { color: var(--pink); font-weight: 600; }

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: var(--sp16);
}
.form-group label {
  display: block;
  font-size: var(--fontCaption);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group .help-text {
  font-size: var(--fontCaption);
  color: var(--inkSoft);
  margin-top: 4px;
}
.form-group .error-text {
  font-size: var(--fontCaption);
  color: var(--danger);
  margin-top: 4px;
}

/* 密碼強度指示 */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.password-strength .bar {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
}
.password-strength .bar.weak { background: var(--danger); }
.password-strength .bar.fair { background: var(--warning); }
.password-strength .bar.strong { background: var(--success); }

/* ===== RESPONSIVE (§ 全站) ===== */
@media (max-width: 960px) {
  aside.sidebar { display: none; }
  main.main-content { padding: var(--sp16); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar { flex-direction: column; align-items: flex-start; }
  .mobile-nav { display: flex; }
}

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-composer input { min-width: 120px; }
  .chat-panel { max-height: 400px; }
  .card { padding: var(--sp16); }
  .topbar .greeting { font-size: var(--fontH2); }
  #chatlog { min-height: 200px; max-height: 260px; }
  #chatlog .m { max-width: 88%; }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-pink { color: var(--pink); }
.text-inkSoft { color: var(--inkSoft); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.font-bold { font-weight: 700; }
.font-display { font-size: var(--fontDisplay); font-weight: 800; letter-spacing: -0.5px; }
.font-h1 { font-size: var(--fontH1); font-weight: 800; }
.font-h2 { font-size: var(--fontH2); font-weight: 800; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--sp4); }
.mt-2 { margin-top: var(--sp8); }
.mt-3 { margin-top: var(--sp12); }
.mt-4 { margin-top: var(--sp16); }
.mb-4 { margin-bottom: var(--sp16); }
.pt-4 { padding-top: var(--sp16); }
.pb-4 { padding-bottom: var(--sp16); }
.flex-row { display: flex; align-items: center; gap: var(--sp8); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-12 { gap: var(--sp12); }
.w-full { width: 100%; }

/* Loading spinner (pink) */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--pinkSoft);
  border-radius: 50%;
  border-top-color: var(--pink);
  animation: spin .6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Link style */
a {
  color: var(--pink);
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
}

/* Selection */
::selection {
  background: #FFD0E2;
  color: var(--ink);
}