.account-page-title { font-size: 22px; margin: 14px 0 22px; color: #283654; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.account-panel, .history-panel { padding: 25px; border: 1px solid #e4dff0; border-radius: 24px; background: #fff; min-width: 0; }
.account-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.account-panel h2, .history-panel h2 { color: #4c3d66; font-size: 17px; margin: 0; }
.account-status-tag { padding: 4px 11px; color: #8564a6; background: #f4effb; font-size: 11px; border-radius: 99px; }
.account-tabs { display: flex; gap: 5px; background: #f5f2fa; padding: 5px; margin-bottom: 20px; border-radius: 99px; }
.account-tabs button { flex: 1; padding: 9px; border: 0; border-radius: 99px; background: transparent; color: #9d8baa; font-size: 12px; }
.account-tabs button[aria-selected="true"] { background: #fff; color: #735195; font-weight: 600; }
#account-form > label:not(.account-consent) { margin-bottom: 17px; color: #7e6f8b; }
#account-form input:not([type="checkbox"]) { background: #fcfaff; border-radius: 99px; padding-left: 16px; }
.account-field-help { margin: -6px 0 15px; color: #9d8daa; font-size: 11px; line-height: 1.7; }
.account-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: #8f7c9e; line-height: 1.8; font-weight: 400; }
.account-consent input { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 auto; accent-color: #8661bf; padding: 0; }
#account-submit { width: 100%; margin-top: 20px; }
.account-guest-note { text-align: center; font-size: 11px; margin: 16px 0 0; }
.account-guest-note a { color: #8765ad; text-decoration: none; }
.account-profile { display: flex; gap: 14px; align-items: center; margin: 18px 0 25px; }
.account-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; background: #f0e9f8; color: #9372b5; border-radius: 50%; }
.account-avatar svg { width: 23px; height: 23px; }
.account-profile strong { display: block; color: #604a77; font-size: 15px; word-break: break-all; }
.account-profile p { color: #9b87ac; font-size: 11px; margin: 5px 0 0; }
.account-verification { padding: 17px; border-radius: 18px; background: #faf5ed; margin: 20px 0; }
.account-verification strong { color: #a28257; font-size: 12px; }
.account-verification p { font-size: 11px; color: #a68f70; line-height: 1.8; margin: 7px 0 13px; }
.account-code-note { color: #9583a7; font-size: 12px; margin: 15px 0 20px; line-height: 1.8; }
.account-code-form > label:not(.account-consent) { display: block; margin-bottom: 17px; color: #7e6f8b; }
.account-code-form input:not([type="checkbox"]) { background: #fcfaff; border-radius: 99px; padding-left: 16px; }
.account-code-form > button, #account-link-generate { width: 100%; }
.account-code-form > button { margin-top: 18px; }
#account-link-form { margin-top: 24px; }
.account-code-display { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding: 17px; border-radius: 18px; background: #f6f2fc; }
.account-code-display output { width: 100%; color: #5c4283; font-size: 21px; font-weight: 650; letter-spacing: 2px; user-select: all; overflow-wrap: anywhere; }
.account-code-display span { flex: 1; color: #9a87ab; font-size: 11px; }
.account-code-display[hidden] { display: none; }
.account-linked { color: #735393; background: #f6f2fc; border-radius: 18px; padding: 18px; font-size: 13px; margin: 20px 0 0; }
.history-panel { margin-top: 22px; }
.history-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.history-heading p { font-size: 11px; color: #9d8aac; margin: 7px 0 0; }
.history-search { display: flex; gap: 10px; margin-bottom: 18px; max-width: 480px; }
.history-search input { margin: 0; border-radius: 99px; height: 40px; padding-left: 15px; }
.history-search button { flex: 0 0 auto; }
.history-list { display: grid; }
.history-empty { margin: 0; padding: 36px 20px; text-align: center; color: #a696b3; font-size: 12px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #eee9f4; padding: 18px 0; }
.history-row:first-child { padding-top: 6px; }
.history-info { min-width: 0; }
.history-kind { font-size: 10px; color: #a98aba; }
.history-info h3 { color: #6c527f; font-size: 13px; margin: 4px 0; line-height: 1.7; overflow-wrap: anywhere; }
.history-info time { color: #ad9ab9; font-size: 11px; }
.history-actions { display: flex; gap: 10px; flex-shrink: 0; }
.history-delete { color: #aa8b99; border: 0; background: transparent; font-size: 11px; padding: 8px; }
.history-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding-top: 22px; color: #9d89ab; font-size: 11px; }
.history-pagination > div { display: flex; gap: 10px; }
.history-dialog { width: min(780px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 27px; border: 1px solid #dfd5eb; border-radius: 24px; color: #6d5880; overflow-y: auto; }
.history-dialog::backdrop { background: #1b193659; backdrop-filter: blur(3px); }
.history-detail-note { color: #9e87ad; font-size: 11px; margin: 17px 0; }
.history-detail { padding: 18px; border-radius: 18px; background: #faf8fd; }
.history-detail section + section { border-top: 1px solid #ebe4f2; padding-top: 17px; margin-top: 17px; }
.history-detail h3 { font-size: 12px; color: #866399; margin: 0 0 11px; }
.history-detail pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; color: #8c7c99; font-size: 12px; line-height: 1.9; margin: 0; }
.history-dialog-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 23px; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; }
.dialog-close svg { width: 19px; height: 19px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .account-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .account-panel, .history-panel { padding: 20px; } .history-heading { align-items: flex-start; } .history-heading .button { font-size: 11px; padding: 8px 11px; white-space: nowrap; } .history-row { flex-direction: column; align-items: stretch; gap: 10px; } .history-actions { justify-content: flex-end; } }
@media (max-width: 400px) { .history-panel, .account-panel { padding: 17px; } .history-dialog-actions { flex-direction: column-reverse; } }
@media print { #account-page, #history-dialog { display: none !important; } }
