/* Saved work and account management share the creation workspace foundation. */
.account-workspace .layout { display: block; min-height: 0; }
.account-workspace .main { max-width: 1248px; margin: auto; padding: 32px 24px 48px; min-width: 0; }
.account-workspace .header { gap: 24px; align-items: center; margin-bottom: 24px; }
.account-workspace .header h1 { font-size: clamp(28px, 3.5vw, 38px); line-height: 1.15; letter-spacing: -1.2px; }
.account-workspace #pageDescription { color: var(--px-muted); font-size: 15px; margin-top: 10px; }
.account-workspace .header-support-note { font-size: 13px; margin-top: 12px; color: var(--px-muted); }
.account-workspace .header-support-note a { color: var(--px-accent); }
.account-workspace :is(.create-btn, .reactivate-btn, .cancel-btn, .team-mini-btn, .modal-btn) {
  font: 600 14px/1.3 var(--px-font); border-radius: 7px; min-height: 44px; padding: 10px 16px; box-shadow: none;
}
.account-workspace :is(.create-btn, .reactivate-btn, .modal-btn-save) { background: var(--px-accent); border: 1px solid var(--px-accent); color: white; text-decoration: none; }
.account-workspace :is(.create-btn, .reactivate-btn, .modal-btn-save):hover:not(:disabled) { background: #104a39; box-shadow: none; transform: none; }
.account-workspace :is(.cancel-btn, .team-mini-btn, .modal-btn-cancel) { background: white; border: 1px solid var(--px-line); color: var(--px-ink); }
/* Revoke keeps its warning look under the shared button rule: the site's error colours, 8:1 on its tint. */
.account-workspace .team-mini-btn.danger { background: var(--px-error-bg); border-color: var(--px-error-line); color: var(--px-error-ink); }
.account-workspace .team-mini-btn.danger:hover:not(:disabled) { border-color: var(--px-error-ink); }
.account-workspace .tab-nav { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--px-line); margin-bottom: 24px; }
.account-workspace .tab-btn { min-height: 46px; font-size: 14px; padding: 10px 0; border-bottom-width: 3px; color: var(--px-muted); }
.account-workspace .tab-btn.active { color: var(--px-accent); border-bottom-color: var(--px-accent); }
.account-workspace .tab-secondary { margin-left: auto; display: inline-flex; align-items: center; color: var(--px-muted); font-size: 13px; min-height: 44px; }
.account-workspace .filters-bar { display: grid; grid-template-columns: minmax(0, 1fr) 170px 190px; align-items: end; gap: 16px; padding: 20px; background: white; border: 1px solid var(--px-line); border-radius: 12px; margin-bottom: 14px; }
.account-workspace :is(.library-search, .library-filter) { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: var(--px-muted); font-size: 13px; }
.account-workspace :is(.search-input, .filter-select, .modal-input, .team-input, .team-select) { width: 100%; min-height: 44px; border: 1px solid var(--px-line); border-radius: 7px; background: white; padding: 10px 12px; font: 14px/1.4 var(--px-font); color: var(--px-ink); min-width: 0; }
.account-workspace .library-count { font-size: 13px; color: var(--px-muted); margin: 0 0 14px; }
.account-workspace #qrListLoadStatus { padding: 14px; border: 1px solid #dba938; border-radius: 8px; margin-bottom: 16px; background: #fff8e7; }
.account-workspace #qrListRetry { width: auto; margin-left: 12px; }
.account-workspace .qr-list { gap: 16px; }
.account-workspace .qr-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; row-gap: 16px; padding: 22px; border: 1px solid var(--px-line); border-radius: 12px; box-shadow: none; background: white; align-items: center; }
.account-workspace .qr-card:hover { transform: none; box-shadow: none; border-color: #b5c4b9; }
.account-workspace .qr-thumbnail { width: 120px; height: 120px; border: 1px solid var(--px-line); box-shadow: none; border-radius: 5px; background: white; }
.account-workspace .qr-thumbnail__placeholder-label { font-size: 13px; }
.account-workspace .qr-thumbnail__placeholder-meta { font-size: 13px; }
.account-workspace .qr-details { min-width: 0; }
.account-workspace :is(.qr-badge, .qr-count-badge) { font-size: 13px; padding: 4px 8px; border-radius: 5px; margin-bottom: 8px; background: var(--px-accent-soft); color: var(--px-accent); }
.account-workspace .qr-title { display: block; font-size: 19px; font-weight: 650; line-height: 1.35; margin-bottom: 8px; overflow-wrap: anywhere; }
.account-workspace :is(.qr-destination, .qr-shorturl) { font-size: 14px; color: var(--px-muted); overflow-wrap: anywhere; white-space: normal; }
.account-workspace .qr-destination::before { content: none; }
.account-workspace .qr-destination__label { font-weight: 600; }
.account-workspace .qr-plan-note { font-size: 13px; line-height: 1.4; color: var(--px-ink); margin-top: 6px; overflow-wrap: anywhere; white-space: normal; }
.account-workspace .qr-meta { font-size: 13px; gap: 18px; flex-wrap: wrap; color: var(--px-muted); margin-top: 12px; }
.account-workspace .qr-actions { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.account-workspace .action-btn { width: auto; height: auto; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--px-line); border-radius: 7px; background: white; color: var(--px-ink); font: 600 13px/1.3 var(--px-font); box-shadow: none; text-decoration: none; }
.account-workspace .action-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.account-workspace .action-btn:hover { background: var(--px-accent-soft); border-color: #a8c3b3; box-shadow: none; transform: none; }
.account-workspace .action-btn[href^="/editor/"] { background: var(--px-accent); border-color: var(--px-accent); color: white; }
.account-workspace .action-btn--activate { background: var(--px-accent-soft); border-color: var(--px-accent); color: var(--px-accent); }
.account-workspace .empty-state { padding: 48px 20px; border-radius: 12px; border: 1px solid var(--px-line); background: white; }
.account-workspace .empty-state h2 { font-size: 24px; }
.account-workspace .empty-state p { font-size: 15px; }
.account-workspace .settings-section.active { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.account-workspace .settings-card { padding: 24px; border: 1px solid var(--px-line); border-radius: 12px; margin: 0; box-shadow: none; min-width: 0; }
.account-workspace .settings-card:last-child { grid-column: 1 / -1; }
.account-workspace .settings-card h2 { font-size: 21px; }
.account-workspace .settings-card p { font-size: 14px; color: var(--px-muted); }
.account-workspace :is(.subscription-details, .team-member-sub, .team-hint, .team-notice) { font-size: 13px; }
.account-workspace :is(.subscription-status, .team-role-badge) { font-size: 13px; border-radius: 5px; }
.account-workspace #subscriptionActions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.account-workspace .team-row { gap: 12px; }
.account-workspace .team-row > :is(input, select) { flex: 1 1 220px; }
.account-workspace .team-panel { border-color: var(--px-line); border-radius: 8px; }
.account-workspace .team-panel h3 { font-size: 16px; }
.account-workspace .team-member-email { font-size: 14px; overflow-wrap: anywhere; }
.account-workspace .team-member-row { gap: 12px; }
.account-workspace .team-member-meta { min-width: min(220px, 100%); }
.account-workspace .px-workspace-footer strong { font-weight: 500; overflow-wrap: anywhere; }
body.px-dialog-open { overflow: hidden; }
.account-workspace .modal-overlay { padding: 20px; overflow: auto; background: rgba(20, 33, 26, .55); }
.account-workspace .modal-content { max-width: 520px; width: 100%; max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid var(--px-line); border-radius: 12px; box-shadow: 0 18px 70px #14211a33; }
.account-workspace .modal-title { font-size: 20px; line-height: 1.3; }
.account-workspace .modal-label { font-size: 14px; }
.account-workspace .modal-close { min-height: 44px; min-width: 44px; }
.account-workspace .modal-footer { gap: 12px; flex-wrap: wrap; }
.account-workspace .dialog-error { margin-top: 12px; color: #9b2626; font-size: 14px; overflow-wrap: anywhere; }
.account-workspace .dialog-error:empty { display: none; }
.account-workspace :is(.modal-body p, .modal-body li) { font-size: 14px !important; }
@media (max-width: 720px) {
  .account-workspace .main { padding: 24px 16px 32px; }
  .account-workspace .header { align-items: flex-start; flex-direction: column; gap: 16px; }
  /* The two tabs, then the other places in two columns, not a column of five. A link that needs two lines still fits
     its 44 px row, so the rows stay put when the web font arrives. */
  .account-workspace .tab-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .account-workspace .tab-btn { justify-self: start; }
  .account-workspace .tab-secondary { width: auto; margin-left: 0; line-height: 1.3; }
  .account-workspace .filters-bar { padding: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .account-workspace .library-search { grid-column: 1 / -1; }
  .account-workspace :is(.search-input, .filter-select, .modal-input, .team-input, .team-select) { font-size: 16px; }
  .account-workspace .qr-card { grid-template-columns: 88px minmax(0, 1fr); padding: 16px; column-gap: 14px; }
  .account-workspace .qr-thumbnail { width: 88px; height: 88px; }
  .account-workspace .qr-title { font-size: 17px; }
  .account-workspace .qr-meta { gap: 10px; font-size: 13px; }
  .account-workspace .qr-actions { grid-column: 1 / -1; }
  .account-workspace .action-btn { flex: 1 1 calc(50% - 8px); }
  .account-workspace .settings-section.active { grid-template-columns: minmax(0, 1fr); }
  .account-workspace .settings-card { padding: 18px; }
  .account-workspace .modal-overlay { padding: 16px; }
  .account-workspace .modal-content { max-height: calc(100dvh - 32px); }
  .account-workspace .modal-header, .account-workspace .modal-body, .account-workspace .modal-footer { padding: 16px; }
  .account-workspace #qrListRetry { margin: 10px 0 0; }
}
/* The destination dialog's offer of a contact or Wi-Fi page (hosted-page-links.js). */
.account-workspace .modal-page-offer { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--px-muted); overflow-wrap: anywhere; }
.account-workspace .modal-page-offer a { color: var(--px-accent); font-weight: 650; padding: 6px 2px; white-space: nowrap; }
/* While the codes load, the list shows its own spinner; the status line that says the same is read out but not drawn,
   so nothing above the list collapses when loading ends. A failure (with Retry) is drawn as before. */
.account-workspace #qrListLoadStatus:has(#qrListRetry[hidden]) { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The count of saved items keeps its line while it is empty, so the list does not drop when the count arrives. */
.account-workspace #libraryCount { min-height: 1.5em; line-height: 1.5; }
/* While it loads, the billing card holds a height between that of "No recurring subscription" and an active plan with its date and buttons, so the card below moves little either way. */
.account-workspace #subscriptionLoading { min-height: 168px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.account-workspace #subscriptionLoading[style*="display: none"] { display: none !important; }
@media (max-width: 480px) { .account-workspace #subscriptionLoading { min-height: 194px; } }
/* The list holds most of a screen while it loads and when it is short (no codes, one code, no search matches), so the
   footer starts below the fold and stays put when the list arrives, at every width (November 22, 2026). */
.account-workspace #qrList { min-height: max(320px, calc(100vh - 360px)); }

/* Signed out: one panel with the sign-in button; the tabs, the list and the settings stay out of the way. The head
   script sets px-signed-out before the first paint, so nothing appears and then disappears. */
.account-workspace .account-signed-out { display: none; }
.px-signed-out .account-workspace .account-signed-out { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 24px; background: var(--px-surface); border: 1px solid var(--px-line); border-radius: 12px; }
.account-workspace .account-signed-out h2 { font-size: 20px; line-height: 1.3; color: var(--px-ink); margin: 0; }
.px-signed-out .account-workspace :is(#accountTabs, #qrCodesSection, #settingsSection, #footerIdentity) { display: none !important; }
.account-workspace .footer-sign-in { display: none; }
.px-signed-out .account-workspace .footer-sign-in { display: inline; }
/* Controls shown only when they apply (November 24, 2026): their own display rules would otherwise beat [hidden]. */
.account-workspace :is(#teamRoleBadge, #teamInvitePanel, #teamRoleFilter, #destinationCurrent, .qr-card-message)[hidden] { display: none !important; }
.account-workspace .team-role-badge { text-transform: none; }
.account-workspace .team-label { display: block; margin: 4px 0 6px; font-size: 13px; color: var(--px-muted); }
.account-workspace .modal-current { margin: 0 0 12px; font-size: 14px; color: var(--px-muted); overflow-wrap: anywhere; }
.account-workspace .qr-card-message { margin-top: 8px; font-size: 13px; color: var(--px-error-ink); overflow-wrap: anywhere; }
/* Signed out, the sign-in button is the page's one filled button; New QR code stays as the quieter second way on. */
.px-signed-out .account-workspace #createBtn { background: var(--px-surface); color: var(--px-ink); border-color: var(--px-line-strong); }
.px-signed-out .account-workspace #createBtn:hover { background: var(--px-accent-soft); }
.account-workspace .team-chip { text-transform: none; }
