/**
 * File: fj-learning-shell-client.css
 * 2026-09-12 — Post-Stage10 Safe Cleanup 6A v0.2.0
 * - Removed dead legacy .fj-shell__* presentation CSS after confirming no current PHP/JS references.
 * - Active Digital Bookshelf, utilities, module layout and status/card selectors remain unchanged.
 * - Runtime identifiers and /my-learning/ compatibility intentionally retained pending #7.
 *
 * 2026-09-12 — Post-Stage10 Digital Bookshelf v0.1.9
 * - My Learning outer product-mount ownership moved into this plugin.
 * - .fj-lp-grid remains one full-width lane; .fj-bookshelf-grid alone owns responsive book columns.
 * - Cover/label click target and status feedback remain unchanged.
 * Friends Japan Learning Shell Client — Stage 10B6.5A Log In CTA RC v0.2.4.9
 * Shell-owned, portable presentation layer. Scoped to .fj-shell.
 */
.fj-shell {
  --fj-shell-primary: #5EC6D6;
  --fj-shell-accent: #7DDFC3;
  --fj-shell-text: #173842;
  --fj-shell-muted: #60747a;
  --fj-shell-bg: #FAF9F7;
  --fj-shell-white: #FFFFFF;
  --fj-shell-error: #E98B8A;
  --fj-shell-radius: 22px;
  --fj-shell-shadow: 0 10px 28px rgba(94, 198, 214, 0.18);
  color: var(--fj-shell-text);
}

.fj-shell-card,
.fj-shell-status {
  background: var(--fj-shell-white);
  border: 1px solid rgba(94, 198, 214, 0.22);
  border-radius: var(--fj-shell-radius);
  box-shadow: var(--fj-shell-shadow);
}

.fj-shell-card {
  display: flex;
  min-height: 230px;
}

.fj-shell-card__body,
.fj-shell-status__body {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 24px;
  text-align: center;
}

.fj-shell-card__title {
  margin: 0 0 8px;
  color: var(--fj-shell-text);
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: center;
}

.fj-shell-card__meta {
  margin: 0 0 5px;
  color: var(--fj-shell-muted);
  font-size: 0.86rem;
}

.fj-shell-card__availability {
  margin: 0 0 16px;
  color: var(--fj-shell-muted);
  font-size: 0.92rem;
}

.fj-shell-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 11px 22px;
  border: 2px solid var(--fj-shell-primary);
  border-radius: 999px;
  background: var(--fj-shell-white);
  color: var(--fj-shell-primary);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.fj-shell-button:not(:disabled):hover,
.fj-shell-button:not(:disabled):active {
  border-color: var(--fj-shell-primary);
  background: var(--fj-shell-primary);
  color: var(--fj-shell-white);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(94, 198, 214, 0.30);
}

/* Keyboard-only focus remains visible without changing pointer click/active behavior. */
.fj-shell-button:not(:disabled):focus-visible {
  border-color: var(--fj-shell-primary);
  background: var(--fj-shell-primary);
  color: var(--fj-shell-white);
  outline: 3px solid rgba(94, 198, 214, 0.38);
  outline-offset: 2px;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(94, 198, 214, 0.30);
}

.fj-shell-button--toolbar {
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 6px 10px;
  border-width: 2px;
  font-size: 1rem;
  line-height: 1;
}

.fj-shell-button:disabled {
  border-color: rgba(94, 198, 214, 0.48);
  background: rgba(94, 198, 214, 0.16);
  color: #58757c;
  cursor: not-allowed;
  box-shadow: none;
}

.fj-shell-status {
  grid-column: 1 / -1;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.fj-shell-status__message {
  margin: 0 0 16px;
  color: var(--fj-shell-text);
}

.fj-shell-status__message:last-child {
  margin-bottom: 0;
}

.fj-shell-status--error {
  border-color: rgba(233, 139, 138, 0.38);
}

.fj-shell-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(125, 223, 195, 0.18);
  color: var(--fj-shell-text);
  text-align: center;
}



/* Stage 10B6.4B2 — verified Account context. */
.fj-shell-account {
  width: min(100%, 420px);
  margin: 0 0 12px auto;
  position: relative;
  z-index: 6;
}

