/* ==========================================================================
   夏沧小站 v3.7.0 · 账号 / 设置 / 留言板 补充样式
   --------------------------------------------------------------------------
   放在 style.css 之后加载，只负责新功能（导航账号入口、登录注册小卡片、
   设置里的账号与外观语言区块、公共留言板头像），不改动旧版既有类名。
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. 导航栏账号入口
   -------------------------------------------------------------------------- */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
  height: 38px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1;
  text-align: left;
  transition: border-color 0.28s ease, background 0.28s ease,
    transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.account-chip:hover {
  border-color: var(--line-2);
  background: var(--surface-solid);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.account-chip:active { transform: translateY(0) scale(0.98); }

.account-chip__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7), transparent 62%),
    linear-gradient(140deg, var(--accent-soft), var(--surface-solid));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.account-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-chip__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.account-chip__name {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-chip__hint {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-chip.is-guest .account-chip__name { color: var(--ink-2); }

/* 管理员的小徽章 */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.role-badge--muted {
  border-color: var(--line-2);
  background: var(--surface-soft);
  color: var(--ink-3);
}

/* 手机菜单里的账号行 */
.mobile-account {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: left;
}
.mobile-account .account-chip__avatar { width: 38px; height: 38px; font-size: 15px; }
.mobile-account__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mobile-account__name { color: var(--ink); font-size: 13px; font-weight: 600; }
.mobile-account__hint { color: var(--ink-3); font-size: 10px; }
.mobile-account__go { margin-left: auto; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   02. 登录 / 注册小卡片
   -------------------------------------------------------------------------- */
.auth-dialog {
  width: min(424px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.auth-dialog::backdrop {
  background: rgba(24, 17, 27, 0.48);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
  backdrop-filter: blur(9px) saturate(120%);
}
.auth-dialog[open] .auth-card { animation: authCardIn 0.42s var(--ease-out) both; }
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.auth-card {
  position: relative;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  padding: clamp(22px, 3.4vw, 30px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background:
    radial-gradient(130% 90% at 100% 0%, var(--accent-wash), transparent 60%),
    linear-gradient(155deg, var(--panel-1), var(--panel-2));
  box-shadow: 0 40px 100px -40px rgba(46, 28, 40, 0.62),
    inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}
.auth-card::-webkit-scrollbar { width: 6px; }
.auth-card::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--line-2); }

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-3);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.auth-close:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}
.auth-close .icon { width: 15px; height: 15px; }

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
}
.auth-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.auth-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
}
.auth-title .dot { color: var(--accent-strong); }
.auth-sub {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.8;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}
.auth-tab {
  flex: 1;
  height: 34px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active {
  background: var(--surface-solid);
  box-shadow: 0 8px 18px -12px rgba(60, 40, 50, 0.45);
  color: var(--ink);
}

.auth-form { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field > label {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap .icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--ink-4);
  pointer-events: none;
}
.auth-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px 0 36px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12.5px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.auth-field input::placeholder { color: var(--ink-4); }
.auth-field input:focus {
  border-color: var(--accent);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.auth-field input:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-input-wrap .auth-eye {
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--ink-4);
}
.auth-eye:hover { background: var(--surface-soft); color: var(--ink-2); }
.auth-eye .icon { position: static; width: 15px; height: 15px; }

.auth-hint {
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.7;
}
.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(190, 80, 90, 0.28);
  border-radius: 11px;
  background: rgba(190, 80, 90, 0.08);
  color: #b4535f;
  font-size: 10.5px;
  line-height: 1.65;
}
[data-theme="dark"] .auth-error {
  border-color: rgba(240, 130, 140, 0.28);
  background: rgba(240, 130, 140, 0.1);
  color: #f0a7ae;
}
.auth-error[hidden] { display: none; }

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  justify-content: center;
}
.auth-submit[disabled] { opacity: 0.65; cursor: progress; }

