/* ============================================================
   DualStar · 角色日记（Diary）
   手账/日记本美学 · 兼容基线：安卓 Chrome 84+ / X5 86+
   铁律：不用 inset / color-mix / :has / aspect-ratio / clamp
   全站无 emoji：图标一律内联 SVG，心情用彩色文字标签
   ============================================================ */

.dy-app {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg, #FAFAFA);
  color: var(--text, #1A1A1A);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body, 'Noto Sans SC', 'HarmonyOS Sans SC', 'MiSans', 'OPPO Sans', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Roboto', sans-serif);
  overflow: hidden;
  z-index: 100;
}

/* —— 顶栏 —— */
.dy-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(var(--safe-area-top, 0px) + 8px) 10px 8px;
  background: var(--bg-glass, rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
  z-index: 5;
}
.dy-header-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #666666);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.dy-icon-btn:active { background: var(--surface-hover, #E8E8E8); }

/* —— 主体 —— */
.dy-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(var(--safe-area-bottom, 0px) + 24px);
}

/* —— 角色卡（微渐变装饰） —— */
.dy-char {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated, #FFFFFF);
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  margin-bottom: 12px;
  overflow: hidden;
}
.dy-char-glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 184, 150, 0.22) 0%, rgba(212, 184, 150, 0) 70%);
  pointer-events: none;
}
.dy-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  background: var(--accent-soft, #E8E8E8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}
.dy-avatar-fallback {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary, #666666);
}
.dy-avatar img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.dy-avatar img.dy-avatar-img-loaded { display: block; }
.dy-char-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.dy-char-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-char-sub { font-size: 12px; color: var(--text-tertiary, #6E6E6E); }
.dy-char-badge {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8895f;
  background: rgba(212, 184, 150, 0.16);
  position: relative;
  z-index: 1;
}

/* —— 统计（带图标） —— */
.dy-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.dy-stat {
  flex: 1;
  background: var(--bg-elevated, #FFFFFF);
  border-radius: 16px;
  padding: 12px 6px 11px;
  text-align: center;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  position: relative;
}
.dy-stat-icon {
  width: 26px;
  height: 26px;
  margin: 0 auto 5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dy-stat-icon-1 { color: #a8895f; background: rgba(212, 184, 150, 0.18); }
.dy-stat-icon-2 { color: #6b8a7a; background: rgba(107, 138, 122, 0.16); }
.dy-stat-icon-3 { color: #7a6ba0; background: rgba(122, 107, 160, 0.16); }
.dy-stat-num {
  font-size: 19px;
  font-weight: 700;
  color: var(--accent, #333333);
  line-height: 1.2;
}
.dy-stat-label { font-size: 11px; color: var(--text-tertiary, #6E6E6E); margin-top: 3px; }

/* —— 最近一篇 —— */
.dy-latest {
  display: flex;
  gap: 14px;
  background: var(--bg-elevated, #FFFFFF);
  border-radius: 18px;
  padding: 16px 16px 15px;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.06));
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.04));
}
.dy-latest:active { background: var(--surface, #EFEFEF); }
.dy-latest-left {
  flex: 0 0 auto;
  width: 52px;
  border-radius: 14px;
  background: linear-gradient(160deg, #e8dcc8 0%, #d4b896 100%);
  color: #5c4a2f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.dy-latest-day { font-size: 24px; font-weight: 700; line-height: 1.1; font-family: var(--font-display, 'Noto Serif SC', serif); }
.dy-latest-month { font-size: 11px; opacity: 0.85; margin-top: 1px; }
.dy-latest-main { flex: 1; min-width: 0; }
.dy-latest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.dy-latest-label {
  font-size: 11px;
  color: var(--text-tertiary, #6E6E6E);
  letter-spacing: 2px;
}
.dy-latest-badges { display: flex; gap: 6px; }
.dy-latest-title { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.dy-latest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.dy-latest-time { font-size: 12px; color: var(--text-tertiary, #6E6E6E); }
.dy-latest-preview {
  font-size: 13px;
  color: var(--text-secondary, #666666);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— 月份分组 + 时间轴 —— */
.dy-sec-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary, #6E6E6E);
  margin: 2px 2px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dy-sec-title-line {
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d4b896 0%, #b89a6e 100%);
}
.dy-groups { display: flex; flex-direction: column; gap: 14px; }
.dy-month {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary, #666666);
  letter-spacing: 1px;
  padding: 0 4px 2px;
}
.dy-month-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 14px;
}
.dy-month-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 3px;
  width: 2px;
  border-radius: 1px;
  background: var(--border, rgba(0, 0, 0, 0.07));
}

.dy-entry {
  position: relative;
  background: var(--bg-elevated, #FFFFFF);
  border-radius: 15px;
  padding: 13px 15px 12px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  cursor: pointer;
}
.dy-entry::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -14px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #d4b896;
  border: 2px solid var(--bg, #FAFAFA);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.dy-entry:active { background: var(--surface, #EFEFEF); }
.dy-entry-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.dy-entry-date { font-size: 13px; font-weight: 600; }
.dy-entry-week { font-size: 11px; color: var(--text-tertiary, #6E6E6E); font-weight: 400; }
.dy-entry-badges { margin-left: auto; display: flex; gap: 6px; }
.dy-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  line-height: 1.4;
}
.dy-tag-lock { background: #8a6b65; }
.dy-tag-viewed { background: #6b8a7a; }
.dy-entry-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dy-entry-time { font-size: 11px; color: var(--text-tertiary, #6E6E6E); }
.dy-entry-preview {
  font-size: 12.5px;
  color: var(--text-secondary, #666666);
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 心情彩色标签（无 emoji） —— */
.dy-mood-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}
.dy-mood-happy    { background: #FFEAD6; color: #B4691F; }
.dy-mood-sad      { background: #E3EDF7; color: #3E6B9E; }
.dy-mood-angry    { background: #FBE3E0; color: #C0463C; }
.dy-mood-miss     { background: #EDE4F8; color: #7A5BB8; }
.dy-mood-love     { background: #FBE0EA; color: #C0558B; }
.dy-mood-sweet    { background: #FBE7F0; color: #B34E7E; }
.dy-mood-hope     { background: #E0EDFB; color: #3E7BBF; }
.dy-mood-tired    { background: #ECECEC; color: #6E6E6E; }
.dy-mood-lonely   { background: #E2E9F0; color: #4A6278; }
.dy-mood-anxious  { background: #FDE8DD; color: #C4642E; }
.dy-mood-calm     { background: #E4F3E5; color: #4E8A4F; }
.dy-mood-confused { background: #F2E9DC; color: #8A6D3B; }
.dy-mood-touched  { background: #FBF0D9; color: #A8842C; }
.dy-mood-grateful { background: #DEF3EE; color: #3E8A77; }
.dy-mood-default  { background: #ECECF4; color: #5A5A76; }

/* —— 空态 / 关闭态（SVG 插画） —— */
.dy-empty, .dy-disabled {
  text-align: center;
  padding: 44px 24px 30px;
}
.dy-illust {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}
.dy-illust-ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #f0e6d2 0%, #e2d0b4 100%);
  opacity: 0.85;
}
.dy-illust-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a6d3b;
}
.dy-illust-icon svg { width: 44px; height: 44px; }
.dy-illust-pen {
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b4691f;
}
.dy-illust-page {
  position: absolute;
  right: -8px;
  top: -6px;
  width: 30px;
  height: 38px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transform: rotate(10deg);
}
.dy-empty-title, .dy-disabled-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dy-empty-desc, .dy-disabled-desc {
  font-size: 13px;
  color: var(--text-tertiary, #6E6E6E);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* —— 按钮 —— */
.dy-btn {
  border: none;
  border-radius: 13px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.dy-btn:disabled { opacity: 0.55; }
.dy-btn svg { flex: 0 0 auto; }
.dy-btn-primary {
  background: linear-gradient(135deg, #4a453e 0%, #2a2722 100%);
  color: #F5F0E6;
  box-shadow: 0 3px 10px rgba(42, 39, 34, 0.22);
}
.dy-btn-primary:active { opacity: 0.9; }
.dy-btn-ghost {
  background: var(--surface, #EFEFEF);
  color: var(--text-secondary, #666666);
  margin-top: 10px;
  width: 100%;
}
.dy-btn-text {
  background: transparent;
  color: var(--text-tertiary, #6E6E6E);
  margin-top: 6px;
  width: 100%;
  font-weight: 500;
}
.dy-btn-danger { background: var(--danger, #E04848); color: #fff; }
.dy-btn-sm { padding: 9px 18px; font-size: 13px; }
.dy-btn-block { width: 100%; margin-top: 14px; }
.dy-btn-write { margin-top: 6px; }

/* —— 浮层 —— */
.dy-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg, #FAFAFA);
  z-index: 20;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dy-hidden { display: none; }

/* —— 详情：纸页 —— */
.dy-paper {
  min-height: 100%;
  background: var(--bg-elevated, #FFFFFF);
  padding: calc(var(--safe-area-top, 0px) + 12px) 24px calc(var(--safe-area-bottom, 0px) + 36px);
  /* 横线纸效果（浅色） */
  background-image: repeating-linear-gradient(
    transparent 0,
    transparent 27px,
    var(--border, rgba(0, 0, 0, 0.06)) 27px,
    var(--border, rgba(0, 0, 0, 0.06)) 28px
  );
}
.dy-paper-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.dy-paper-date { flex: 1; font-size: 13px; color: var(--text-tertiary, #6E6E6E); }
.dy-paper-title {
  font-family: var(--font-display, 'Noto Serif SC', 'Songti SC', serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.dy-paper-time {
  font-size: 12px;
  color: var(--text-tertiary, #6E6E6E);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
  margin-bottom: 20px;
}
.dy-paper-body {
  font-family: var(--font-display, 'Noto Serif SC', 'Songti SC', serif);
  font-size: 15.5px;
  line-height: 2;
  color: var(--text, #1A1A1A);
}
.dy-paper-body p {
  margin: 0 0 6px;
  text-indent: 2em;
}
.dy-paper-divider {
  height: 1px;
  background: var(--border, rgba(0, 0, 0, 0.06));
  margin: 24px 0 18px;
}
.dy-paper-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary, #6E6E6E);
  letter-spacing: 3px;
  margin-top: 28px;
}

/* —— 留言 —— */
.dy-note-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary, #666666);
}
.dy-note-title svg { color: #a8895f; }
.dy-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dy-note {
  background: var(--bg-soft, #F5F5F5);
  border-radius: 12px;
  padding: 10px 13px;
  border-left: 3px solid #d4b896;
}
.dy-note-content { font-size: 13.5px; line-height: 1.6; }
.dy-note-time { font-size: 11px; color: var(--text-tertiary, #6E6E6E); margin-top: 4px; }
.dy-note-empty { font-size: 12px; color: var(--text-tertiary, #6E6E6E); padding: 8px 2px; }
.dy-note-input-row { display: flex; gap: 8px; }
.dy-note-input-row .dy-input { flex: 1; min-width: 0; }

/* —— 锁屏 —— */
.dy-lock {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
}
.dy-lock-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(160deg, #e8dcc8 0%, #d4b896 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c4a2f;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(212, 184, 150, 0.35);
}
.dy-lock-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.dy-lock-sub { font-size: 13px; color: var(--text-tertiary, #6E6E6E); margin-bottom: 16px; }
.dy-lock-hint {
  font-size: 12.5px;
  color: var(--text-secondary, #666666);
  line-height: 1.7;
  margin-bottom: 18px;
  background: var(--bg-soft, #F5F5F5);
  border-radius: 13px;
  padding: 13px 15px;
  width: 100%;
  box-sizing: border-box;
}
.dy-lock .dy-btn { width: 100%; }
.dy-lock .dy-input { margin-bottom: 12px; width: 100%; box-sizing: border-box; text-align: center; }

/* —— 输入 —— */
.dy-input {
  border: 1px solid var(--border-strong, rgba(0, 0, 0, 0.12));
  background: var(--bg-elevated, #FFFFFF);
  color: var(--text, #1A1A1A);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.dy-input:focus { border-color: #d4b896; box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.18); }
.dy-input-num { width: 100%; box-sizing: border-box; margin-bottom: 6px; }

/* —— 设置面板 —— */
.dy-sheet {
  min-height: 100%;
  background: var(--bg, #FAFAFA);
  padding: calc(var(--safe-area-top, 0px) + 8px) 18px calc(var(--safe-area-bottom, 0px) + 30px);
}
.dy-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 14px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
  margin-bottom: 16px;
}
.dy-sheet-title { font-size: 17px; font-weight: 700; }
.dy-sheet-body { display: flex; flex-direction: column; gap: 4px; }
.dy-row-title { font-size: 14.5px; font-weight: 600; }
.dy-row-sub { font-size: 12px; color: var(--text-tertiary, #6E6E6E); margin-top: 2px; }
.dy-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elevated, #FFFFFF);
  border-radius: 15px;
  padding: 15px 17px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  margin-bottom: 10px;
}
.dy-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: 0 0 auto; }
.dy-switch input { opacity: 0; width: 0; height: 0; }
.dy-switch-track {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: var(--surface, #EFEFEF);
  transition: background 0.2s;
  cursor: pointer;
}
.dy-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.2s;
}
.dy-switch input:checked + .dy-switch-track { background: #a8895f; }
.dy-switch input:checked + .dy-switch-track::after { left: 23px; }

.dy-field {
  background: var(--bg-elevated, #FFFFFF);
  border-radius: 15px;
  padding: 15px 17px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  margin-bottom: 10px;
}
.dy-field .dy-row-sub { margin-bottom: 10px; }
.dy-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dy-range input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #a8895f;
}
.dy-range-val { font-size: 12px; color: var(--text-secondary, #666666); white-space: nowrap; }
.dy-select-row { display: flex; align-items: center; gap: 8px; }
.dy-colon { color: var(--text-tertiary, #6E6E6E); font-weight: 600; }
.dy-select {
  border: 1px solid var(--border-strong, rgba(0, 0, 0, 0.12));
  background: var(--bg-elevated, #FFFFFF);
  color: var(--text, #1A1A1A);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary, #6E6E6E) 50%), linear-gradient(135deg, var(--text-tertiary, #6E6E6E) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.dy-sheet-note {
  font-size: 12px;
  color: var(--text-tertiary, #6E6E6E);
  line-height: 1.9;
  background: var(--bg-soft, #F5F5F5);
  border-radius: 13px;
  padding: 13px 15px;
  margin-top: 8px;
}
.dy-btn-danger-ico svg { width: 16px; height: 16px; }

/* —— 动画 —— */
@keyframes dy-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.dy-shake { animation: dy-shake 0.45s ease; }

/* —— 群聊日记选择器 —— */
.gdp-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gdp-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--bg, #FAFAFA);
  color: var(--text, #1A1A1A);
  border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(var(--safe-area-bottom, 0px) + 18px);
  box-sizing: border-box;
  animation: dy-sheet-up 0.22s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@keyframes dy-sheet-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.gdp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 12px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
  margin-bottom: 6px;
}
.gdp-title { font-size: 16px; font-weight: 700; }
.gdp-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface, #EFEFEF);
  color: var(--text-secondary, #666666);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gdp-list { display: flex; flex-direction: column; }
.gdp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-radius: 12px;
  cursor: pointer;
}
.gdp-row:active { background: var(--surface-hover, #E8E8E8); }
.gdp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  background: var(--accent-soft, #E8E8E8);
}
.gdp-avatar-fallback {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary, #666666);
}
.gdp-avatar img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.gdp-avatar img.gdp-avatar-loaded { display: block; }
.gdp-name { flex: 1; font-size: 15px; font-weight: 500; }
.gdp-arrow { color: var(--text-tertiary, #6E6E6E); flex: 0 0 auto; }