.fj-shell-account__summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  float: right;
  padding: 6px 12px;
  border: 2px solid var(--fj-shell-primary);
  border-radius: 999px;
  background: var(--fj-shell-white);
  color: var(--fj-shell-primary);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.fj-shell-account__summary::-webkit-details-marker {
  display: none;
}

.fj-shell-account[open] .fj-shell-account__summary {
  background: var(--fj-shell-primary);
  color: var(--fj-shell-white);
}

.fj-shell-account__panel {
  clear: both;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(94, 198, 214, 0.42);
  border-radius: 14px;
  background: var(--fj-shell-white);
  box-shadow: 0 8px 24px rgba(39, 78, 86, 0.12);
  text-align: left;
}

/* Stage 10B6.4B3.2 — visible open-state gap.
 * `top` is intentional here because the Account summary is floated; it avoids
 * float/clear margin behavior collapsing the visual gap. Closed state is unchanged.
 */
.fj-shell-account[open] .fj-shell-account__panel {
  margin-top: 12px;
  position: relative;
  top: 14px;
  margin-bottom: 14px;
}

.fj-shell-account__status {
  font-weight: 700;
  color: var(--fj-shell-text);
}

.fj-shell-account__email {
  margin-top: 4px;
  color: var(--fj-shell-muted);
  overflow-wrap: anywhere;
}


.fj-shell-account__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 12px;
}

.fj-shell-account__action {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 2px solid var(--fj-shell-primary);
  border-radius: 999px;
  background: var(--fj-shell-white);
  color: var(--fj-shell-primary);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.fj-shell-account__action:hover,
.fj-shell-account__action:focus-visible,
.fj-shell-account__action:active {
  background: var(--fj-shell-primary);
  color: var(--fj-shell-white);
  text-decoration: none;
}

.fj-shell-account__action:disabled {
  opacity: .65;
  cursor: wait;
}



/*
 * Stage 10 Shell surface cleanup:
 * /app/ is an application surface, so the normal website footer is hidden here.
 * This does NOT hide Shell content such as Facebook / LINE / Instagram icons.
 */
body.fj-learning-shell-app-surface > footer,
body.fj-learning-shell-app-surface #colophon,
body.fj-learning-shell-app-surface .site-footer,
body.fj-learning-shell-app-surface .site-footer-wrap,
body.fj-learning-shell-app-surface .footer-wrapper {
  display: none !important;
}

@media (max-width: 767px) {
  .fj-shell-account {
    width: 100%;
    margin-bottom: 8px;
  }

  .fj-shell-account__summary {
    min-height: 34px;
    padding: 4px 10px;
    font-size: .9rem;
  }
}


/* Stage 10B6.5A — unauthenticated My Learning Log In CTA. */
.fj-shell-login-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 6px 18px;
  border: 2px solid var(--fj-shell-primary);
  border-radius: 999px;
  background: var(--fj-shell-white);
  color: var(--fj-shell-primary);
  font-weight: 700;
  text-decoration: none;
}

.fj-shell-login-cta:hover,
.fj-shell-login-cta:focus-visible,
.fj-shell-login-cta:active {
  background: var(--fj-shell-primary);
  color: var(--fj-shell-white);
  text-decoration: none;
}

/*
 * Stage 10B5 trusted-module viewport owner.
 * The discovery mount remains a responsive grid, but a launched module is one
 * Shell-owned full-width grid item.  This prevents the module iframe from
 * falling into only one grid column on landscape/tablet widths.
 * Module-internal responsive/CSS remains untouched.
 */
.fj-shell-module {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.fj-shell-module > .fj-shell-button--toolbar {
  align-self: flex-start;
}

.fj-shell-module-status {
  width: 100%;
  margin: 0;
  color: var(--fj-shell-muted);
  text-align: center;
}

.fj-shell-module-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
}


/*
 * Stage 10B5.1 /app/ module-active viewport ownership.
 * Reuses the QA-passed Web Embed sizing principle without reusing .fj-app-* selectors:
 * one viewport owner -> flex column -> module flexes into remaining space -> iframe height:100%.
 * The Shell root, not the iframe, owns 100dvh. No fixed pixel iframe height is introduced.
 */
body.fj-shell-module-active {
  overflow: hidden;
}

.fj-shell.fj-shell--module-active {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--fj-shell-bg);
  box-sizing: border-box;
}

