html, body { margin: 0; padding: 0; height: auto; min-height: 0; background: #fff; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #172033; }
[hidden] { display: none !important; }
#app { width: 100%; }
#auth { padding: 12px 16px; }
/* Keep IMS account views and auth dialogs mounted; hide only the bus-search section. */
.widget-account #app .octobus__section.search { display: none !important; }
/* The account page exposes the existing IMS actions directly, without its sidebar toggle. */
.widget-account body { color: #23384a; font: 500 18px/1.65 "Segoe UI", Arial, sans-serif; }
.widget-account #auth { padding: 0; }
.widget-account #auth .octobus__nav { min-width: 0; }
.widget-account #auth .nav-toggle { display: none !important; }
.widget-account #auth .octobus__nav { position: static !important; inset: auto !important; display: block !important; width: 100% !important; height: auto !important; max-height: none !important; padding: 0 !important; transform: none !important; visibility: visible !important; opacity: 1 !important; overflow: visible !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
.widget-account #auth .octobus__has-login, .widget-account #auth .octobus__has-user { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; }
.widget-account #auth .octobus__has-login > li, .widget-account #auth .octobus__has-user > li { margin: 0; padding: 0; border: 0; background: transparent; opacity: 1 !important; transform: none !important; }
.widget-account #auth .octobus__menu-item { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin: 0 !important; padding: 12px 20px !important; border: 1px solid #173c60; border-radius: 6px; color: #173c60 !important; background: #fff; font: 700 16px/1.5 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.widget-account #auth .octobus__has-login > li:first-child .octobus__menu-item { border-color: #f8ce46; color: #15354f !important; background: #f8ce46; }
.widget-account #auth .octobus__menu-item:hover { background: #edf2ed; }
.widget-account #auth .octobus__has-login > li:first-child .octobus__menu-item:hover { background: #ffdb6f; }
.widget-account #auth .octobus__menu-item:focus-visible { outline: 3px solid #246ac0; outline-offset: 3px; }
.widget-account #auth .octobus__menu-item > span { color: inherit !important; }
.widget-account #auth .octobus__user-title { margin-bottom: 20px; opacity: 1 !important; transform: none !important; }
.widget-account #auth .octobus__user-title .octobus__menu-item { padding: 0 !important; border: 0; cursor: default; }
.widget-account :is(#auth, #app) .octobus__modal-card { width: min(640px, calc(100% - 24px)); border: 1px solid #d5e1e8; border-top: 3px solid #f8ce46; border-radius: 12px; overflow: hidden; }
.widget-account :is(#auth, #app) .octobus__modal-card-head { background: #112f49; border: 0; }
.widget-account :is(#auth, #app) .octobus__modal-card-title { color: #fff; font: 750 25px/1.3 Montserrat, "Segoe UI", sans-serif; }
.widget-account :is(#auth, #app) .octobus__modal-card-body { background: #fff; }
.widget-account :is(#auth, #app) .octobus__label { color: #29485f !important; font: 600 16px/1.5 "Segoe UI", Arial, sans-serif !important; }
.widget-account :is(#auth, #app) .octobus__input, .widget-account :is(#auth, #app) .octobus__select select { min-height: 48px; border-color: #b9cbd5; border-radius: 6px; color: #173b56; font: 500 16px/1.5 "Segoe UI", Arial, sans-serif; }
.widget-account :is(#auth, #app) .octobus__modal-card-foot { gap: 10px; background: #f0f4ed; border-color: #d9e2df; }
.widget-account :is(#auth, #app) .octobus__button { min-height: 46px; border-radius: 6px; font: 700 16px/1.5 "Segoe UI", Arial, sans-serif; }
.widget-account :is(#auth, #app) .octobus__button.is-primary { color: #15354f !important; border-color: #f8ce46 !important; background: #f8ce46 !important; }
.widget-account :is(#auth, #app) .octobus__button.is-primary:hover { background: #ffdb6f !important; }
/* Account authentication belongs in the page flow, without a nested modal/backdrop. */
.widget-account #auth .octobus__modal { position: static !important; inset: auto !important; flex: 0 0 100%; width: 100%; height: auto !important; max-height: none !important; margin: 0; padding: 24px 0 0; overflow: visible !important; background: transparent !important; z-index: auto; }
.widget-account #auth .octobus__modal.is-active { display: block !important; }
.widget-account #auth .octobus__modal-background { display: none !important; }
.widget-account #auth .octobus__modal-card { width: 100% !important; max-width: none !important; height: auto; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
.widget-account #auth .octobus__modal-card-head { padding: 0 0 20px; background: transparent !important; }
.widget-account #auth .octobus__modal-card-title { color: #142f4b; font-size: 22px; }
.widget-account #auth .octobus__modal-card-head .octobus__delete { display: none; }
.widget-account #auth .octobus__modal-card-body { max-height: none !important; padding: 0; overflow: visible !important; }
/* Native columns use negative gutters; the inline card has no padding to absorb them. */
.widget-account #auth .octobus__columns { margin-left: 0; margin-right: 0; }
.widget-account #auth .octobus__column { min-width: 0; padding-left: 0; padding-right: 0; }
.widget-account #auth .octobus__signin-error:not(.has-text-danger) { display: none; }
.widget-account #auth .octobus__modal-card-foot { flex-wrap: wrap; padding: 24px 0 0; border: 0; background: transparent; }
/* IMS rejects the local password-reset return URL (E_PASSWORDRESETURL). */
#auth [data-local-recovery] .octobus__columns, #auth [data-local-recovery] .octobus__modal-card-body > p, #auth [data-local-recovery] .octobus__button.is-primary { display: none !important; }
.widget-recovery-note { padding: 18px; border-left: 3px solid #d8b349; border-radius: 6px; color: #23384a; background: #f5f3e8; font: 500 16px/1.65 "Segoe UI", Arial, sans-serif; }
.widget-recovery-note p { margin: 0 0 12px; }
.widget-recovery-note p:last-child { margin-bottom: 0; }
.widget-recovery-note a { color: #173c60; font-weight: 700; text-decoration: underline; }
.widget-site-link { display: none; }
.widget-standalone .widget-site-link { display: inline-block; margin: 12px 16px; color: #183d5d; font-size: 16px; }
.widget-message { padding: 48px 24px; text-align: center; font-size: 16px; color: #65718a; }
.widget-message h2 { margin: 0 0 12px; font-size: 24px; color: #172033; }
.widget-message a { display: inline-block; margin-top: 12px; padding: 12px 20px; border-radius: 8px; background: #ffd51f; color: #172033; font-weight: 700; text-decoration: none; }
