/* Account: a compact entry to the festival programme and personal workspace. */
@media screen {
  body.sos-account-surface { background: #e9eef5; }
  body.sos-account-surface .account-topbar { position: relative; gap: 20px; padding: 16px clamp(20px, 4vw, 56px); }
  body.sos-account-surface .account-brand strong { font-size: 14px; letter-spacing: 0; }
  body.sos-account-surface .account-brand small { font-size: 12px; letter-spacing: 0; }
  body.sos-account-surface .account-topbar .global-language-switch { position: static; margin-left: auto; background: transparent; border: 0; color: #d5e3f5; box-shadow: none; padding: 0; }
  body.sos-account-surface .account-topbar .global-language-switch label { display: none; }
  body.sos-account-surface .account-topbar .global-language-switch select { background: #243b5d !important; color: #fff !important; border: 1px solid #6c7e99 !important; border-radius: 6px !important; min-height: 44px; padding: 8px 12px; }
  body.sos-account-surface .account-shell,
  body.sos-account-surface:not(.account-is-signed-in) .account-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; gap: 0; width: min(1160px, calc(100% - 64px)); max-width: 1160px; margin: 40px auto 64px; padding: 0; background: #f8fafd; border-radius: 14px; overflow: hidden; }
  body.sos-account-surface .account-welcome { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; padding: clamp(28px, 3.5vw, 52px); background: linear-gradient(180deg, #132541 0%, rgb(19 37 65 / 94%) 30%, rgb(19 37 65 / 28%) 100%), url('../assets/images/coastal-evening-2026.webp') center bottom / cover; color: #fff; }
  body.sos-account-surface .account-hero { margin: 0; max-width: 100%; }
  body.sos-account-surface .account-welcome .account-hero h1 { max-width: 10ch; margin: 0 0 18px; color: #fff; font-size: clamp(36px, 4vw, 54px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
  body.sos-account-surface .account-hero > p:last-child { margin: 0; max-width: 28ch; font-size: 17px; line-height: 1.65; color: #d5e3f5; }
  body.sos-account-surface .account-discover { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 300px; padding: 14px 0; border-top: 1px solid #8194ae; color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
  body.sos-account-surface .account-discover:hover { text-decoration: underline; text-underline-offset: 5px; }
  body.sos-account-surface .account-content { min-width: 0; padding: 28px clamp(24px, 3.3vw, 48px) 20px; }
  body.sos-account-surface .account-status { margin: 0 0 20px; padding: 0; border: 0; background: transparent; border-radius: 6px; color: #54657b; font-size: 14px; line-height: 1.5; }
  body.sos-account-surface .account-status:empty { display: none; }
  body.sos-account-surface .account-status[data-mode='error'] { padding: 12px 14px; background: #fbecef; color: #a52f43; }
  body.sos-account-surface .account-status[data-mode='warning'] { padding: 12px 14px; background: #fff2d9; color: #79500e; }
  body.sos-account-surface .account-status[data-mode='success'] { color: #236047; }
  body.sos-account-surface .account-auth-portal { max-width: none; margin: 0; }
  body.sos-account-surface .account-auth-tabs { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 26px; padding: 4px; border: 0; border-radius: 8px; background: #e4ebf5; }
  body.sos-account-surface .account-auth-tab { min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px !important; background: transparent; color: #43556d; font-size: 15px; font-weight: 500; box-shadow: none; }
  body.sos-account-surface .account-auth-tab[aria-selected='true'] { background: #fff; color: #1b2c46; border: 0; box-shadow: none; }
  body.sos-account-surface .account-auth-panel .account-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  body.sos-account-surface .account-auth-panel h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; font-weight: 600; }
  body.sos-account-surface .account-note { line-height: 1.6; }
  body.sos-account-surface .account-auth-panel > article > .account-note { margin: 0 0 20px; }
  body.sos-account-surface .account-social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
  body.sos-account-surface .account-provider { min-height: 44px; padding: 10px 14px; justify-content: center; border: 1px solid #b9c6d8; border-radius: 6px !important; background: #fff; color: #1b2c46; }
  body.sos-account-surface .account-provider strong { font-size: 15px; font-weight: 500; }
  body.sos-account-surface .account-provider[disabled] { opacity: 1; background: #edf1f6; color: #64748b; border-color: #cbd5e2; cursor: not-allowed; }
  body.sos-account-surface .account-provider-availability { margin: -8px 0 20px; font-size: 13px; color: #54657b; }
  body.sos-account-surface .account-provider:hover:not(:disabled) { border-color: #3155ad; background: #edf2fb; }
  body.sos-account-surface .account-auth-divider { gap: 16px; margin: 20px 0; }
  body.sos-account-surface .account-auth-divider::before,
  body.sos-account-surface .account-auth-divider::after { background: #cbd5e2; }
  body.sos-account-surface .account-auth-divider span { background: transparent; color: #54657b; font-size: 13px; }
  body.sos-account-surface .account-form { gap: 16px; }
  body.sos-account-surface .account-form label { gap: 6px; color: #43556d; font-size: 14px; font-weight: 500; }
  body.sos-account-surface .account-form :is(input, select) { min-height: 48px; padding: 11px 13px; border-radius: 6px; font-size: 16px; font-weight: 400; }
  body.sos-account-surface .account-form button[type='submit'] { margin-top: 2px; min-height: 48px; background: #3155ad !important; border-color: #3155ad; color: #fff !important; font-size: 16px; font-weight: 500; }
  body.sos-account-surface .account-form .interface-password-toggle { min-width: 60px; background: #e4ebf5 !important; border-color: #b9c6d8; color: #243b5d !important; font-weight: 500; }
  body.sos-account-surface .account-auth-shortcuts { gap: 8px 20px; margin-top: 12px; }
  body.sos-account-surface .account-link-button { min-height: 44px; margin: 0; padding: 10px 0; color: #3155ad; font-size: 14px; font-weight: 500; }
  body.sos-account-surface .account-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #d7dfea; }
  body.sos-account-surface .account-footer a { min-height: 36px; padding: 8px 0; color: #54657b; font-size: 13px; text-underline-offset: 4px; }
  body.sos-account-surface .account-ticket-market-hint { margin-bottom: 20px; padding: 14px; background: #e5edfb; color: #243b5d; border-color: #b9c6d8; border-radius: 8px; }
  body.sos-account-surface .account-ticket-market-hint strong { color: #243b5d; }

  /* The same account becomes a quiet workspace once signed in. */
  body.sos-account-surface.account-is-signed-in .account-shell { display: block; max-width: 1120px; background: transparent; overflow: visible; }
  body.sos-account-surface.account-is-signed-in .account-welcome { padding: 32px 36px; border-radius: 12px; background-position: center 65%; }
  body.sos-account-surface.account-is-signed-in .account-hero h1 { max-width: none; font-size: 36px; margin-bottom: 10px; }
  body.sos-account-surface.account-is-signed-in .account-hero > p:last-child { max-width: 55ch; font-size: 16px; }
  body.sos-account-surface.account-is-signed-in .account-discover { display: none; }
  body.sos-account-surface.account-is-signed-in .account-content { padding: 24px 0 0; }
  body.sos-account-surface.account-is-signed-in .account-status { margin: 0 0 12px; padding: 0; font-size: 14px; }
  body.sos-account-surface .account-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  body.sos-account-surface .account-workspace[hidden] { display: none !important; }
  body.sos-account-surface .account-toolbar { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 8px 0 24px; border-bottom: 1px solid #cbd5e2; }
  body.sos-account-surface #account-user-email { font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 8px; }
  body.sos-account-surface .account-identity .account-muted { margin: 0; }
  body.sos-account-surface .account-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
  body.sos-account-surface .account-toolbar-actions button { min-height: 44px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
  body.sos-account-surface .account-full { grid-column: 1 / -1; }
  body.sos-account-surface .account-wallet-card { margin: 0; padding: 24px; border: 0; background: #f8fafd; border-radius: 12px; }
  body.sos-account-surface .account-section-head h2 { margin: 0; font-size: 24px; }
  body.sos-account-surface .account-wallet-count { color: #3155ad; background: #e4ebf5; border: 0; font-size: 20px; }
  body.sos-account-surface .account-wallet-card > .account-note { margin: 12px 0 0; }
  body.sos-account-surface .account-ticket-grid { margin-top: 20px; }
  body.sos-account-surface .account-empty { padding: 20px; background: #e9eef5; border-radius: 8px; color: #54657b; }
  body.sos-account-surface .account-empty p { margin-top: 0; }
  body.sos-account-surface .account-wallet-item { border-color: #cbd5e2; background: #fff; color: #1b2c46; border-radius: 8px; }
  body.sos-account-surface .account-wallet-item p { color: #54657b; }
  body.sos-account-surface .account-wallet-actions button { background: #3155ad; color: #fff; border-color: #3155ad; font-size: 14px; font-weight: 500; }
  body.sos-account-surface .account-wallet-actions button.secondary { background: #e9eef5; color: #43556d; border-color: #cbd5e2; }
  body.sos-account-surface .account-details { align-self: start; padding: 0; margin: 0; border: 1px solid #cbd5e2; background: #f8fafd; border-radius: 10px; }
  body.sos-account-surface .account-details summary { padding: 20px; min-height: 96px; gap: 16px; }
  body.sos-account-surface .account-details summary strong { font-size: 17px; font-weight: 500; }
  body.sos-account-surface .account-details summary small { font-size: 14px; }
  body.sos-account-surface .account-details summary b { font-size: 14px; font-weight: 500; color: #3155ad; white-space: nowrap; }
  body.sos-account-surface .account-details-body { border-top: 1px solid #cbd5e2; padding: 20px; }
  body.sos-account-surface .account-details-body.account-grid { grid-template-columns: 1fr; }
  body.sos-account-surface .account-details-body .account-muted { overflow-wrap: anywhere; }
  body.sos-account-surface .account-team-access { padding: 24px; border-color: #b9c6d8; background: #e4ebf5; color: #1b2c46; }
  body.sos-account-surface .account-team-access-actions > span { border-color: #b9c6d8; color: #3155ad; font-size: 14px; letter-spacing: 0; }

  body.sos-account-surface .account-copy { min-height: 44px; padding: 8px 12px; color: #3155ad; font-size: 14px; }
  body.sos-account-surface .account-badge { background: #e9eef5; color: #43556d; border-color: #cbd5e2; font-size: 13px; letter-spacing: 0; }
  body.sos-account-surface .account-badge:is([data-status='active'], [data-status='paid']) { color: #236047; border-color: #aacabb; }
  body.sos-account-surface .account-badge:is([data-status='used'], [data-status='pending']) { color: #79500e; border-color: #d9c495; }
  body.sos-account-surface .account-badge:is([data-status='cancelled'], [data-status='failed']) { color: #a52f43; border-color: #d6a8b1; }
  body.sos-account-surface .account-ticket-dialog { padding: 24px; background: #f8fafd; color: #1b2c46; border-radius: 14px; }
  body.sos-account-surface .account-dialog-close { background: #e4ebf5; color: #243b5d; border-color: #b9c6d8; }
  body.sos-account-surface .account-ticket-warning { color: #79500e; font-size: 14px; }
  body.sos-account-surface .account-ticket-actions button { background: #3155ad; color: #fff; border-color: #3155ad; font-size: 15px; font-weight: 500; }
  body.sos-account-surface .account-ticket-actions button.secondary { background: #e9eef5; color: #243b5d; border-color: #b9c6d8; }

  @media (max-width: 860px) {
    body.sos-account-surface .account-shell,
    body.sos-account-surface:not(.account-is-signed-in) .account-shell { width: min(620px, calc(100% - 32px)); grid-template-columns: 1fr; margin: 24px auto 40px; }
    body.sos-account-surface .account-welcome { gap: 20px; padding: 28px; background-position: center 65%; }
    body.sos-account-surface .account-welcome .account-hero h1 { max-width: none; font-size: 34px; margin-bottom: 10px; }
    body.sos-account-surface .account-hero > p:last-child { max-width: 38ch; font-size: 15px; }
    body.sos-account-surface .account-discover { max-width: none; padding: 10px 0 0; border-top: 0; font-size: 14px; }
    body.sos-account-surface .account-content { padding: 24px; }
    body.sos-account-surface.account-is-signed-in .account-shell { width: calc(100% - 32px); }
    body.sos-account-surface .account-workspace { grid-template-columns: 1fr; }
    body.sos-account-surface .account-toolbar-actions { margin-left: 0; }
  }
  @media (max-width: 480px) {
    body.sos-account-surface .account-topbar { display: flex; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
    body.sos-account-surface .account-brand { flex: 1; }
    body.sos-account-surface .account-brand strong { font-size: 11px; }
    body.sos-account-surface .account-brand small { font-size: 11px; }
    body.sos-account-surface .account-brand img { width: 32px; height: 32px; }
    body.sos-account-surface .account-topbar .global-language-switch select { max-width: 90px; padding-inline: 8px; font-size: 13px; }
    body.sos-account-surface .account-shell,
    body.sos-account-surface:not(.account-is-signed-in) .account-shell { width: calc(100% - 24px); margin-top: 16px; border-radius: 10px; }
    body.sos-account-surface .account-welcome { padding: 24px; }
    body.sos-account-surface .account-content { padding: 24px 20px 16px; }
    body.sos-account-surface .account-auth-tabs { margin-bottom: 22px; }
    body.sos-account-surface .account-auth-tab { padding-inline: 8px; font-size: 14px; }
    body.sos-account-surface .account-social-login { gap: 8px; }
    body.sos-account-surface .account-auth-shortcuts { gap: 4px; }
    body.sos-account-surface .account-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    body.sos-account-surface .account-toolbar-actions #account-signout { grid-column: 1 / -1; }
    body.sos-account-surface.account-is-signed-in .account-welcome { padding: 24px; }
    body.sos-account-surface.account-is-signed-in .account-content { padding: 20px 0 0; }
    body.sos-account-surface .account-wallet-card { padding: 20px; }
  }
}

#account-google-button { min-width: 0; width: 100%; min-height: 44px; }
#account-google-button[inert] { opacity: .65; }
#account-google-button[hidden], .account-provider[hidden] { display: none !important; }

@media (max-width: 600px) { body.sos-account-surface .account-social-login { grid-template-columns: 1fr; } }
