/* 言诺 · 玩家自己的头像与「我的资料」（PD-CLIENT-019），桌面和手机网页共用。
 * 对话框的外框、输入框、底部按钮沿用 ui-kit.css 的 .ui-dialog；颜色只取 --y-* 变量（带浅色兜底）。 */

/* 消息里自己的头像：点了打开资料框，不是看大图（覆盖 portrait.css 的放大镜光标） */
.row.me .ava[data-player-avatar] { cursor: pointer; }

/* 电脑网页侧栏底部：自己的头像 + 账号名，点了打开资料框 */
.side-user-ava {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-right: 8px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--y-surface-alt, #f6e9e8);
  cursor: pointer;
}
.side-user-name.clickable { flex: 1; min-width: 0; cursor: pointer; }
.side-user-name.clickable:hover { color: var(--y-primary-text, #ad4f72); }

/* 手机网页「我」页最上面那一行 */
.cell .me-ava {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--y-surface-alt, #f6e9e8);
}
.cell .me-lines { display: flex; flex-direction: column; gap: 2px; }
.cell .me-lines b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .me-lines small { color: var(--y-text2, #8a6c72); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 「我的资料」对话框 ---------------- */

dialog.ui-dialog.profile-dialog { width: min(420px, calc(100vw - 32px)); }
.profile-body { padding: 20px 20px 14px; text-align: left; }
.profile-body .ui-dialog-title { text-align: center; }

.profile-head { display: flex; align-items: center; gap: 16px; margin: 2px 0 14px; }
.profile-face {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  background: var(--y-surface-alt, #f6e9e8);
  cursor: pointer;
}
.profile-face-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.profile-link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--y-primary-text, #ad4f72);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.profile-link.subtle { color: var(--y-text2, #8a6c72); font-size: 13.5px; }
.profile-link[hidden] { display: none; }

.profile-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 10px; }
.profile-label { padding-top: 9px; color: var(--y-text2, #8a6c72); font-size: 14px; line-height: 1.5; }
.profile-cell { display: block; min-width: 0; }
.profile-input.ui-dialog-field { margin-top: 0; }
.profile-inline { display: flex; align-items: center; gap: 8px; }
.profile-age.ui-dialog-field { width: 96px; -moz-appearance: textfield; appearance: textfield; }
.profile-age::-webkit-outer-spin-button,
.profile-age::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.profile-unit { color: var(--y-text2, #8a6c72); }
textarea.profile-about.ui-dialog-field { min-height: 84px; }
.profile-count { display: block; }
.profile-static { display: inline-block; padding-top: 9px; font-weight: 600; }
.profile-hint { margin-left: 8px; color: var(--y-text3, #a3868c); font-size: 12.5px; }
.profile-note { margin: 14px 0 0; color: var(--y-text2, #8a6c72); font-size: 13px; line-height: 1.5; }
.profile-err { margin: 8px 0 0; color: var(--y-danger, #d9435f); font-size: 13.5px; line-height: 1.5; }
.profile-err:empty { display: none; }

/* 窄屏：标签放到输入框上面，输入框占满一行 */
@media (max-width: 360px) {
  .profile-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .profile-label { padding-top: 0; }
  .profile-static { padding-top: 0; }
}
