/* 原 styles.css L105-L557 连续区间纯移动（UI 重构阶段 A）。内容：顶栏/账号 dock/账号菜单/反馈入口。层叠顺序由 01→12 的 <link> 顺序保持。 */
.feedback-dock-button {
  display: inline-flex;
  text-decoration: none;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--control-bg);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.feedback-dock-button:hover,
.feedback-dock-button:focus-visible {
  border-color: var(--active-border);
  color: var(--control-text);
  background: var(--popover-bg);
}

.feedback-dock-button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.feedback-dock-button svg {
  width: 14px;
  height: 14px;
}

.account-dock-button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--control-bg);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}

/* 页脚里的署名与作者主页入口：排在最左，账号按钮靠右。 */
.site-credit {
  order: -1;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-weight: 650;
  line-height: 1;
}

/* 中线本来就是对齐的，视觉上不齐是因为字比图标矮。
   中文字形基本占满 em，所以字号往图标高度靠，两者才像在同一行上。 */
.site-credit-by {
  display: inline-flex;
  align-items: center;
  height: 21px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.site-credit a {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.site-credit a svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* 小红书官方 mark 是横向文字商标（约 2.8:1），来自 Simple Icons；
   比方形图标宽，单独放宽到 20px，高度随 viewBox 居中，与相邻图标视觉对齐。 */
.site-credit a.is-xhs svg {
  width: 20px;
  height: 20px;
}

/* 单色 mark 跟随文字色，彩色 mark（小红书、抖音）平时压一点饱和度，悬停回满。 */
.site-credit a svg [fill^="#"] {
  opacity: 0.78;
  transition: opacity 0.15s ease;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.site-credit a:hover svg [fill^="#"],
.site-credit a:focus-visible svg [fill^="#"] {
  opacity: 1;
}

.site-credit a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.account-dock {
  position: relative;
}

.account-dock-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.account-dock-button:hover,
.account-dock-button[aria-expanded="true"] {
  border-color: var(--active-border);
  color: var(--control-text);
  background: var(--popover-bg);
}

.account-dock-button > svg {
  width: 14px;
  height: 14px;
}

.feature-anchor {
  position: relative;
}

.feature-new-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  display: inline-grid;
  min-width: 24px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: #fff;
  background: #0071e3;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.24);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
}

.feature-new-badge.compact {
  position: static;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border: 0;
  font-size: 11px;
}

.feature-new-badge[hidden],
.account-menu-new-dot[hidden] {
  display: none;
}

.account-dock-chevron {
  width: 12px !important;
  height: 12px !important;
  transition: transform 140ms ease;
}

.account-dock-button[aria-expanded="true"] .account-dock-chevron {
  transform: rotate(180deg);
}

.account-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 18%, transparent);
}

.account-dock-button.is-online .account-status-dot {
  background: #16a34a;
  box-shadow: 0 0 0 2px color-mix(in srgb, #16a34a 18%, transparent);
}

.account-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(292px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--popover-bg);
  box-shadow: var(--shadow-popover);
}

.account-menu.hidden {
  display: none;
}

.account-menu-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.account-menu-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--control-text);
  background: var(--soft);
}

.account-menu-avatar svg {
  width: 20px;
  height: 20px;
}

.account-menu-summary > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-menu-summary strong,
.account-menu-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.account-menu-summary div > span {
  color: var(--muted);
  font-size: 11px;
}

.account-menu-switch {
  display: grid;
  gap: 8px;
  padding: 11px 12px 0;
  border-bottom: 1px solid var(--line);
}

.account-menu-switch[hidden] {
  display: none;
}

.account-menu-switch-heading,
.account-switch-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-menu-switch-heading strong,
.account-switch-heading strong {
  color: var(--ink);
  font-size: 12px;
}

.account-menu-switch-heading span,
.account-switch-heading span {
  color: var(--muted);
  font-size: 11px;
}

.account-menu .account-account-list {
  max-height: 210px;
  overflow: auto;
}

.account-account-list {
  display: grid;
  gap: 6px;
}

.account-session-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-session-option:hover:not(:disabled) {
  background: var(--soft);
}

.account-session-option.is-active {
  border-color: color-mix(in srgb, #16a34a 30%, var(--line));
  background: color-mix(in srgb, #16a34a 7%, var(--soft));
}

.account-session-option:disabled {
  cursor: default;
}

.account-session-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: #17202f;
  font-size: 11px;
  font-weight: 850;
}

.account-session-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-session-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-session-copy strong,
.account-session-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-session-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.account-session-copy span {
  color: var(--muted);
  font-size: 11px;
}

.account-session-state {
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.account-menu-add {
  width: 100%;
  margin: 2px 0 10px;
  color: var(--control-text);
}

.account-menu-actions {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.account-menu-actions .primary-button,
.account-menu-actions .secondary-button {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}

.account-menu-text-button {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.account-menu-new-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.account-menu-text-button:hover {
  color: var(--control-text);
  background: var(--soft);
}

.account-menu-text-button.danger:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.account-menu-text-button svg {
  width: 15px;
  height: 15px;
}

.account-menu-hint {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