.fj-shell.fj-shell--module-active > .fj-section {
  display: flex;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.fj-shell.fj-shell--module-active > .fj-section > .fj-wrap {
  display: flex;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.fj-shell.fj-shell--module-active > .fj-section > .fj-wrap > h1,
.fj-shell.fj-shell--module-active > .fj-section > .fj-wrap > p {
  display: none;
}

.fj-shell.fj-shell--module-active .fj-shell-account {
  display: none;
}

/*
 * Stage 10 Final UI Cleanup:
 * website translation widgets are not learning controls and must not overlay
 * module Study/Start controls while the trusted module occupies the PWA viewport.
 * Scope is module-active only; normal website translation UI is unchanged.
 */
body.fj-shell-module-active .gt_float_switcher,
body.fj-shell-module-active .gt_switcher_wrapper,
body.fj-shell-module-active #gtranslate_wrapper,
body.fj-shell-module-active .gtranslate_wrapper {
  display: none !important;
}


/*
 * 2026-09-12 — Post-Stage10 My Learning layout ownership v0.1.9
 * The outer product mount is now a single full-width lane.
 * Responsive book columns are owned only by .fj-bookshelf-grid below.
 * This intentionally supersedes legacy WordPress Additional CSS
 * .fj-lp-grid 2/3-column product-card rules without using !important.
 */
.fj-shell.fj-my-learning-page .fj-lp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/*
 * 2026-09-12 — Post-Stage10 Digital Bookshelf v0.1.6
 * Adaptive Shell-owned learning bookshelf.
 */
.fj-shell .fj-bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 22px 18px;
  width: 100%;
  margin-top: 22px;
  align-items: start;
}

.fj-shell .fj-bookshelf-item {
  min-width: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fj-shell .fj-bookshelf-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.fj-shell .fj-bookshelf-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.fj-shell .fj-bookshelf-trigger:focus-visible {
  outline: 3px solid var(--fj-shell-primary);
  outline-offset: 4px;
  border-radius: 12px;
}

.fj-shell .fj-bookshelf-cover {
  display: flex;
  width: min(100%, 180px);
  aspect-ratio: 3 / 4;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(94, 198, 214, 0.28);
  border-radius: 10px;
  background: var(--fj-shell-white);
  box-shadow: 0 8px 22px rgba(23, 56, 66, 0.12);
}

.fj-shell .fj-bookshelf-cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--fj-shell-white);
}

.fj-shell .fj-bookshelf-cover__fallback {
  padding: 18px 12px;
  color: var(--fj-shell-text);
  font-weight: 700;
  line-height: 1.3;
}

