:root {
  --bg: #F5F1EC;
  --panel: #FFFFFF;
  --ink: #3D362F;
  --muted: #A79E93;
  --faint: #CFC6BB;
  --accent: #EF6A4E;
  --accent-soft: #FBEDE6;
  --gold: #F8B84E;
  --line: #EFE7DE;
  --shadow: 0 12px 32px rgba(61, 54, 47, 0.06);
  --radius: 20px;
  --serif: "Georgia", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg); }

body {
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.layout {
  display: grid;
  grid-template-columns: 232px 1fr 300px;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 22px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.18s, color 0.18s;
}

.nav-item:hover { background: #FAF6F1; }

.nav-item.active {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.nav-icon {
  font-size: 18px;
  filter: grayscale(0.2);
}

.nav-item.active .nav-icon { filter: none; }

.sidebar-foot { margin-top: auto; }

/* ---------- 主内容 ---------- */
.content {
  min-width: 0;
}

.page-head {
  padding: 6px 4px 4px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.page-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}

.page-sub {
  font-size: 13px;
  color: var(--muted);
}

.view-body { padding-top: 8px; }

/* ---------- 右侧活动栏 ---------- */
.rail {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow: auto;
}

.rail-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.rail-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.rail-en {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.activity { position: relative; }

.activity-item {
  position: relative;
  padding: 0 0 20px 30px;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: -4px;
  border-left: 2px dashed #E7DFD6;
}

.activity-item:last-child::before { display: none; }

.act-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--panel);
}

.activity-item.dim { opacity: 0.55; }

.act-title {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.act-time {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 14px 0;
}

.section-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 22px 4px 4px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 3px 10px;
  margin-right: 6px;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 40px 0;
}

.footnote {
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  margin: 24px 0;
}

/* ---------- 宠物卡片 ---------- */
.pet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  box-shadow: none;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: var(--accent-soft);
}

.pet-info { flex: 1; min-width: 0; }
.pet-name { font-weight: 700; font-size: 15px; }
.pet-meta { font-size: 12px; color: var(--muted); margin: 2px 0; }
.arrow { font-size: 22px; color: var(--faint); }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(135deg, #FBF3EC, #F7E8DD);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 8px 0 6px;
}

.hello { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.quick-item {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 10px;
  text-align: center;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.quick-icon {
  display: block;
  font-size: 24px;
  margin: 0 auto 8px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 提醒 ---------- */
.reminder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.reminder.done { opacity: 0.55; }

.reminder-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.reminder-info { flex: 1; min-width: 0; }
.reminder-title { font-size: 14px; font-weight: 500; }
.reminder-due { font-size: 12px; color: var(--muted); margin-top: 2px; }
.reminder-due.overdue { color: var(--accent); }
.done-mark { font-size: 12px; color: #A9C59C; }

.btn-mini {
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 12px;
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
}

/* ---------- 时间线 ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
}

.filter-item {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.filter-item.active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.add-entry {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  padding: 18px 0 30px;
  cursor: pointer;
}

.record-card {
  margin: 14px 0;
  overflow: hidden;
}

.record-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.record-photo.placeholder {
  background: linear-gradient(135deg, #F7E8DD, #FBF3EC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.record-content { font-size: 15px; line-height: 1.6; font-family: var(--serif); }
.record-meta { display: flex; align-items: center; margin-top: 12px; }
.record-meta .time { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- 记一笔 ---------- */
.upload-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  background: #FBF8F4;
}

.photo-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 10px;
}

textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 1.7;
  font-family: var(--sans);
  min-height: 90px;
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px;
  background: #FBF8F4;
}

.tag-section { display: flex; flex-wrap: wrap; margin-top: 12px; }
.tag-pick {
  font-size: 12px;
  color: var(--muted);
  background: #FBF8F4;
  border-radius: 20px;
  padding: 7px 15px;
  margin: 0 8px 8px 0;
  cursor: pointer;
}
.tag-pick.active { color: #fff; background: var(--accent); }

/* ---------- 成长报告 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0;
}

.stat-item {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 10px;
  text-align: center;
}

.stat-item .num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent); }
.stat-item .label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.bar-chart { display: flex; align-items: flex-end; height: 130px; margin-top: 8px; }
.bar-col { flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar { width: 22px; margin: 0 auto; background: linear-gradient(180deg, #FBD3C4, var(--accent)); border-radius: 6px 6px 0 0; }
.bar-value { font-size: 10px; color: var(--muted); margin-top: 4px; }
.bar-label { font-size: 10px; color: var(--faint); }

.moment { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.moment:last-child { border-bottom: none; }
.moment-emoji { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.moment-title { flex: 1; font-size: 14px; }
.moment-date { font-size: 12px; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn-primary {
  display: block;
  width: 100%;
  margin: 16px 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  padding: 13px 0;
  cursor: pointer;
}

.btn-plain {
  display: block;
  width: 100%;
  margin: 12px 0;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 22px;
  font-size: 14px;
  padding: 11px 0;
  cursor: pointer;
}

/* ---------- 我的 ---------- */
.pet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.pet-row:last-child { border-bottom: none; }
.pet-row .avatar { width: 38px; height: 38px; font-size: 20px; }
.pet-row.active { color: var(--accent); font-weight: 600; }

.member { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.member-emoji { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.member-name { flex: 1; font-size: 14px; }
.member-role { font-size: 12px; color: var(--muted); }

.setting-cell { display: flex; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-cell:last-child { border-bottom: none; }
.setting-icon { margin-right: 12px; color: var(--accent); }
.setting-label { flex: 1; font-size: 14px; }
.setting-arrow { color: var(--faint); font-size: 20px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(61, 54, 47, 0.9);
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
#toast.show { opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 200px 1fr; }
  .rail { display: none; }
}

@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .brand { padding: 0; }
  .brand-name { display: none; }
  .nav { flex-direction: row; gap: 4px; margin-left: auto; }
  .nav-label { display: none; }
  .nav-item { padding: 10px; }
  .nav-item.active::before { display: none; }
  .sidebar-foot { display: none; }
  .content { padding: 0; }
  .page-title { font-size: 24px; }
  .quick-grid, .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 主人视角 ---------- */
.owner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #FFFCF8, #FBEFE6);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 8px 0 6px;
}

.owner-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.owner-info { min-width: 0; }
.owner-hello { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.owner-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

.pets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 14px 0;
}

.pet-tile {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.pet-tile.active { border-color: var(--accent); }

.pet-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.pet-avatar.add {
  background: #FBF8F4;
  color: var(--muted);
  font-size: 26px;
}

.pet-tile-name { font-size: 15px; font-weight: 600; }
.pet-tile-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

.owner-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.owner-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.owner-mini-name { font-size: 14px; font-weight: 600; }

@media (max-width: 720px) {
  .pets-grid { grid-template-columns: repeat(2, 1fr); }
  .owner-card { padding: 18px 18px; }
}

/* ---------- 登录/注册 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 36px 30px;
}

.auth-brand { font-family: var(--serif); font-size: 26px; font-weight: 700; text-align: center; }
.auth-title { font-size: 14px; color: var(--muted); text-align: center; margin: 6px 0 22px; }

.auth-card input {
  width: 100%;
  border: 1px solid var(--line);
  background: #FBF8F4;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  outline: none;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-switch { text-align: center; font-size: 13px; color: var(--accent); margin-top: 14px; cursor: pointer; }

/* ---------- 头像图片 ---------- */
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-emoji { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.owner-avatar { overflow: hidden; }
.pet-avatar { overflow: hidden; }
.pet-avatar .avatar-emoji { font-size: 30px; }
.avatar { overflow: hidden; }

/* ---------- 我的 - 资料编辑 ---------- */
.owner-edit { display: flex; align-items: center; gap: 14px; }
.owner-edit .avatar { width: 56px; height: 56px; font-size: 28px; flex-shrink: 0; }
.form-input, .form-select, .form-date {
  width: 100%;
  border: 1px solid var(--line);
  background: #FBF8F4;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  font-size: 14px;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-date:focus { border-color: var(--accent); }

.upload-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
}

.row { display: flex; align-items: center; gap: 12px; }
.right-space { margin-left: auto; }
.pet-delete {
  color: #D9534F;
  font-size: 12px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
}

.btn-danger {
  display: block;
  width: 100%;
  margin: 10px 0;
  background: transparent;
  color: #D9534F;
  border: 1px solid #E8B4B0;
  border-radius: 22px;
  font-size: 14px;
  padding: 11px 0;
  cursor: pointer;
}

.pet-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pet-list-row:last-child { border-bottom: none; }

.getcode {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.getcode.disabled { opacity: 0.5; pointer-events: none; }
.devcode { font-size: 13px; color: var(--muted); margin: 4px 0 12px; text-align: center; }
.devcode b { color: var(--accent); font-size: 16px; }
.auth-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

.back-row { margin: 4px 4px 12px; }
.back-btn { color: var(--accent); font-size: 14px; cursor: pointer; }

.field { margin: 14px 0; }
.field-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.avatar-preview { margin-top: 12px; }
.avatar-preview img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }

/* ---------- 裁剪弹层 ---------- */
.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.crop-panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 20px;
  width: min(88vw, 360px);
}
.crop-title { font-family: var(--serif); font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #EFE6DC;
  touch-action: none;
  cursor: move;
}
.crop-frame img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.crop-controls { margin-top: 14px; }
.crop-controls input[type="range"] { width: 100%; margin: 6px 0; }
.crop-actions { display: flex; gap: 10px; margin-top: 10px; }
.crop-actions .btn-primary { margin: 0; flex: 1; }
.crop-actions .btn-plain { margin: 0; flex: 1; }

/* ---------- 图标 ---------- */
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.brand-logo .icon, .nav-icon .icon { width: 18px; height: 18px; }
.nav-icon { color: var(--muted); }
.nav-item.active .nav-icon { color: var(--accent); }
.back-btn .icon { width: 16px; height: 16px; }
.upload-pill .icon { width: 15px; height: 15px; }
.pet-delete .icon { width: 13px; height: 13px; vertical-align: -2px; }
.member-emoji .icon, .owner-mini-avatar .icon { width: 16px; height: 16px; }
.avatar-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.avatar-icon .icon { width: 60%; height: 60%; }
.pet-card .avatar, .pet-list-row .avatar, .pet-avatar { color: #fff; }
.owner-avatar, .owner-mini-avatar, .owner-edit .avatar, .member-emoji { color: var(--accent); }
.pet-avatar.add { color: var(--muted); }

/* ---------- 分段选择器 ---------- */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-item {
  background: #FBF8F4;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.seg-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* ---------- 输入提示文字 ---------- */
.form-input::placeholder,
.form-date::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.form-date::-webkit-datetime-edit { color: var(--muted); }

/* ---------- 自定义日期选择 ---------- */
.date-field { position: relative; }
.date-input { cursor: pointer; padding-right: 42px; }
.date-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.date-pop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(61, 54, 47, 0.14);
  padding: 14px;
  z-index: 50;
}
.date-field .form-input { margin: 0; }
.dc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.dc-title { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.dc-nav { cursor: pointer; color: var(--accent); display: inline-flex; }
.dc-nav.right { transform: rotate(180deg); margin-left: auto; }
.dc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FBF8F4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 11px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.dc-pill .icon { width: 12px; height: 12px; color: var(--muted); }
.dc-panel {
  margin: 6px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 168px;
  overflow: auto;
}
.dc-panel.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dc-panel.dc-year { max-height: 220px; }
.dc-opt {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  background: #FBF8F4;
  border: 1px solid var(--line);
  flex: 1 1 30%;
}
.dc-opt:hover { background: var(--accent-soft); }
.dc-opt.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.dc-opt.disabled { opacity: 0.4; pointer-events: none; }
.dc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.dc-wd { font-size: 11px; color: var(--muted); padding: 5px 0; }
.dc-empty { }
.dc-day { font-size: 13px; padding: 6px 0; border-radius: 8px; cursor: pointer; min-width: 0; }
.dc-day:hover { background: var(--accent-soft); }
.dc-day.today { color: var(--accent); font-weight: 700; }
