/* The header persists across account, recovery and signed-in views. */
html body { display: flex; flex-direction: column; }
body > #root { min-height: 0; height: auto; flex: 1; }
body > .liffro-site-bar {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; background: #18171d; color: #f7f4f7; border-bottom: 1px solid #4b4854;
  font-family: system-ui, -apple-system, sans-serif;
}
.liffro-site-bar a {
  display: inline-flex; align-items: center; gap: 14px; min-height: 46px;
  padding: 4px 18px; color: #e2dde6; text-decoration: none; font-size: 14px;
}
.liffro-site-bar a:focus-visible { outline: 3px solid #ff91c6; outline-offset: -3px; }
.liffro-site-bar a:hover span { text-decoration: underline; }
.liffro-site-bar img { width: 68px; height: auto; }
.liffro-site-bar .liffro-storage-link { padding-inline: 12px; }

/* Presentation layer for the existing v9 account export. The third marker identifies the journey dashboard. */
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) {
  --account-text: #f6f3f7; --account-muted: #c8c2cd; --account-border: #57505f;
  color-scheme: dark; background: #17161c;
}
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) .r-1naut4x { display: none; }
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) .r-1md9kam { border-color: #48434e; }
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) :is(.r-1ozc0zf,.r-4rdmcp,.r-a8u7od) { color: var(--account-text); }
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) :is(.r-1qymnu,.r-1vpxpez,.r-938fje,.r-1t9j4cd,.r-wfbtbi,.r-l4k0lv) { color: var(--account-muted); }
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) .r-rkd5j5 { background: #2a262f; }
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) .r-1ybbde9 { color: #eee9f1; }
#root .r-1mkv55d .r-14lw9ot { background: #232128; border-color: #554e5c; border-radius: 20px; }
#root .r-1mkv55d input.r-6taxm2 {
  color: #f6f3f7; background: #19181d; border-color: #78717e;
  border-radius: 10px; font-size: max(16px,1rem); min-height: 44px;
}
#root .r-1mkv55d input.r-6taxm2::placeholder { color: #aea7b5; opacity: 1; }
#root .r-1mkv55d button { min-height: 44px; border-radius: 12px; }
#root .r-1mkv55d button.r-edikoi { background: #35313b; }
#root .r-1mkv55d button.r-edikoi > div { color: #f4eff7 !important; }
#root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) :is(button,input,a):focus-visible { outline: 3px solid #ffb9da; outline-offset: 2px; }
@media (max-width: 680px) {
  #root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) .r-1kihuf0 { gap: 12px; padding: 12px 16px 22px; }
  #root .r-agouwx:has(.r-1mkv55d, .r-14lw9ot.r-1i71y14, .r-tqlgve) .r-1pnwn9g { padding-bottom: 6px; min-height: 0; }
  #root .r-1mkv55d:has(input[type=password]) > .r-1ssbvtb:not(:has(a,button,input)) { display: none; }
  #root .r-1mkv55d .r-14lw9ot { padding: 16px; min-width: 0; }
}
@media (forced-colors: active) {
  #root .r-1mkv55d button { border: 1px solid ButtonText; }
}
@media (max-width: 680px) {
  .liffro-site-bar a { box-sizing: border-box; gap: 7px; padding: 2px 8px; }
  .liffro-site-bar img { width: 52px; }
  .liffro-site-bar .liffro-storage-link { padding: 2px 8px; }
  #root .r-1mkv55d .r-14lw9ot { gap: 9px; }
}

/* The versioned account bundle also reuses this form card for email
   confirmation, recovery and enrolment. The selector excludes signed-in pages. */
#root .r-agouwx:has(.r-1naut4x) .r-14lw9ot.r-1i71y14 {
  background: #232128; border: 1px solid #57505f; border-radius: 18px;
}
#root .r-14lw9ot.r-1i71y14 input.r-6taxm2 {
  color: #f6f3f7; background: #19181d; border-color: #78717e;
  border-radius: 10px; font-size: max(16px,1rem); min-height: 44px;
}
#root .r-14lw9ot.r-1i71y14 input::placeholder { color: #aea7b5; opacity: 1; }
#root .r-14lw9ot.r-1i71y14 :is(button,[role=radio]) {
  min-height: 44px; border: 1px solid #706878; border-radius: 12px;
  background: #35313b !important;
}
#root .r-14lw9ot.r-1i71y14 :is(button,[role=radio]) > div { color: #f4eff7 !important; }
#root .r-14lw9ot.r-1i71y14 [role=radio][aria-checked=true] {
  background: #44344c !important; border: 2px solid #dbadd4;
}
#root .r-14lw9ot.r-1i71y14 :is([role=alert],.r-1lph0z5) { color: #ffb6a9; }


/* Personal account history. Keep statuses, sums, role selection and all
   on-screen data under the control of the existing account application. */
#root .r-agouwx:has(.r-tqlgve) .r-14lw9ot.r-d23pfw {
  min-width: 0;
  background-color: #25222a;
  border: 1px solid #57505f;
  border-radius: 16px;
}
#root .r-agouwx:has(.r-tqlgve) .r-nssqx6 { color: var(--account-text); }
#root .r-agouwx:has(.r-tqlgve) button.r-edikoi {
  background: #322e38;
  border: 1px solid #686070;
  border-radius: 12px;
  min-height: 44px;
}
#root .r-agouwx:has(.r-tqlgve) button.r-edikoi > div { color: #f4eff7 !important; }
#root .r-agouwx:has(.r-tqlgve) button.r-edikoi:hover { background: #423b49; }
@media (max-width: 680px) {
  #root .r-agouwx:has(.r-tqlgve) .r-14lw9ot.r-d23pfw { padding: 14px; }
  #root .r-agouwx:has(.r-tqlgve) .r-tqlgve { font-size: 28px; }
}
