/* 咸鱼助手 / account-card actions v1. Presentation only; all selectors are scoped. */
.xy-account-card {
  container-type: inline-size;
  container-name: xianyu-account-card;
}
.xy-account-tools {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5eaf2;
  font-family: inherit;
}
.xy-account-actions {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.xy-account-action {
  --xy-action-color: #536077;
  --xy-action-background: #f4f6f9;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 140px;
  padding: 17px 8px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--xy-action-background);
  color: var(--xy-action-color);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.xy-account-action--reauthorize { --xy-action-color: #009cf5; --xy-action-background: #edf8ff; }
.xy-account-action--reauthorize-required { --xy-action-color: #dc2626; --xy-action-background: #fff1f2; }
.xy-account-action--ai { --xy-action-color: #9333ea; --xy-action-background: #f6f0ff; }
.xy-account-action--tasks { --xy-action-color: #d97706; --xy-action-background: #fff7ee; }
.xy-account-action--toggle { --xy-action-color: #059669; --xy-action-background: #edfbf6; }
.xy-account-action--inactive { --xy-action-color: #6b7280; --xy-action-background: #f3f4f6; }
.xy-account-action--delete { --xy-action-color: #f43f49; --xy-action-background: #fff0f2; }
.xy-account-action--delete::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px -7px;
  width: 1px;
  background: #d8e0eb;
  pointer-events: none;
}
.xy-account-action:not(:disabled):hover {
  border-color: var(--xy-action-color);
  box-shadow: 0 4px 12px rgb(15 23 42 / 6%);
  transform: translateY(-1px);
}
.xy-account-action:focus-visible {
  outline: 3px solid #009dff;
  outline-offset: 3px;
  z-index: 2;
}
.xy-account-action:disabled { opacity: .5; cursor: not-allowed; }
.xy-account-action__icon { display: inline-flex; align-items: center; justify-content: center; height: 30px; margin-bottom: 3px; }
.xy-account-action__icon > svg { width: 26px; height: 26px; }
.xy-account-action__label { display: block; color: #162035; font-size: 16px; line-height: 1.5; font-weight: 700; word-break: keep-all; }
.xy-account-action__brief { display: block; width: 100%; min-height: 3.2em; text-wrap: balance; color: #626e82; font-size: 12px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.xy-account-action__tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 10px);
  left: 50%;
  width: 240px;
  max-width: 80vw;
  padding: 10px 12px;
  border-radius: 9px;
  background: #263348;
  box-shadow: 0 6px 20px rgb(15 23 42 / 15%);
  color: #fff;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  white-space: normal;
  pointer-events: none;
  transform: translateX(-50%);
}
.xy-account-action:first-child .xy-account-action__tooltip { left: 0; transform: none; }
.xy-account-action:last-child .xy-account-action__tooltip { left: auto; right: 0; transform: none; }
.xy-account-action:not(:disabled):hover .xy-account-action__tooltip,
.xy-account-action:focus-visible .xy-account-action__tooltip { display: block; }
.xy-account-actions-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding: 12px 15px; border-radius: 10px; background: #f5f7fa; color: #626e82; font-size: 12px; line-height: 1.7; }
.xy-account-actions-note > p { margin: 0; }
.xy-account-actions-note__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: #8796ae; color: white; font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
@container xianyu-account-card (max-width: 780px) {
  .xy-account-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xy-account-action--delete::before { display: none; }
}
@container xianyu-account-card (max-width: 560px) {
  .xy-account-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container xianyu-account-card (max-width: 400px) {
  .xy-account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xy-account-action__tooltip { width: 210px; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 1240px) { .xy-account-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } .xy-account-action--delete::before { display: none; } }
  @media (max-width: 1000px) { .xy-account-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 700px) { .xy-account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
}
@media (prefers-reduced-motion: reduce) { .xy-account-action { transition: none; } .xy-account-action:not(:disabled):hover { transform: none; } }
