.credential-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
#identity-panel .btn { min-height: 44px; padding: 12px 18px; line-height: 1.5; }
/* The shared outline variant is intended for dark backgrounds. */
#identity-panel .btn--outline { color: #3c261c; background: #fffdf7; border-color: #b99274; }
#identity-panel .btn--outline:hover:not(:disabled) { color: #3c261c; background: #eee9de; border-color: #805943; transform: none; }
#identity-panel .btn--primary { color: #fffdf7; background: #a84227; border-color: #a84227; }
#identity-panel .btn--primary:hover:not(:disabled) { background: #8d351e; border-color: #8d351e; opacity: 1; transform: none; }
#identity-panel .btn:focus-visible { outline: 3px solid #a84227; outline-offset: 3px; }
#identity-panel p, #identity-panel details { margin: 14px 0; line-height: 1.7; }
#identity-panel dialog { color: inherit; background: #f9f8f0; border: 1px solid #b99274; border-radius: 16px; padding: 28px; width: min(680px, calc(100% - 24px)); max-height: 90dvh; overflow: auto; margin: auto; }
#identity-panel dialog::backdrop { background: rgb(35 26 21 / 55%); }
#identity-panel dialog button { margin-top: 10px; }
#identity-panel dialog .credential-actions .btn { flex: 1 1 auto; margin-top: 0; }
#credential-management-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #d6c8b7; }
#identity-panel #credentials-close { display: flex; width: 100%; margin-top: 20px; }
.credential-secret { white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; background: #eee9de; padding: 14px; border-radius: 8px; font-size: 14px; }
#identity-panel [hidden] { display: none !important; }
#identity-panel button:disabled { opacity: .5; cursor: not-allowed; }
#identity-message, #management-message, #management-context, #identity-result { overflow-wrap: anywhere; }
#revoke-confirm-label { display: block; line-height: 1.7; margin: 16px 0; }
#identity-panel summary { cursor: pointer; font-weight: 600; }
@media (max-width: 560px) { #identity-panel dialog { padding: 18px; } .credential-actions .btn { width: 100%; } }

#wallet-panel .btn { min-height: 44px; margin: 0 8px 10px 0; padding: 12px 18px; line-height: 1.5; }
#wallet-panel .btn--outline { color: #3c261c; background: #fffdf7; border-color: #b99274; }
#wallet-panel .btn--outline:hover:not(:disabled) { color: #3c261c; background: #eee9de; border-color: #805943; transform: none; }
#wallet-panel .btn--primary { color: #fffdf7; background: #a84227; border-color: #a84227; }
#wallet-panel .btn--primary:hover:not(:disabled) { background: #8d351e; border-color: #8d351e; opacity: 1; transform: none; }
#wallet-panel .btn:focus-visible { outline: 3px solid #a84227; outline-offset: 3px; }
#wallet-panel button:disabled, #wallet-panel input:disabled { opacity: .5; cursor: not-allowed; }
.wallet-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.wallet-summary > div { display: flex; flex-direction: column; gap: 5px; padding: 16px; background: #eee9de; border: 1px solid #d6c8b7; border-radius: 10px; }
.wallet-summary span { color: rgba(60, 38, 28, .72); font-size: 13px; }
.wallet-summary strong { color: #3c261c; font-size: 22px; font-variant-numeric: tabular-nums; }
#wallet-message { min-height: 1.7em; margin-top: 8px; overflow-wrap: anywhere; line-height: 1.7; }
.wallet-message--success { color: #32643d; }
.wallet-message--error { color: #a03a2a; }
@media (max-width: 560px) { .wallet-summary { grid-template-columns: 1fr; } #wallet-panel .btn { width: 100%; margin-right: 0; } }