.fj-shell .fj-bookshelf-item__title {
  display: block;
  width: 100%;
  max-width: 190px;
  min-height: 2.6em;
  margin: 10px auto 0;
  color: var(--fj-shell-text);
  font-size: clamp(.86rem, 1.7vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.fj-shell .fj-bookshelf-item__availability {
  margin: 8px 0 0;
  color: var(--fj-shell-muted);
  font-size: .82rem;
  line-height: 1.3;
}

.fj-shell .fj-bookshelf-action-proxy {
  display: none !important;
}

.fj-shell .fj-bookshelf-item__status {
  min-height: 2.5em;
  margin: 8px auto 0;
  max-width: 200px;
  color: var(--fj-shell-muted);
  font-size: .78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .fj-shell .fj-bookshelf-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
    gap: 18px 12px;
    margin-top: 18px;
  }

  .fj-shell .fj-bookshelf-cover {
    width: min(100%, 160px);
  }

  .fj-shell .fj-bookshelf-item__title {
    font-size: .82rem;
  }

  .fj-shell .fj-bookshelf-item__status {
    font-size: .74rem;
  }
}

.fj-shell.fj-shell--module-active .fj-lp-grid {
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.fj-shell.fj-shell--module-active .fj-shell-module {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  gap: 4px;
  padding: 4px 6px 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.fj-shell.fj-shell--module-active .fj-shell-module > .fj-shell-button--toolbar {
  position: static;
  flex: 0 0 auto;
  align-self: flex-start;
  z-index: 8;
  min-width: 34px;
  min-height: 34px;
  margin: 0 0 2px 2px;
  padding: 4px 8px;
  font-size: .95rem;
  line-height: 1;
}

.fj-shell.fj-shell--module-active .fj-shell-module-status {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  line-height: 1.25;
}

.fj-shell.fj-shell--module-active .fj-shell-module-status--confirmed {
  display: none;
}

.fj-shell.fj-shell--module-active .fj-shell-module-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .fj-shell.fj-shell--module-active .fj-shell-module {
    gap: 3px;
    padding: 3px 4px 4px;
  }
}

@media (orientation: landscape) and (max-height: 900px) {
  .fj-shell.fj-shell--module-active .fj-shell-module {
    position: relative;
    gap: 1px;
    padding: 1px 3px 2px;
  }

  /*
   * Stage 10B5.1.2:
   * Keep Back to My Learning as Shell-owned navigation, but remove it from
   * normal flex flow in short landscape viewports so the module frame receives
   * the vertical space. The button sits in the left outer gutter used by the
   * centered embedded learning UI; module-internal CSS is unchanged.
   */
  .fj-shell.fj-shell--module-active .fj-shell-module-status:not(.fj-shell-module-status--confirmed) {
    margin: 0;
    font-size: .82rem;
    line-height: 1.1;
  }
}

@media (max-width: 640px) {
  .fj-shell-card {
    min-height: 210px;
  }

  .fj-shell-card__body,
  .fj-shell-status__body {
    padding: 22px 18px;
  }
}

/*
 * Post-Stage10 Utility UX — 2026-09-10
 * Shell-owned Help + Install controls on /app/. No learning-module ownership.
 */
.fj-shell .fj-shell-utility {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.fj-shell .fj-shell-utility__item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
  color: var(--fj-shell-text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fj-shell .fj-shell-utility__icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(23, 56, 66, 0.14));
}

.fj-shell .fj-shell-utility__label {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fj-shell-text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.fj-shell .fj-shell-utility__item:focus-visible {
  outline: 2px solid var(--fj-shell-primary);
  outline-offset: 4px;
  border-radius: 12px;
}

.fj-shell .fj-shell-install-guide {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(270px, calc(100vw - 28px));
  padding: 14px 36px 14px 14px;
  border: 1px solid rgba(94, 198, 214, 0.42);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--fj-shell-shadow);
  color: var(--fj-shell-text);
  font-size: 0.84rem;
  line-height: 1.4;
}

.fj-shell .fj-shell-install-guide strong,
.fj-shell .fj-shell-install-guide span {
  display: block;
}

.fj-shell .fj-shell-install-guide span {
  margin-top: 4px;
}

.fj-shell .fj-shell-install-guide__close {
  position: absolute;
  top: 5px;
  right: 7px;
  border: 0;
  background: transparent;
  color: var(--fj-shell-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.fj-shell.fj-shell--module-active .fj-shell-utility {
  display: none;
}

@media (max-width: 640px) {
  .fj-shell .fj-shell-utility {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 9px;
  }

  .fj-shell .fj-shell-utility__icon {
    width: 44px;
    height: 44px;
  }

  .fj-shell .fj-shell-utility__item {
    min-width: 48px;
  }
}


/* Post-Stage10 Utility UX v0.1.2 — hidden controls must leave flex layout. */
.fj-shell .fj-shell-utility [hidden] {
  display: none !important;
}

.fj-shell .fj-shell-utility-toast {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: max-content;
  max-width: min(240px, calc(100vw - 28px));
  padding: 9px 12px;
  border: 1px solid rgba(94, 198, 214, 0.42);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--fj-shell-shadow);
  color: var(--fj-shell-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}


/* Post-Stage10 Manage Devices Back v0.1.4.5
 * CLEAN DOM placement fix from UtilityUX v0.1.3:
 * Back is a sibling of the existing Stage 10 Account <details>, so closing Account
 * no longer hides Back. Existing Account CSS/layout remains unchanged.
 */
.fj-shell-account-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 6;
}

.fj-shell-account-row .fj-shell-account {
  margin-bottom: 0;
}

.fj-shell-manage-back {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 2px solid var(--fj-shell-primary);
  border-radius: 999px;
  background: var(--fj-shell-white);
  color: var(--fj-shell-primary);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.fj-shell-manage-back[hidden] {
  display: none;
}

.fj-shell-manage-back:hover,
.fj-shell-manage-back:focus-visible,
.fj-shell-manage-back:active {
  background: var(--fj-shell-primary);
  color: var(--fj-shell-white);
}

.fj-shell-manage-back:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 767px) {
  .fj-shell-account-row {
    gap: 8px;
    margin-bottom: 8px;
  }

  .fj-shell-manage-back {
    min-height: 34px;
    padding: 4px 10px;
    font-size: .9rem;
  }
}


/*
 * 2026-09-15 — Free Learning PUBLIC UX v0.3.5.2
 * Anonymous sign-in guidance shown above the PUBLIC bookshelf only.
 */
.fj-shell .fj-shell-public-signin {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
  text-align: center;
}

.fj-shell .fj-shell-public-signin__action {
  margin: 0 0 4px;
}

.fj-shell .fj-shell-public-signin__primary {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.fj-shell .fj-shell-public-signin__secondary {
  margin: 0;
  color: var(--fj-shell-muted);
  font-size: .9rem;
  font-style: italic;
  line-height: 1.45;
}

/*
 * Phase A1/A2 — 2026-09-21
 * A1: concise anonymous entry actions (Member Sign In / Try Free).
 * A2: Shell-owned native-style footer navigation on /app/.
 * The footer is hidden while a trusted learning module owns the viewport so the
 * frozen module UI is not overlaid. Install remains a separate Shell utility.
 */
.fj-shell .fj-shell-public-signin__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fj-shell .fj-shell-public-signin__action {
  margin: 0;
}

/* Phase A1 closeout: prevent theme/link styles from underlining Member Sign In. */
.fj-shell .fj-shell-public-signin__actions .fj-shell-login-cta,
.fj-shell .fj-shell-public-signin__actions .fj-shell-login-cta:hover,
.fj-shell .fj-shell-public-signin__actions .fj-shell-login-cta:focus-visible,
.fj-shell .fj-shell-public-signin__actions .fj-shell-login-cta:active,
.fj-shell .fj-shell-public-signin__actions .fj-shell-login-cta:visited {
  text-decoration: none !important;
}

.fj-shell .fj-shell-public-signin__try-free {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border: 2px solid #E98B8A;
  border-radius: 999px;
  background: var(--fj-shell-white);
  color: #D96F70;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.fj-shell .fj-shell-public-signin__try-free:hover,
.fj-shell .fj-shell-public-signin__try-free:focus-visible,
.fj-shell .fj-shell-public-signin__try-free:active {
  background: #E98B8A;
  color: var(--fj-shell-white);
  transform: translateY(-1px);
}

.fj-shell .fj-shell-footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 78;
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  width: 100%;
  min-height: 62px;
  padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(118px, calc(env(safe-area-inset-left) + 10px));
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -1px 8px rgba(23, 56, 66, .08);
}

.fj-shell .fj-shell-footer-nav__item {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  padding: 3px 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #111;
  font: inherit;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fj-shell .fj-shell-footer-nav__item:hover,
.fj-shell .fj-shell-footer-nav__item:focus-visible,
.fj-shell .fj-shell-footer-nav__item:active,
.fj-shell .fj-shell-footer-nav__item.is-active {
  color: #111;
  text-decoration: none !important;
}

.fj-shell .fj-shell-footer-nav__item:focus-visible {
  outline: 2px solid rgba(94, 198, 214, .5);
  outline-offset: 1px;
  border-radius: 8px;
}

.fj-shell .fj-shell-footer-nav__icon {
  display: block;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.fj-shell .fj-shell-footer-nav__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fj-shell .fj-shell-footer-nav__label {
  color: #111;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
}

/* Keep page content clear of the fixed app navigation. */
.fj-shell:not(.fj-shell--module-active) > .fj-section {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

/* Preserve the frozen trusted-module viewport: no footer overlay during Study. */
.fj-shell.fj-shell--module-active .fj-shell-footer-nav {
  display: none;
}

/* Install remains a Shell utility above the bottom navigation. */
.fj-shell .fj-shell-utility {
  bottom: calc(74px + env(safe-area-inset-bottom));
}

@media (min-width: 760px) {
  .fj-shell .fj-shell-footer-nav {
    left: 50%;
    right: auto;
    width: min(620px, calc(100vw - 24px));
    padding-left: 118px;
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .fj-shell .fj-shell-footer-nav {
    padding-left: 102px;
  }
  .fj-shell .fj-shell-footer-nav__label {
    font-size: .64rem;
  }
}

