/* Compact personal-panel control for the public site header. */
@media (min-width: 821px) {
  .header-actions .account-link {
    width: auto;
    min-width: 118px;
    height: 48px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 10px;
    border: 1px solid rgba(185, 255, 55, .36);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(185, 255, 55, .105), rgba(255, 255, 255, .025));
    color: #f3f7f4;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .12);
    text-decoration: none;
    touch-action: manipulation;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.16, 1, .3, 1);
  }

  .header-actions .account-link-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(185, 255, 55, .42);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(185, 255, 55, .22), rgba(185, 255, 55, .07));
    color: #b9ff37;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    font-style: normal;
  }

  .header-actions .account-link-avatar svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .header-actions .account-link-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    line-height: 1;
  }

  .header-actions .account-link-copy strong {
    max-width: 76px;
    overflow: hidden;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions .account-link-copy small {
    color: #9cd431;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }

  .header-actions .account-link:hover {
    border-color: rgba(185, 255, 55, .78);
    background: linear-gradient(145deg, rgba(185, 255, 55, .17), rgba(185, 255, 55, .045));
    color: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 28px rgba(83, 132, 6, .17);
    transform: translateY(-1px);
  }

  .header-actions .account-link:active { transform: translateY(0); }

  .header-actions .account-link:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(83, 132, 6, .96) !important;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .header-actions .account-link { min-width: 108px; gap: 6px; padding-inline: 7px; }
  .header-actions .account-link-copy strong { max-width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .header-actions .account-link { transition: none !important; }
}