.auth-switch {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
  text-align: center;
}
.auth-switch button {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch button:hover { color: var(--accent-strong); }

.auth-guest {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-size: 10px;
}
.auth-guest button {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-guest button:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   03. 设置面板：账号 / 外观 / 语言
   -------------------------------------------------------------------------- */
.settings-account-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 0% 0%, var(--accent-wash), transparent 62%),
    var(--surface-soft);
  text-align: left;
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease,
    box-shadow 0.45s ease;
}
.settings-account-entry:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 22px 46px -32px rgba(120, 60, 80, 0.55);
}
.settings-account-entry__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-soft), var(--surface-solid));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 6px 16px -10px rgba(120, 60, 80, 0.6);
}
.settings-account-entry__avatar img { width: 100%; height: 100%; object-fit: cover; }
.settings-account-entry__body { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.settings-account-entry__eyebrow {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}
.settings-account-entry__name {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.settings-account-entry__note {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.settings-account-entry__side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--ink-3);
}
.settings-account-entry__side .icon { width: 16px; height: 16px; }
.settings-account-entry:hover .settings-account-entry__side .icon {
  color: var(--accent-ink);
  transform: translateX(3px);
}

.settings-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 5px;
}
.settings-section-title h3 {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.settings-section-title span {
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.settings-block--wide { margin-top: 12px; }
.settings-block .block-desc {
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.8;
}
.settings-block .block-head + .opt-grid { margin-top: 12px; }

/* 三选一：跟随系统 / 浅色 / 深色，以及语言 */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.opt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 70px;
  padding: 11px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease,
    color 0.25s ease, transform 0.3s var(--ease-out);
}
.opt:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: var(--surface-solid);
  color: var(--ink);
}
.opt .icon { width: 18px; height: 18px; opacity: 0.85; }
.opt.is-active {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 600;
}
.opt.is-active .icon { opacity: 1; }
.opt small {
  color: var(--ink-4);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.opt.is-active small { color: var(--accent-ink); opacity: 0.75; }
.opt-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  border-radius: 5px;
  background: var(--surface-solid);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 管理员入口卡片 */
.settings-admin-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-wash), transparent 80%);
  color: var(--ink);
  text-align: left;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.settings-admin-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -30px rgba(120, 60, 80, 0.6);
}
.settings-admin-entry__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.settings-admin-entry__icon .icon { width: 18px; height: 18px; }
.settings-admin-entry__body { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.settings-admin-entry__title { font-size: 12.5px; font-weight: 600; }
.settings-admin-entry__note { color: var(--ink-3); font-size: 9.5px; }

/* 账号子页 */
.settings-view--account .settings-head { align-items: center; }
.account-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 150% at 0% 0%, var(--accent-wash), transparent 60%),
    var(--surface-soft);
}
.account-hero__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-soft), var(--surface-solid));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 10px 26px -18px rgba(120, 60, 80, 0.7);
}
.account-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-hero__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.account-hero__name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-3);
  font-size: 10px;
}
.account-hero__stats { color: var(--ink-3); font-size: 10px; }
.account-hero__stats b { color: var(--ink-2); font-family: var(--font-mono); font-weight: 600; }

.account-panel {
  margin-top: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}
