.account-widget {
  min-height: 58px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(23, 40, 64, 0.08);
}

.account-widget-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 5px 8px 5px 6px;
}

.account-widget-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent, #235f9f), var(--brand-green, #24856b));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.account-widget-main strong {
  color: var(--ink, #16202a);
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-widget-main span {
  color: var(--muted, #667386);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-widget-summary-link {
  color: var(--accent, #235f9f);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-widget [hidden] {
  display: none !important;
}

.account-widget-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px;
  border: 1px solid #d8e4f1;
  border-radius: 999px;
  background: #f8fbff;
}

.account-widget button,
.account-widget a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark, #174876);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.account-widget .account-widget-summary-link {
  min-height: 0;
  display: inline;
  padding: 0;
  border-radius: 0;
  color: var(--accent, #235f9f);
  font-weight: 900;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-widget button.primary {
  border-color: var(--accent, #235f9f);
  background: var(--accent, #235f9f);
  color: #fff;
}

.account-widget .account-icon-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.account-widget .account-icon-button svg {
  width: 17px;
  height: 17px;
  display: block;
  stroke: currentColor;
}

.account-widget a[data-access-admin] {
  border: 1px solid #f1c27a;
  background: #fffaf2;
  color: #7a4100;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

@media print {
  .account-widget {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .account-widget,
  .account-widget-actions {
    justify-content: stretch;
  }

  .account-widget-actions button,
  .account-widget-actions a {
    flex: 1 1 auto;
  }
}
