/* Shared account menu. Keep identical across Auth, Mail and Calendar. */
.kiba-account {
  position: relative; flex: 0 0 auto; min-width: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
.kiba-account > .kiba-account-trigger {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; min-height: 44px; padding: 6px; margin: 0;
  border: 0; border-radius: 50%; background: transparent; color: #444b42;
  box-shadow: none; list-style: none; cursor: pointer;
  transition: background-color 120ms ease;
}
.kiba-account > .kiba-account-trigger::-webkit-details-marker { display: none; }
.kiba-account > .kiba-account-trigger:hover,
.kiba-account > .kiba-account-trigger[aria-expanded="true"],
.kiba-account[open] > .kiba-account-trigger { background: #f0f2ed; }
.kiba-account > .kiba-account-trigger:focus-visible,
.kiba-account-panel .kiba-account-action:focus-visible { outline: 2px solid #526447; outline-offset: 2px; }
.kiba-account-trigger > .kiba-account-trigger-avatar,
.kiba-account-trigger .kiba-account-trigger-avatar > img {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  object-fit: cover; background: #eef1e9; color: #526447; font-size: 14px;
  font-weight: 500; line-height: 1; overflow: hidden; border: 0; margin: 0; padding: 0;
}
.kiba-account > .kiba-account-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  display: block; width: min(304px, calc(100vw - 48px)); min-width: 0;
  max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; margin: 0; border: 1px solid #e2e5de; border-radius: 14px;
  background: #fff; color: #22271f; box-shadow: 0 10px 32px #20291c14, 0 2px 6px #20291c06;
  font-family: inherit; font-size: 14px; line-height: 1.5; text-align: left;
  color-scheme: light;
}
.kiba-account-panel .kiba-account-identity { display: flex; align-items: center; gap: 12px; padding: 12px 10px 16px; margin: 0; }
.kiba-account-panel .kiba-account-identity-avatar {
  display: flex; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: #eef1e9; color: #526447; font-size: 18px; font-weight: 500;
}
.kiba-account-panel .kiba-account-photo { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.kiba-account-trigger [hidden], .kiba-account-panel [hidden] { display: none !important; }
.kiba-account-panel .kiba-account-identity-text { flex: 1; min-width: 0; }
.kiba-account-panel .kiba-account-identity-text strong,
.kiba-account-panel .kiba-account-identity-text > span { display: block; margin: 0; overflow-wrap: anywhere; white-space: normal; }
.kiba-account-panel .kiba-account-identity-text strong { font-size: 14px; font-weight: 600; line-height: 1.5; color: #22271f; }
.kiba-account-panel .kiba-account-identity-text > span { font-size: 12px; font-weight: 400; line-height: 1.5; color: #6b7365; margin-top: 3px; }
.kiba-account-panel .kiba-account-actions { display: grid; gap: 2px; }
.kiba-account-panel .kiba-account-action {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  width: 100%; min-height: 44px; height: auto; padding: 10px; margin: 0;
  border: 0; border-radius: 8px; background: transparent; color: #343c2e;
  font: inherit; font-size: 13px; font-weight: 400; line-height: 1.5;
  text-align: left; text-decoration: none; box-shadow: none; cursor: pointer;
  transition: background-color 120ms ease;
}
.kiba-account-panel .kiba-account-action:hover { background: #f4f5f1; text-decoration: none; }
.kiba-account-panel .kiba-account-action > span { flex: 1; min-width: 0; }
.kiba-account-panel .kiba-account-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; color: #6b7365; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kiba-account-panel .kiba-account-action > .kiba-account-icon:last-child:not(:first-child) { width: 14px; height: 14px; flex-basis: 14px; color: #92998d; }
.kiba-account-panel .kiba-account-divider { height: 1px; margin: 6px 10px; background: #edf0e8; }
@media (prefers-reduced-motion: reduce) { .kiba-account-trigger, .kiba-account-action { transition: none !important; } }