.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.account-panel__head h3 {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.account-panel__note { margin-top: 6px; color: var(--ink-3); font-size: 9.5px; line-height: 1.7; }

/* 头像编辑 */
.avatar-editor { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.avatar-editor__preview {
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 26px;
}
.avatar-editor__preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-editor__actions { display: flex; flex-wrap: wrap; gap: 7px; }
.avatar-editor__actions .btn { min-height: 34px; padding: 0 12px; font-size: 10.5px; }
.avatar-tip { margin-top: 10px; color: var(--ink-4); font-size: 9px; line-height: 1.65; }

/* 表单 */
.form-field { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.form-field > label {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.form-field input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.form-field input::placeholder { color: var(--ink-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}
.form-actions .btn { min-height: 38px; padding: 0 15px; font-size: 11px; }
.form-msg { margin-top: 8px; color: var(--ink-3); font-size: 9.5px; line-height: 1.6; }
.form-msg.is-error { color: #b4535f; }
[data-theme="dark"] .form-msg.is-error { color: #f0a7ae; }
.form-msg.is-ok { color: #4f7d63; }
[data-theme="dark"] .form-msg.is-ok { color: #8ec4a4; }

.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.account-actions .btn { min-height: 38px; font-size: 11px; }
.btn-danger {
  border: 1px solid rgba(190, 80, 90, 0.32);
  background: rgba(190, 80, 90, 0.06);
  color: #a94e59;
}
.btn-danger:hover { background: rgba(190, 80, 90, 0.12); }
[data-theme="dark"] .btn-danger {
  border-color: rgba(240, 130, 140, 0.3);
  background: rgba(240, 130, 140, 0.08);
  color: #f0a7ae;
}

.guest-account-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 26px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  text-align: center;
}
.guest-account-cta p { color: var(--ink-3); font-size: 11px; line-height: 1.8; }
.guest-account-cta .btn { min-height: 40px; }

/* --------------------------------------------------------------------------
   04. 公共留言板
   -------------------------------------------------------------------------- */
.guest-login-prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  background: linear-gradient(140deg, var(--accent-wash), transparent 75%);
}
/* display:flex 会盖掉浏览器默认的 [hidden]，这里显式补回来 */
.guest-login-prompt[hidden] { display: none; }
.guest-login-prompt__text {
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.85;
}
.guest-login-prompt__text b { color: var(--accent-ink); font-weight: 600; }
.guest-login-prompt__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.guest-login-prompt__actions .btn { min-height: 38px; padding: 0 16px; font-size: 11px; }
.guest-login-prompt__hint { color: var(--ink-4); font-size: 9px; line-height: 1.6; }

.guest-form__who {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  font-size: 10.5px;
  color: var(--ink-3);
}
.guest-form__who .account-mini-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 11px;
}
.guest-form__who .account-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.guest-form__who strong { color: var(--ink); font-weight: 600; }
.guest-form__who [data-guest-switch] {
  margin-left: auto;
  color: var(--accent-ink);
  font-size: 10px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guest-item { position: relative; }
.guest-item-head { align-items: center; }
.guest-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.guest-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}
.guest-avatar img { width: 100%; height: 100%; object-fit: cover; }
.guest-who strong { overflow: hidden; max-width: 42%; white-space: nowrap; text-overflow: ellipsis; }
.guest-who .role-badge { flex: none; }
.guest-time { margin-left: auto; }

.guest-msg { word-break: break-word; white-space: pre-wrap; }

.guest-more {
  align-self: center;
  margin-top: 4px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-3);
  font-size: 10px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.guest-more:hover {
  border-color: var(--accent);
  background: var(--surface-solid);
  color: var(--ink);
}
.guest-more[disabled] { opacity: 0.6; cursor: progress; }

.guest-public-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}
.guest-public-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6fa07e;
  box-shadow: 0 0 0 3px rgba(111, 160, 126, 0.16);
}

.guest-empty { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   05. 手机端适配
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .account-chip {
    width: auto;
    max-width: 150px;
    padding: 0 10px 0 4px;
    justify-content: flex-start;
  }
  .account-chip__text { display: flex; }
  .account-chip__hint { display: none; }
  .account-chip__name { font-size: 10.5px; }
  .account-chip__avatar { width: 30px; height: 30px; }
}

@media (max-width: 760px) {
  .account-chip { height: 36px; }
  .account-chip__avatar { width: 28px; height: 28px; }
  /* 手机端日夜切换在抽屉菜单和设置里都有，导航栏先收起来，给「未登录」留位置 */
  .nav-tools .theme-toggle { display: none; }

  .auth-dialog { width: calc(100vw - 20px); }
  .auth-card { padding: 20px 18px; border-radius: 22px; }
  .auth-title { font-size: 22px; }
  .auth-sub { font-size: 10.5px; }
  .auth-tabs { margin-top: 16px; }
  .auth-form { margin-top: 14px; gap: 10px; }
  .auth-field input { height: 40px; font-size: 12px; }

  .settings-account-entry { margin-top: 18px; padding: 13px 14px; border-radius: 18px; }
  .settings-account-entry__avatar { width: 42px; height: 42px; font-size: 17px; }
  .settings-account-entry__name { font-size: 16.5px; }
  .settings-account-entry__note { font-size: 9.5px; }

  .settings-section-title { margin-top: 18px; }
  .opt-grid { margin-top: 10px; }
  .opt { min-height: 62px; padding: 9px 5px; font-size: 10px; }
  .opt .icon { width: 16px; height: 16px; }
  .opt small { font-size: 7.5px; }

  .account-hero { gap: 13px; margin-top: 14px; padding: 14px; border-radius: 18px; }
  .account-hero__avatar { width: 60px; height: 60px; font-size: 23px; }
  .account-hero__name { font-size: 19px; }
  .account-panel { padding: 14px; border-radius: 16px; }
  .avatar-editor { gap: 12px; }
  .avatar-editor__preview { width: 64px; height: 64px; font-size: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .guestbook { grid-template-columns: 1fr; gap: 26px; }
  .guest-login-prompt { margin-top: 20px; padding: 16px; }
  .guest-list { max-height: none; }
  .guest-item { padding: 12px 13px; }
  .guest-item-head { flex-wrap: wrap; gap: 6px 8px; }
  .guest-time { margin-left: 0; }
  .guest-who { flex: 1; }
  .guest-who strong { max-width: 52%; }
}

@media (max-width: 380px) {
  .auth-card { padding: 18px 15px; }
  .auth-title { font-size: 20px; }
  .opt { font-size: 9.5px; }
  .account-hero__avatar { width: 54px; height: 54px; }
  .guest-form__who { flex-wrap: wrap; }
  .guest-form__who [data-guest-switch] { margin-left: 33px; }
}

@media (max-width: 350px) {
  /* 特别窄的屏幕：只留头像，点开一样能登录 */
  .account-chip { width: 36px; padding: 0; justify-content: center; }
  .account-chip__text { display: none; }
}
