/* Account surfaces inherit the edition's existing material and contrast tokens. */
.onboarding-guide { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 20px; width: 100%; margin: 0 0 14px; padding: 0 2px; text-align: left; color: var(--finish-label, #e3dfd5); }
.onboarding-guide[hidden] { display: none; }
.onboarding-copy { display: grid; gap: 5px; min-width: 0; }
.onboarding-copy strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.onboarding-copy > span { color: var(--finish-muted, #aaa); font-size: 11px; line-height: 1.6; }
.onboarding-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; grid-column: 1; color: var(--finish-muted, #aaa); font-size: 10px; line-height: 1.6; }
.onboarding-steps li + li::before { content: '→'; margin-right: 7px; opacity: .55; }
.onboarding-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; grid-column: 2; grid-row: 1 / 3; }
.onboarding-actions button { min-height: 40px; padding: 8px 2px; border: 0; background: transparent; color: var(--finish-label, #e3dfd5); font: inherit; font-size: 12px; cursor: pointer; }
.onboarding-actions .onboarding-primary { padding: 10px 17px; border: 1px solid var(--finish-edge, #ffffff26); border-radius: 7px; background: var(--finish-highlight, #ffffff10); font-weight: 600; }
.onboarding-actions button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.onboarding-actions button:focus-visible { outline: 2px solid var(--finish-icon, #bcb4a4); outline-offset: 3px; }
.onboarding-actions button:disabled { opacity: .45; cursor: wait; }
body[data-edition] #access-dialog .account-entry-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--finish-edge, #ffffff26); border-radius: 9px; margin: 0 0 15px; }
body[data-edition] #access-dialog .account-entry-tab { flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 6px; padding: 8px 5px; background: transparent; color: var(--finish-muted, #aaa); font: inherit; font-size: 12px; cursor: pointer; }
body[data-edition] #access-dialog .account-entry-tab[aria-pressed="true"] { color: var(--finish-label, #e3dfd5); background: var(--finish-highlight, #ffffff10); box-shadow: 0 0 0 1px var(--finish-edge, #ffffff26); font-weight: 600; }
body[data-edition] #access-dialog .account-start-note { margin: 0 0 18px; color: var(--finish-muted, #aaa); font-size: 12px; line-height: 1.8; }
body[data-edition] #access-dialog .account-continue { margin: 16px 0; }
body[data-edition] #access-dialog .account-empty { margin: 16px 0 10px; }
body[data-edition] #access-dialog .account-entitlements > summary { cursor: pointer; padding: 12px 0; margin: 9px 0; }
body[data-edition] #access-dialog .account-entitlements > summary span:first-child { color: var(--finish-label, #e3dfd5); font-size: 12px; }
body[data-edition] #access-dialog #redeem-hint { margin: 0 0 11px; }
@media (max-width: 760px) {
  .onboarding-guide { grid-template-columns: minmax(0, 1fr); gap: 7px; margin-bottom: 11px; }
  .onboarding-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; gap: 4px 14px; }
  .onboarding-actions button { min-height: 42px; }
}
body[data-edition] #access-dialog .access-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(90dvh, 920px); overflow-y: auto; overscroll-behavior: contain; }
body[data-edition] #access-dialog .dialog-mark { margin-bottom: 16px; }
body[data-edition] #access-dialog .dialog-intro { margin-bottom: 23px; }
body[data-edition] #access-dialog :is(.account-form, .account-field) { display: grid; gap: 9px; }
body[data-edition] #access-dialog .account-form { gap: 19px; }
body[data-edition] #access-dialog .account-field label { font-size: 12px; font-weight: 550; color: var(--finish-label, #e3dfd5); }
body[data-edition] #access-dialog .account-field input { box-sizing: border-box; width: 100%; min-width: 0; height: 46px; padding: 11px 14px; border: 1px solid var(--finish-edge, #ffffff26); border-radius: 8px; color: var(--finish-label, #e3dfd5); background: var(--finish-highlight, #ffffff06); font: inherit; font-size: 15px; box-shadow: inset 0 1px 2px #00000012; }
body[data-edition] #access-dialog :is(input, button, .account-recovery-code):focus-visible { outline: 2px solid var(--finish-icon, #bcb4a4); outline-offset: 3px; }
body[data-edition] #access-dialog :is(.account-note, .account-field-hint, .account-empty, .account-receipt p) { margin: 0; color: var(--finish-muted, #aaa); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
body[data-edition] #access-dialog .account-primary { width: 100%; min-height: 45px; padding: 12px 16px; border: 1px solid var(--finish-icon, #bcb4a4); border-radius: 8px; color: var(--finish-label, #e3dfd5); background: var(--finish-highlight, #ffffff0c); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
body[data-edition] #access-dialog .account-primary:hover:not(:disabled) { background: var(--finish-edge, #ffffff26); }
body[data-edition] #access-dialog :is(.account-link, .account-secondary, .account-pass-select) { border: 0; color: var(--finish-icon, #c3b395); background: transparent; font: inherit; font-size: 12px; cursor: pointer; min-height: 36px; padding: 6px 2px; }
body[data-edition] #access-dialog :is(.account-link, .account-secondary):hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
body[data-edition] #access-dialog .account-form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
body[data-edition] #access-dialog .account-message { margin: 10px 0 0; min-height: 0; font-size: 12px; line-height: 1.7; color: var(--repair-danger, #ecaaa1); }
body[data-edition] #access-dialog .account-message:empty { display: none; }
body[data-edition] #access-dialog .account-message.success { color: var(--finish-label, #e3dfd5); }
body[data-edition] #access-dialog .account-bind { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.8; color: var(--finish-muted, #aaa); }
body[data-edition] #access-dialog .account-bind input { flex: 0 0 16px; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--finish-icon, #bcb4a4); }
body[data-edition] #access-dialog .account-identity { display: flex; align-items: center; gap: 14px; padding: 5px 0 23px; border-bottom: 1px solid var(--finish-edge, #ffffff26); }
body[data-edition] #access-dialog .account-identity > div { min-width: 0; flex: 1; }
body[data-edition] #access-dialog .account-monogram { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; border-radius: 50%; border: 1px solid var(--finish-edge, #ffffff26); color: var(--finish-icon, #bcb4a4); font-size: 18px; background: var(--finish-highlight, #ffffff06); }
body[data-edition] #access-dialog .account-kicker { display: block; font-size: 8px; letter-spacing: .17em; color: var(--finish-muted, #aaa); margin-bottom: 6px; }
body[data-edition] #access-dialog .account-name { display: block; color: var(--finish-label, #e3dfd5); font-size: 17px; font-weight: 550; overflow-wrap: anywhere; }
body[data-edition] #access-dialog .account-pass-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
body[data-edition] #access-dialog :is(.account-pass-heading h3, .account-receipt h3) { font-size: 13px; color: var(--finish-label, #e3dfd5); margin: 0; font-weight: 600; }
body[data-edition] #access-dialog .account-pass-heading > span { font-size: 11px; color: var(--finish-muted, #aaa); }
body[data-edition] #access-dialog .account-pass-list { display: grid; gap: 9px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 15px; }
body[data-edition] #access-dialog .account-pass { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 13px 14px; border: 1px solid var(--finish-edge, #ffffff26); border-radius: 9px; }
body[data-edition] #access-dialog .account-pass.selected { border-color: var(--finish-icon, #bcb4a4); background: var(--finish-highlight, #ffffff06); }
body[data-edition] #access-dialog .account-pass-info { min-width: 0; }
body[data-edition] #access-dialog .account-pass-info strong { font-size: 12px; color: var(--finish-label, #e3dfd5); }
body[data-edition] #access-dialog .account-pass-info small { display: block; color: var(--finish-muted, #aaa); font-size: 11px; line-height: 1.7; margin-top: 3px; overflow-wrap: anywhere; }
body[data-edition] #access-dialog .account-pass-select { white-space: nowrap; flex: 0 0 auto; }
body[data-edition] #access-dialog .account-legacy { margin: 20px 0 0; padding: 14px; border: 1px solid var(--finish-edge, #ffffff26); border-radius: 9px; background: var(--finish-highlight, #ffffff06); }
body[data-edition] #access-dialog .account-legacy p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--finish-muted, #aaa); }
body[data-edition] #access-dialog .account-receipt { display: grid; gap: 15px; }
body[data-edition] #access-dialog .account-recovery-code { display: block; padding: 18px 14px; border: 1px solid var(--finish-icon, #bcb4a4); border-radius: 9px; background: var(--finish-highlight, #ffffff06); color: var(--finish-label, #e3dfd5); font-family: ui-monospace, Consolas, monospace; font-size: 16px; letter-spacing: .05em; line-height: 1.8; overflow-wrap: anywhere; user-select: all; }
body[data-edition] #access-dialog #redeem-form { border-top: 1px solid var(--finish-edge, #ffffff26); padding-top: 20px; margin-top: 22px; }
body[data-edition] #access-dialog :is(button, input):disabled { opacity: .5; cursor: not-allowed; }
body[data-edition] #top-access { min-width: 0; }
body[data-edition] #top-account-label { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
body[data-edition] #access-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-edition] #access-dialog .account-password-control { position: relative; min-width: 0; }
body[data-edition] #access-dialog .account-password-control input { padding-inline-end: 66px; }
body[data-edition] #access-dialog .account-password-toggle { position: absolute; inset-inline-end: 7px; top: 5px; min-width: 46px; height: 36px; padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--finish-icon, #bcb4a4); font: inherit; font-size: 12px; cursor: pointer; }
body[data-edition] #access-dialog .account-password-toggle:hover:not(:disabled) { background: var(--finish-highlight, #ffffff06); }
body[data-edition] #access-dialog .account-guide-link { display: inline-block; margin-top: 15px; font-size: 11px; line-height: 1.7; color: var(--finish-muted, #aaa); text-decoration: none; }
body[data-edition] #access-dialog .account-guide-link:hover { color: var(--finish-icon, #bcb4a4); text-decoration: underline; text-underline-offset: 3px; }
body[data-edition] .sidebar-guide-link { display: flex; align-items: center; gap: 6px; width: fit-content; margin: 9px 5px 0; padding: 3px 0; font-size: 10px; color: var(--finish-muted, #aaa); text-decoration: none; }
body[data-edition] .sidebar-guide-link .ui-icon { width: 10px; height: 10px; }
body[data-edition] .sidebar-guide-link:hover { color: var(--finish-icon, #bcb4a4); }
body[data-edition] .sidebar-guide-link:focus-visible { outline: 2px solid var(--finish-icon, #bcb4a4); outline-offset: 3px; }
body[data-edition] #access-dialog .usage-management { margin: 22px 0; padding: 19px 0; border-block: 1px solid var(--finish-edge, #ffffff26); }
body[data-edition] #access-dialog .usage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body[data-edition] #access-dialog .usage-heading h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--finish-label, #e3dfd5); }
body[data-edition] #access-dialog :is(.usage-refresh, .usage-more, .usage-retry) { min-height: 34px; padding: 6px 10px; border: 1px solid var(--finish-edge, #ffffff26); border-radius: 6px; background: transparent; color: var(--finish-icon, #bcb4a4); font: inherit; font-size: 11px; cursor: pointer; }
body[data-edition] #access-dialog :is(.usage-refresh, .usage-more, .usage-retry):hover:not(:disabled) { background: var(--finish-highlight, #ffffff06); }
body[data-edition] #access-dialog .usage-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; padding: 14px 0; background: var(--finish-highlight, #ffffff06); border-radius: 8px; }
body[data-edition] #access-dialog .usage-totals > div { text-align: center; padding: 0 5px; min-width: 0; }
body[data-edition] #access-dialog .usage-totals > div + div { border-inline-start: 1px solid var(--finish-edge, #ffffff26); }
body[data-edition] #access-dialog .usage-totals dt { font-size: 10px; color: var(--finish-muted, #aaa); line-height: 1.5; }
body[data-edition] #access-dialog .usage-totals dd { margin: 6px 0 0; font-size: 21px; font-weight: 450; font-variant-numeric: tabular-nums; color: var(--finish-label, #e3dfd5); overflow-wrap: anywhere; }
body[data-edition] #access-dialog .usage-notice { margin: 12px 0; color: var(--finish-muted, #aaa); font-size: 11px; line-height: 1.75; }
body[data-edition] #access-dialog .usage-notice.has-error { color: var(--repair-danger, #ecaaa1); }
body[data-edition] #access-dialog .usage-list { list-style: none; padding: 0; margin: 0; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body[data-edition] #access-dialog .usage-row { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--finish-edge, #ffffff26); }
body[data-edition] #access-dialog .usage-row:last-child { border-bottom: 0; }
body[data-edition] #access-dialog .usage-row-info { flex: 1; min-width: 0; }
body[data-edition] #access-dialog .usage-row-info strong { display: block; font-size: 12px; font-weight: 500; color: var(--finish-label, #e3dfd5); line-height: 1.6; overflow-wrap: anywhere; }
body[data-edition] #access-dialog .usage-row-info time { display: block; margin-top: 4px; color: var(--finish-muted, #aaa); font-size: 10px; line-height: 1.6; }
body[data-edition] #access-dialog .usage-row-result { text-align: right; flex: 0 0 auto; max-width: 52%; }
body[data-edition] #access-dialog .usage-row-result strong { display: block; color: var(--finish-label, #e3dfd5); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body[data-edition] #access-dialog .usage-row-result small { display: block; margin-top: 5px; font-size: 10px; line-height: 1.6; color: var(--finish-muted, #aaa); }
body[data-edition] #access-dialog .usage-row[data-state="pending"] .usage-row-result strong { color: var(--finish-icon, #bcb4a4); }
body[data-edition] #access-dialog .usage-actions { display: flex; justify-content: center; gap: 9px; margin-top: 12px; }
body[data-edition] #access-dialog .usage-actions:has(> button:not([hidden])) { min-height: 34px; }
@media (min-width: 1000px) { body[data-edition].sidebar-collapsed .sidebar-guide-link { display: none; } }
@media (max-width: 600px) {
  body[data-edition] #access-dialog .access-dialog { max-height: calc(100dvh - 24px); padding: 26px 22px; }
  body[data-edition] #access-dialog .account-field input { font-size: 16px; }
  body[data-edition] #access-dialog .account-recovery-code { font-size: 14px; }
  body[data-edition] #top-account-label { max-width: 94px; }
}
