.ui-icon { display: inline-block; flex: 0 0 auto; stroke-width: 1.9; vertical-align: middle; }
.ui-dashboard-shell { min-height: 100vh; }
.ui-dashboard-main { min-width: 0; }
.ui-identity-switcher { position: relative; min-width: 0; }
.ui-identity-trigger { display: flex; width: 100%; min-width: 0; min-height: 52px; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.ui-identity-trigger:hover, .ui-identity-trigger[aria-expanded="true"] { background: var(--surface-soft, #f4f5f8); }
.ui-avatar { display: grid; overflow: hidden; flex: 0 0 auto; place-items: center; border: 1px solid rgba(70,61,100,.12); border-radius: 11px; background: #f0ecfb; color: #5333aa; }
.ui-avatar.small { width: 36px; height: 36px; }
.ui-avatar.tiny { width: 29px; height: 29px; border-radius: 9px; }
.ui-avatar.large { width: 88px; height: 88px; border-radius: 24px; }
.ui-avatar img, .ui-avatar svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ui-identicon { display: block; overflow: hidden; border-radius: 20%; shape-rendering: crispEdges; }
.ui-identity-trigger-copy { min-width: 0; flex: 1; }
.ui-identity-trigger-copy strong, .ui-identity-trigger-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-identity-trigger-copy strong { font-size: 12px; }
.ui-identity-trigger-copy span { margin-top: 2px; color: var(--muted, #687386); font-size: 10px; }
.ui-identity-chevron { display: grid; color: var(--muted, #687386); transition: transform .14s ease; }
.ui-identity-trigger[aria-expanded="true"] .ui-identity-chevron { transform: rotate(180deg); }
.ui-identity-menu { position: absolute; z-index: 80; bottom: calc(100% + 8px); left: 0; width: min(284px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--line, #e2e5ea); border-radius: 14px; background: #fff; color: var(--text, #292d35); box-shadow: 0 18px 48px rgba(31,35,44,.2); }
.ui-identity-current { display: flex; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid var(--line, #e2e5ea); }
.ui-identity-current > div { min-width: 0; flex: 1; }
.ui-identity-current small, .ui-identity-current strong, .ui-identity-current span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-identity-current small, .ui-remembered-identities > small, .ui-identity-did small { margin-bottom: 3px; color: var(--muted, #687386); font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.ui-identity-current strong { font-size: 12px; }
.ui-identity-current span { margin-top: 2px; color: var(--muted, #687386); font-size: 10px; }
.ui-identity-current > .ui-icon { color: var(--accent, #6e45e8); }
.ui-identity-did { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--line, #e2e5ea); background: var(--surface-soft, #f7f8fa); }
.ui-identity-did > div { min-width: 0; flex: 1; }
.ui-identity-did small, .ui-identity-did code { display: block; }
.ui-identity-did code { overflow: hidden; color: var(--muted, #687386); font: 9px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.ui-identity-did > .ui-icon { color: var(--muted, #687386); }
.ui-identity-profile-link, .ui-identity-actions > button, .ui-remembered-identities button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.ui-identity-profile-link { width: auto; margin: 7px 8px 0; }
.ui-identity-profile-link:hover, .ui-identity-actions > button:hover, .ui-remembered-identities button:hover { background: var(--accent-soft, #f0ebff); }
.ui-identity-profile-link > span, .ui-identity-actions > button > span, .ui-remembered-identities button > span { min-width: 0; flex: 1; }
.ui-identity-profile-link strong, .ui-identity-profile-link small, .ui-identity-actions strong, .ui-identity-actions small, .ui-remembered-identities strong, .ui-remembered-identities small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-identity-profile-link strong, .ui-identity-actions strong, .ui-remembered-identities strong { font-size: 11px; }
.ui-identity-profile-link small, .ui-identity-actions small, .ui-remembered-identities small { margin-top: 2px; color: var(--muted, #687386); font-size: 9px; }
.ui-identity-profile-link > .ui-icon:first-child, .ui-identity-actions > button > .ui-icon { color: var(--accent, #6e45e8); }
.ui-remembered-identities { margin-top: 7px; padding: 8px; border-top: 1px solid var(--line, #e2e5ea); border-bottom: 1px solid var(--line, #e2e5ea); }
.ui-remembered-identities > small { display: block; padding: 0 5px 4px; }
.ui-identity-actions { padding: 7px 8px; }
.ui-identity-actions > button { min-height: 44px; }
.ui-identity-actions > button:disabled, .ui-remembered-identities button:disabled { opacity: .55; cursor: wait; }
.ui-identity-actions > button.danger > .ui-icon, .ui-identity-actions > button.danger strong { color: var(--danger, #b3261e); }
.ui-identity-privacy { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line, #e2e5ea); background: var(--surface-soft, #f7f8fa); color: var(--muted, #687386); font-size: 9px; line-height: 1.45; }
.ui-identity-external { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 9px 12px 11px; background: var(--surface-soft, #f7f8fa); color: var(--accent, #6e45e8); font-size: 10px; font-weight: 750; text-decoration: none; }
.ui-identity-external:hover { text-decoration: underline; }
.ui-guided-steps { display: grid; margin: 0 0 24px; padding: 0; grid-template-columns: repeat(var(--step-count, 3), minmax(0, 1fr)); list-style: none; }
.ui-guided-steps li { position: relative; display: grid; justify-items: center; gap: 7px; color: var(--muted, #687386); text-align: center; }
.ui-guided-steps li::before { position: absolute; z-index: 0; top: 14px; right: 50%; left: -50%; height: 2px; background: var(--line, #e2e5ea); content: ""; }
.ui-guided-steps li:first-child::before { display: none; }
.ui-guided-steps li > span { z-index: 1; display: grid; width: 29px; height: 29px; place-items: center; border: 2px solid var(--line, #e2e5ea); border-radius: 50%; background: #fff; font-size: 10px; font-weight: 850; }
.ui-guided-steps li strong { font-size: 10px; font-weight: 750; }
.ui-guided-steps li.current { color: var(--accent, #6e45e8); }
.ui-guided-steps li.current > span { border-color: var(--accent, #6e45e8); box-shadow: 0 0 0 4px var(--accent-soft, #f0ebff); }
.ui-guided-steps li.complete { color: var(--good, #168353); }
.ui-guided-steps li.complete::before, .ui-guided-steps li.complete > span { border-color: var(--good, #168353); background: var(--good, #168353); color: #fff; }
@media (max-width: 900px) {
  .ui-identity-trigger-copy, .ui-identity-chevron { display: none; }
  .ui-identity-trigger { width: 42px; min-height: 42px; padding: 3px; }
  .ui-identity-menu { top: calc(100% + 7px); right: 0; bottom: auto; left: auto; }
}
@media (max-width: 560px) {
  .ui-guided-steps li strong { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-identity-chevron { transition: none; }
}
