/* Account details only: the main console and other drawers keep their own layout. */
#accountDetailsBackdrop { background: rgba(24, 31, 46, .24); backdrop-filter: blur(2px); }
#accountDetailsDrawer { width: min(560px, 100vw); height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; box-shadow: -12px 0 48px rgba(24, 31, 46, .14); }
#accountDetailsDrawer[hidden], #accountDetailsBackdrop[hidden] { display: none; }
#accountDetailsDrawer .drawer-header { position: static; flex: 0 0 auto; padding: 28px 28px 22px; border-bottom: 0; }
#accountDetailsDrawer .drawer-header > div { min-width: 0; }
#accountDetailsDrawer .detail-eyebrow { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
#accountDetailsDrawer .drawer-header h3 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
#accountDetailsDrawer #accountDetailsSubtitle { margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.5; }
#accountDetailsDrawer #accountDetailsClose { font-size: 24px; flex: 0 0 34px; min-width: 34px; height: 34px; }
#accountDetailsDrawer .detail-tabs { display: flex; flex: 0 0 auto; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--border); overflow-x: auto; }
#accountDetailsDrawer .detail-tab { flex: 0 0 auto; padding: 14px 0; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
#accountDetailsDrawer .detail-tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
#accountDetailsDrawer .detail-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 3px; }
#accountDetailsDrawer .drawer-body { display: block; flex: 1 1 auto; min-height: 0; padding: 26px 28px 32px; overflow-y: auto; overscroll-behavior: contain; }
#accountDetailsDrawer .detail-panel { display: grid; gap: 26px; }
#accountDetailsDrawer .detail-panel[hidden] { display: none; }
#accountDetailsDrawer .details-section + .details-section { padding-top: 24px; }
#accountDetailsDrawer .details-section h4 { margin: 0 0 16px; color: var(--text); font-size: 14px; font-weight: 600; }
#accountDetailsDrawer .detail-section-note { margin: -6px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
#accountDetailsDrawer .detail-status-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; gap: 10px; padding: 17px 14px; background: var(--surface-soft, #f7f8fc); border: 1px solid var(--border); border-radius: 12px; }
#accountDetailsDrawer .detail-status-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
#accountDetailsDrawer .detail-status-grid > div > span:first-child { color: var(--muted); font-size: 12px; }
#accountDetailsDrawer .badge { white-space: normal; line-height: 1.45; }
#accountDetailsDrawer .details-list { gap: 17px; font-size: 14px; }
#accountDetailsDrawer .details-list > div { grid-template-columns: 115px minmax(0, 1fr); gap: 14px; align-items: start; line-height: 1.6; }
#accountDetailsDrawer .details-list dt { font-size: 12px; }
#accountDetailsDrawer .details-list dd { min-width: 0; white-space: pre-wrap; }
#accountDetailsDrawer .detail-copy { line-height: 1.6; overflow-wrap: anywhere; }
#accountDetailsDrawer .timeline-list { gap: 12px; }
#accountDetailsDrawer .timeline-list article { position: relative; padding: 14px 16px; gap: 7px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
#accountDetailsDrawer .timeline-list article > span { white-space: pre-wrap; }
#accountDetailsDrawer .timeline-list time, #accountDetailsDrawer .timeline-list small { font-size: 12px; }
#accountDetailsDrawer .detail-mail-history { margin-top: 14px; }
#accountDetailsDrawer .detail-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 18px 24px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -4px 16px rgba(24, 31, 46, .03); }
#accountDetailsDrawer .detail-footer[hidden] { display: none; }
#accountDetailsDrawer .detail-footer .btn { min-height: 36px; }
#accountDetailsDrawer .empty-state { min-height: 160px; }
@media (max-width: 560px) {
    #accountDetailsDrawer .drawer-header { padding: 20px 20px 18px; }
    #accountDetailsDrawer .drawer-body { padding: 22px 20px; }
    #accountDetailsDrawer .detail-tabs { padding: 0 20px; gap: 22px; }
    #accountDetailsDrawer .details-list > div { grid-template-columns: 98px minmax(0, 1fr); gap: 10px; }
    #accountDetailsDrawer .detail-status-grid { gap: 8px; padding: 14px 10px; }
    #accountDetailsDrawer .detail-footer { padding-left: 20px; padding-right: 20px; }
}
