body { background: #f6f8fc; color: #24334b; }
.account-page { max-width: 1240px; margin: 32px auto 50px; padding: 0 24px; }
.account-topbar, .account-topbar nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-topbar nav { font-size: 14px; flex-wrap: wrap; }
.account-page-title { margin: 36px 0 24px; }
.account-page-title h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; color: #172640; }
.account-page-title p, .account-card p { color: #627087; font-size: 14px; line-height: 1.7; }
.account-content .portal-dialog-panel { width: 100%; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
.account-profile-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 22px; }
.account-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.account-card { min-width: 0; padding: 26px; border: 1px solid #dfe6ef; border-radius: 14px; background: #fff; }
.account-card h2, .account-content .portal-dialog-panel h2 { font-size: 20px; font-weight: 600; margin: 0 0 18px; }
.account-card .profile-head h2 { font-size: 16px; margin: 0; }
.account-card .profile-head { margin: 0 0 10px; }
.account-card .profile-email { overflow-wrap: anywhere; }
.account-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }
.account-field { min-width: 0; }
.account-field input, .account-field select { max-width: 100%; min-width: 0; }
.account-card .area-list { max-height: 230px; overflow-y: auto; z-index: 20; }
.account-content .portal-dialog-demo { margin: 0 0 14px; }
.account-security-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.account-button, .account-danger { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid #3056d3; background: #3056d3; color: #fff; font-size: 14px; cursor: pointer; text-align: center; gap: 6px; }
.account-button:hover { background: #2547b7; color: #fff; }
.account-button-secondary { color: #3056d3; background: #fff; border-color: #d6e0ef; }
.account-button-secondary:hover { color: #2447b1; background: #eef3ff; }
.account-danger { display: block; color: #ab3535; background: #fff; border-color: #efd5d5; margin-top: 16px; }
.account-button:focus-visible, .account-danger:focus-visible, summary:focus-visible { outline: 3px solid #b4c8ff; outline-offset: 3px; }
.account-record-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.account-records { display: grid; gap: 22px; }
.account-table-scroll { overflow: auto; max-height: 640px; max-width: 100%; border: 1px solid #e3eaf3; border-radius: 10px; }
.account-table-scroll table { width: 100%; border-collapse: collapse; font-size: 13px; }
.account-table-scroll th { background: #f5f8fc; color: #61718b; font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.account-table-scroll th, .account-table-scroll td { padding: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #e8eef6; }
.account-combined-scroll > table { min-width: 900px; }
.account-badge { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #edf1f7; color: #54657d; white-space: nowrap; }
.account-badge.is-good { color: #087c54; background: #e7f5ee; }
.account-access { min-width: 180px; display: grid; gap: 12px; }
.account-access .account-button { min-height: 36px; padding: 6px 10px; justify-self: start; }
.account-access details { min-width: 0; }
.account-access summary { cursor: pointer; color: #3056d3; margin-bottom: 10px; }
.account-access .account-table-scroll { max-width: 300px; }
.account-access input { font-family: monospace; min-width: 120px; }
.account-empty { padding: 22px; background: #f8faff; border-radius: 10px; }
.account-footer { text-align: center; margin-top: 30px; color: #627087; font-size: 14px; }
.account-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 991px) { .account-profile-grid { grid-template-columns: 1fr; } .account-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
 .account-page { padding: 0 16px; margin-top: 20px; } .account-topbar { gap: 12px; } .account-topbar nav { gap: 12px; font-size: 13px; } .account-page-title h1 { font-size: 28px; }
 .account-card { padding: 20px 16px; } .account-fields, .account-side { grid-template-columns: 1fr; } .account-card input, .account-card select { font-size: 16px; }
 .account-combined-scroll { border: 0; overflow: visible; max-height: none; } .account-combined-scroll > table { min-width: 0; display: block; } .account-combined-scroll > table > thead { display: none; } .account-combined-scroll > table > tbody { display: grid; gap: 14px; }
 .account-combined-scroll > table > tbody > tr { display: block; padding: 10px 12px; border: 1px solid #e3eaf3; border-radius: 10px; }
 .account-combined-scroll > table > tbody > tr > td { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 10px 0; overflow-wrap: anywhere; }
 .account-combined-scroll > table > tbody > tr > td:last-child { border-bottom: 0; }
 .account-combined-scroll > table > tbody > tr > td::before { content: attr(data-label); font-weight: 500; color: #6b7c94; }
 .account-badge { justify-self: start; } .account-access { min-width: 0; } .account-access .account-table-scroll { max-width: 100%; overflow-x: auto; } .account-access input { min-width: 90px; }
}

.account-content .account-timezone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 0 auto; font-weight: 400; color: #627087; font-size: 13px; min-width: 0; max-width: 100%; }
.account-timezone select { width: auto; max-width: 100%; min-width: 0; height: 44px; border: 1px solid #d6e0ef; border-radius: 8px; padding: 0 30px 0 12px; background: #fff; color: #24334b; }
@media (max-width: 680px) { .account-content .account-timezone { margin-left: 0; width: 100%; } .account-timezone select { flex: 1; width: 100%; font-size: 16px; } }

.account-cell-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.account-muted { color: #6b7c94; font-size: 12px; }
.account-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-row-actions .account-button { min-height: 36px; padding: 6px 10px; }
.account-order-filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(160px, 1fr) auto; align-items: end; gap: 12px; margin: 20px 0 12px; }
.account-content .account-order-filters label { margin: 0; min-width: 0; font-size: 13px; color: #627087; font-weight: 500; }
.account-order-filters input, .account-order-filters select { display: block; margin-top: 7px; min-width: 0; max-width: 100%; }
.account-order-filters select { margin-top: 0; }
.account-order-filters select:has(option[value=""]:checked) { color: #6b7c94; }
.account-order-filters select option { color: #24334b; }
.account-order-filters button:disabled { opacity: .5; cursor: default; }
.account-card .account-order-count { font-size: 12px; margin: 12px 0; }
.account-detail-row[hidden] { display: none !important; }
.account-detail-row > td { background: #f8faff; }
.account-order-detail { padding: 8px; }
.account-order-detail dl { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 0 0 20px; }
.account-order-detail dt { color: #6b7c94; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.account-order-detail dd { margin: 0; }
.account-credentials { max-width: 480px; }
.account-credentials h3 { font-size: 15px; margin-bottom: 12px; }
.account-credentials .account-table-scroll { background: #fff; }
.account-credentials input { min-width: 100px; font-family: monospace; }
.account-combined-scroll > table { min-width: 800px; }
@media (max-width: 991px) { .account-order-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .account-order-filters > label:first-child { grid-column: 1 / -1; } .account-order-filters > button { justify-self: start; } .account-order-detail dl { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
 .account-combined-scroll > table { min-width: 0; }
 .account-combined-scroll > table > tbody > .account-detail-row { margin-top: -14px; border-top: 0; border-radius: 0 0 10px 10px; background: #f8faff; }
 .account-combined-scroll > table > tbody > .account-detail-row > td { display: block; }
 .account-combined-scroll > table > tbody > .account-detail-row > td::before { display: none; }
 .account-order-detail { padding: 4px 0; } .account-order-detail dl { grid-template-columns: 1fr; gap: 14px; }
 .account-credentials { min-width: 0; max-width: 100%; } .account-credentials input { min-width: 70px; }
 .account-row-actions { gap: 8px; }
}
@media (max-width: 680px) { .account-order-detail dl > div { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; align-items: baseline; } .account-order-detail dt { margin-bottom: 0; } }
