/* Story Garden narrow-browser layout.
   Loaded last so this is the single authority for phone-width navigation and
   the Grow your story garden stack. */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip !important;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  .sn-topbar.reveal-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .sn-topbar {
    display: flex !important;
    min-height: 60px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 4px 8px !important;
  }

  .sn-topbar .sn-brand-block {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-self: start !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sn-topbar .sn-brand-mark {
    width: clamp(44px, 11vw, 54px) !important;
    height: clamp(44px, 11vw, 54px) !important;
    display: grid !important;
  }

  .sn-topbar .sn-brand-copy {
    display: block !important;
  }

  .sn-topbar .sn-brand-copy h1 {
    display: inline-flex !important;
    align-items: flex-end !important;
    font-size: clamp(1.55rem, 5.8vw, 2.1rem) !important;
  }

  .sn-topbar .sn-brand-version {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .sn-controls.sn-fun-buttons.sn-icon-only-navigation {
    position: fixed !important;
    z-index: 90 !important;
    inset:
      auto
      0
      0
      0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 68px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding:
      7px
      max(10px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left)) !important;
    border: 0 !important;
    border-top: 1px solid rgba(68, 130, 173, .24) !important;
    border-radius: 18px 18px 0 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -8px 24px rgba(20, 61, 91, .16) !important;
    backdrop-filter: blur(14px) saturate(1.14);
    -webkit-backdrop-filter: blur(14px) saturate(1.14);
    transform: none !important;
  }

  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #bookshelfButton,
  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #wardrobeButton,
  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #favoritesButton,
  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #settingsButton {
    position: relative !important;
    width: 100% !important;
    max-width: 112px !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    justify-self: center !important;
    padding: 0 !important;
    border-radius: 14px !important;
    touch-action: manipulation;
  }

  .sn-topbar > .sn-public-info-menu {
    position: relative !important;
    z-index: 96 !important;
    display: block !important;
    flex: 0 0 auto;
    margin-left: auto !important;
  }

  .sn-topbar > .sn-public-info-menu > .sn-public-info-button {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(57, 130, 89, .22) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #176c46 !important;
    box-shadow: 0 5px 14px rgba(32, 92, 65, .13) !important;
  }

  .sn-topbar .sn-public-info-icon {
    width: auto !important;
    height: auto !important;
    display: block !important;
    color: inherit;
    font-family: ui-rounded, system-ui, sans-serif;
    font-size: 1.75rem !important;
    font-weight: 900;
    line-height: 1;
    transform: none !important;
    filter: none !important;
  }

  .sn-topbar > .sn-public-info-menu .sn-public-info-links {
    position: fixed !important;
    z-index: 97 !important;
    top: max(68px, calc(env(safe-area-inset-top) + 60px)) !important;
    right: max(9px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    width: min(340px, calc(100vw - 18px)) !important;
    max-height: calc(100dvh - 90px) !important;
    display: block !important;
    padding: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border: 2px solid rgba(67, 137, 99, .2) !important;
    border-radius: 22px 12px 22px 18px !important;
    background: linear-gradient(165deg, rgba(255, 254, 246, .995), rgba(246, 253, 238, .995)) !important;
    box-shadow: 0 20px 44px rgba(31, 63, 81, .24) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-6px) scale(.97) !important;
    transform-origin: right top;
    transition: opacity .17s ease, visibility .17s ease, transform .2s ease;
  }

  .sn-topbar > .sn-public-info-menu.is-open .sn-public-info-links {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .sn-topbar .sn-public-info-panel-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    padding: 3px 3px 10px;
    border-bottom: 1px solid rgba(70, 137, 97, .18);
  }

  .sn-topbar .sn-public-info-list {
    display: grid;
    gap: 6px;
  }

  .sn-topbar .sn-public-info-card {
    appearance: none;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    color: #234b38;
    text-align: left;
    text-decoration: none;
  }

  .sn-topbar .sn-public-info-card-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
  }

  .sn-topbar .sn-public-info-card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sn-topbar .sn-public-info-card-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .sn-topbar .sn-public-info-card-copy strong,
  .sn-topbar .sn-public-info-card-copy small {
    display: block;
    white-space: normal;
  }

  .sn-topbar .sn-public-info-card-copy small {
    color: #66796e;
    font-size: .68rem;
    line-height: 1.2;
  }

  .sn-topbar .sn-public-info-settings-card {
    display: none !important;
  }

  .sn-public-footer {
    display: none !important;
  }

  .sn-main-stage-v3,
  .pp-main-stage.sn-main-stage-v3,
  .sn-play-layout-v3,
  .pp-play-layout.sn-play-layout-v3,
  .sn-right-column,
  .sn-right-column > .sn-companion-panel,
  .sn-right-column > .sn-practice-card-v3 {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .sn-play-layout-v3,
  .pp-play-layout.sn-play-layout-v3 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sn-right-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .sn-right-column > .sn-practice-card-v3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-inline: clamp(10px, 3.4vw, 14px) !important;
    overflow: hidden !important;
  }

  .sn-practice-card-v3 > .sn-tools-title,
  .sn-practice-card-v3 > .sn-practice-notices,
  #storyQuestCard.sn-story-quest-card,
  #storyQuestCard > .sn-garden-journey,
  #storyQuestCard .sn-story-garden-progress {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    align-self: stretch !important;
  }

  #storyQuestCard.sn-story-quest-card {
    container-name: story-garden-card;
    container-type: inline-size;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    height: auto !important;
    overflow: hidden !important;
  }

  #storyQuestCard > .sn-garden-journey {
    height: auto !important;
    min-height: 0 !important;
  }

  #storyQuestCard .sn-story-garden-progress {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "meta"
      "plant"
      "milestones"
      "reward"
      "cue" !important;
    grid-template-rows: auto minmax(180px, 58cqi) auto auto auto !important;
    gap: clamp(5px, 2cqi, 8px) !important;
    padding: clamp(8px, 3cqi, 12px) !important;
    overflow: hidden !important;
  }

  #storyQuestCard .sn-story-growth {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: clamp(180px, 58cqi, 250px) !important;
    transform: none !important;
  }

  #storyQuestCard .sn-story-growth-image {
    width: clamp(78px, 34cqi, 138px) !important;
    max-width: 42% !important;
  }

  #storyQuestCard .sn-story-garden-meta {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px 8px !important;
  }

  #storyQuestCard .sn-story-garden-meta strong {
    min-width: 0;
    font-size: clamp(.86rem, 4.3cqi, 1rem) !important;
    overflow-wrap: anywhere;
  }

  #storyQuestCard .sn-story-garden-meta span {
    font-size: clamp(.6rem, 3cqi, .7rem) !important;
  }

  #storyQuestCard .sn-story-garden-milestones {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: clamp(3px, 1.8cqi, 7px) !important;
  }

  #storyQuestCard .sn-story-garden-milestone {
    width: clamp(26px, 10cqi, 36px) !important;
    height: clamp(26px, 10cqi, 36px) !important;
    font-size: clamp(1rem, 5cqi, 1.45rem) !important;
  }

  #storyQuestCard .sn-story-garden-patch-flower {
    width: clamp(32px, 13cqi, 48px) !important;
    font-size: clamp(1.35rem, 7cqi, 2rem) !important;
  }

  #storyQuestCard .sn-story-garden-patch-friend {
    width: clamp(50px, 19cqi, 72px) !important;
    font-size: clamp(2rem, 9cqi, 3.1rem) !important;
  }

  #storyQuestCard .sn-story-garden-next-reward,
  #storyQuestCard .sn-story-garden-open-cue {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  html[data-sn-theme="dark"] .sn-controls.sn-fun-buttons.sn-icon-only-navigation {
    border-top-color: rgba(132, 177, 216, .3) !important;
    background: rgba(18, 39, 67, .985) !important;
    box-shadow: 0 -8px 24px rgba(2, 9, 24, .42) !important;
  }

  html[data-sn-theme="dark"] .sn-topbar > .sn-public-info-menu > .sn-public-info-button {
    border-color: rgba(145, 212, 170, .2) !important;
    background: rgba(27, 51, 43, .96) !important;
    color: #b8ebc9 !important;
  }

  html[data-sn-theme="dark"] .sn-topbar > .sn-public-info-menu .sn-public-info-links {
    border-color: rgba(153, 212, 178, .24) !important;
    background: linear-gradient(165deg, rgba(38, 49, 55, .995), rgba(28, 43, 39, .995)) !important;
  }
}

/* Keep Sprouty's word coach above the fixed compact navigation dock. */
@media (max-width: 640px) {
  .sn-pronunciation-coach {
    top: auto !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 98px - env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Portrait phones use the Reading Buddy portrait as the fourth dock action.
   The name and grade remain available through Reading Settings, while the
   interactive Hero stage gets the full panel width. */
@media (max-width: 620px) and (orientation: portrait) {
  .sn-companion-practice-heading {
    display: none !important;
  }

  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #settingsButton {
    display: none !important;
  }

  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #companionHeroProfileButton {
    appearance: none;
    -webkit-appearance: none;
    position: relative !important;
    width: 100% !important;
    max-width: 112px !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    display: grid !important;
    place-items: center;
    justify-self: center;
    margin: 0 !important;
    padding: 4px !important;
    overflow: hidden;
    border: 2px solid rgba(125, 176, 255, .42) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(236,244,255,.98)) !important;
    box-shadow: 0 4px 10px rgba(32, 88, 163, .12) !important;
    cursor: pointer;
    touch-action: manipulation;
  }

  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #companionHeroProfileButton:focus-visible {
    outline: 3px solid rgba(14, 165, 233, .5);
    outline-offset: 1px;
  }

  .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #companionHeroProfileButton img {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 11px;
    pointer-events: none;
  }

  .sn-topbar .sn-public-info-settings-card {
    display: grid !important;
  }

  html[data-sn-theme="dark"] .sn-controls.sn-fun-buttons.sn-icon-only-navigation > #companionHeroProfileButton {
    border-color: rgba(126, 178, 255, .32) !important;
    background: linear-gradient(180deg, rgba(31,45,76,.98), rgba(23,36,63,.98)) !important;
    box-shadow: 0 5px 12px rgba(0,0,0,.24) !important;
  }
}

/* v1.6 ? flat Bookshelf and Coin controls at every top-navigation breakpoint. */
.sn-controls.sn-fun-buttons.sn-icon-only-navigation > #bookshelfButton.sn-bookshelf-count-button,
.sn-controls.sn-fun-buttons.sn-icon-only-navigation > #wardrobeButton.sn-coin-shop-balance {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sn-controls.sn-fun-buttons.sn-icon-only-navigation > #bookshelfButton.sn-bookshelf-count-button:hover,
.sn-controls.sn-fun-buttons.sn-icon-only-navigation > #bookshelfButton.sn-bookshelf-count-button:focus-visible,
.sn-controls.sn-fun-buttons.sn-icon-only-navigation > #wardrobeButton.sn-coin-shop-balance:hover,
.sn-controls.sn-fun-buttons.sn-icon-only-navigation > #wardrobeButton.sn-coin-shop-balance:focus-visible {
  border: 0 !important;
  background: rgba(56, 128, 176, .08) !important;
  box-shadow: none !important;
}

/* v1.7 — keep the portrait phone Hero panel matched to its draggable stage. */
@media (orientation: portrait) and (max-width: 699px) {
  .sn-right-column > .sn-companion-panel {
    grid-template-rows: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
}

/* v1.11 — keep phone and tablet portrait focused on the story and Reading Buddy. */
@media (orientation: portrait) and (max-width: 1100px) {
  .sn-play-layout-v3,
  .pp-play-layout.sn-play-layout-v3 {
    row-gap: clamp(20px, 3vw, 32px) !important;
  }

  .sn-right-column > .sn-practice-card-v3 {
    display: none !important;
  }
}

/* =========================================================
   v1.8 — unified information menu across every viewport
   The same top-right menu replaces the standalone settings
   cog and the duplicate public footer on phone, tablet, and
   desktop layouts.
   ========================================================= */
#settingsButton.sn-settings-control,
.sn-controls.sn-fun-buttons.sn-icon-only-navigation > #settingsButton.sn-settings-control {
  display: none !important;
}

.sn-public-footer {
  display: none !important;
}

.sn-public-info-menu {
  position: relative;
  z-index: 96;
  display: block !important;
  flex: 0 0 auto;
}

.sn-public-info-menu > .sn-public-info-button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(57, 130, 89, .22) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: #176c46 !important;
  box-shadow: 0 5px 14px rgba(32, 92, 65, .13) !important;
  cursor: pointer;
}

.sn-public-info-menu > .sn-public-info-button::after {
  content: none !important;
}

.sn-public-info-menu > .sn-public-info-button:hover,
.sn-public-info-menu > .sn-public-info-button:focus-visible,
.sn-public-info-menu.is-open > .sn-public-info-button {
  border-color: rgba(45, 123, 80, .34) !important;
  background: #f2faed !important;
  color: #125d3c !important;
  box-shadow: 0 7px 17px rgba(32, 92, 65, .17) !important;
  outline: 3px solid rgba(63, 145, 94, .16);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.sn-public-info-menu .sn-public-info-icon {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  display: block !important;
  color: inherit;
  font-family: ui-rounded, system-ui, sans-serif;
  font-size: 1.75rem !important;
  font-weight: 900;
  line-height: 1;
  transform: none !important;
  filter: none !important;
}

.sn-public-info-menu .sn-public-info-glyph {
  width: 30px;
  height: 30px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.sn-public-info-menu .sn-public-info-glyph .sn-info-glyph-dot {
  fill: currentColor;
  stroke: none;
}

.sn-public-info-menu .sn-public-info-links {
  position: absolute !important;
  z-index: 97 !important;
  top: calc(100% + 9px) !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: min(320px, calc(100vw - 18px)) !important;
  min-width: min(288px, calc(100vw - 18px));
  max-height: min(560px, calc(100dvh - 90px)) !important;
  display: block !important;
  padding: 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border: 2px solid rgba(67, 137, 99, .2) !important;
  border-radius: 24px 12px 24px 18px !important;
  background:
    radial-gradient(circle at 92% 7%, rgba(245, 191, 78, .17) 0 30px, transparent 31px),
    radial-gradient(circle at 9% 92%, rgba(105, 194, 126, .15) 0 42px, transparent 43px),
    linear-gradient(165deg, rgba(255, 254, 246, .995), rgba(246, 253, 238, .995)) !important;
  box-shadow: 0 22px 46px rgba(31, 63, 81, .24), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(7px) scale(.97) !important;
  transform-origin: right top;
  transition: opacity .17s ease, visibility .17s ease, transform .2s ease;
}

.sn-public-info-menu .sn-public-info-links::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 15px;
  width: 18px;
  height: 18px;
  border-top: 2px solid rgba(67, 137, 99, .2);
  border-left: 2px solid rgba(67, 137, 99, .2);
  border-radius: 5px 0 0;
  background: #fffef6;
  transform: rotate(45deg);
}

.sn-public-info-menu.is-open .sn-public-info-links {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.sn-public-info-menu .sn-public-info-panel-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 2px 9px;
  padding: 8px 9px 11px;
  border-bottom: 1px dashed rgba(57, 123, 88, .23);
  text-align: left;
}

.sn-public-info-menu .sn-public-info-panel-mark {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 16px 12px 17px 11px;
  background: linear-gradient(145deg, #fff3bd, #dff4d8);
  box-shadow: inset 0 0 0 1px rgba(60, 133, 91, .15), 0 4px 10px rgba(67, 112, 82, .1);
  transform: rotate(-2deg);
}

.sn-public-info-menu .sn-public-info-panel-mark svg {
  width: 31px;
  height: 31px;
  overflow: visible;
}

/* Keep the illustrated Explore Story Garden mark identical to desktop.
   Without explicit SVG paint rules, phone browsers render every path black. */
.sn-public-info-menu .sn-public-info-panel-mark svg path:first-child {
  fill: #fffdf0;
  stroke: #318a66;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.sn-public-info-menu .sn-public-info-panel-mark svg path:nth-child(2),
.sn-public-info-menu .sn-public-info-panel-mark svg path:last-child {
  fill: none;
  stroke: #318a66;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sn-public-info-menu .sn-public-info-panel-mark svg circle {
  fill: #6358ba;
}

.sn-public-info-menu .sn-public-info-panel-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sn-public-info-menu .sn-public-info-panel-copy strong {
  color: #244f40;
  font: 900 1rem/1.18 "Nunito", sans-serif;
}

.sn-public-info-menu .sn-public-info-panel-copy small {
  color: #6f7e73;
  font: 700 .72rem/1.3 "Nunito", sans-serif;
}

.sn-public-info-menu .sn-public-info-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.sn-public-info-menu .sn-public-info-settings-card {
  display: grid !important;
}
.sn-public-info-menu .sn-public-info-card,
.sn-public-info-menu .sn-public-info-links .sn-public-info-link-button.sn-public-info-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 55px;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 16px 10px 16px 12px;
  background: rgba(255, 255, 255, .34);
  color: #285f4a;
  font: inherit;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
}

.sn-public-info-menu .sn-public-info-card:hover,
.sn-public-info-menu .sn-public-info-card:focus-visible {
  border-color: rgba(66, 147, 97, .2);
  background: rgba(231, 248, 226, .9);
  color: #145c3c;
  box-shadow: 0 7px 15px rgba(46, 108, 76, .11);
  outline: none;
  transform: translateX(-2px);
}

.sn-public-info-menu .sn-public-info-card-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px 10px 15px 11px;
  box-shadow: inset 0 0 0 1px rgba(51, 105, 80, .11);
}

.sn-public-info-menu .sn-public-info-card-icon svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sn-public-info-menu .sn-info-card-library { color: #765f25; background: linear-gradient(145deg, #fff0b7, #ffe4a1); }
.sn-public-info-menu .sn-info-card-settings { color: #2e6f9d; background: linear-gradient(145deg, #dff2ff, #d8e9f7); }
.sn-public-info-menu .sn-info-card-parents { color: #8c4c6d; background: linear-gradient(145deg, #ffe0ee, #f7d2e3); }
.sn-public-info-menu .sn-info-card-feedback { color: #42629c; background: linear-gradient(145deg, #dfeaff, #d7e2fa); }
.sn-public-info-menu .sn-info-card-about { color: #367858; background: linear-gradient(145deg, #ddf3dc, #cfeaca); }
.sn-public-info-menu .sn-info-card-privacy { color: #6254a0; background: linear-gradient(145deg, #ebe4ff, #ddd5f6); }

.sn-public-info-menu .sn-public-info-card-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.sn-public-info-menu .sn-public-info-card-copy strong {
  color: inherit;
  font: 900 .87rem/1.18 "Nunito", sans-serif;
}

.sn-public-info-menu .sn-public-info-card-copy small {
  display: block;
  overflow: hidden;
  color: #758079;
  font: 700 .68rem/1.28 "Nunito", sans-serif;
  white-space: normal;
  text-overflow: ellipsis;
}

.sn-public-info-menu .sn-public-info-card-arrow {
  color: #72a186;
  font: 900 1.35rem/1 "Nunito", sans-serif;
  text-align: center;
}

.sn-public-info-menu .sn-settings-card-lock {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 6px rgba(31, 65, 114, .22);
  font-size: .66rem;
  line-height: 1;
}

.sn-public-info-menu #settingsMenuButton.is-parent-access-unlocked .sn-settings-card-lock {
  opacity: 0;
  visibility: hidden;
  transform: scale(.55);
}

@media (max-width: 1024px) {
  .sn-topbar > .sn-public-info-menu {
    display: block !important;
    margin-left: auto !important;
  }

  .sn-topbar > .sn-public-info-menu .sn-public-info-links {
    position: fixed !important;
    top: max(68px, calc(env(safe-area-inset-top) + 60px)) !important;
    right: max(9px, env(safe-area-inset-right)) !important;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .sn-topbar {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .sn-topbar > .sn-controls.sn-fun-buttons.sn-icon-only-navigation {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    margin: 0 0 0 auto !important;
  }

  .sn-topbar > .sn-public-info-menu {
    margin-left: 2px !important;
  }
}

@media (max-width: 900px) {
  .sn-controls.sn-fun-buttons.sn-icon-only-navigation {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) and (orientation: portrait) {
  .sn-controls.sn-fun-buttons.sn-icon-only-navigation {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

html[data-sn-theme="dark"] .sn-public-info-menu > .sn-public-info-button {
  border-color: rgba(145, 212, 170, .2) !important;
  background: rgba(27, 51, 43, .96) !important;
  color: #b8ebc9 !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .28) !important;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-links {
  border-color: rgba(153, 212, 178, .24) !important;
  background: linear-gradient(165deg, rgba(38, 49, 55, .995), rgba(28, 43, 39, .995)) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .48) !important;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-links::before {
  border-color: rgba(153, 212, 178, .24);
  background: #263137;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-panel-copy strong {
  color: #e3f6e9;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-panel-mark svg path:first-child {
  fill: #31473d;
  stroke: #9cd7b4;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-panel-mark svg path:nth-child(2),
html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-panel-mark svg path:last-child {
  stroke: #9cd7b4;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-panel-copy small,
html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-card-copy small {
  color: #aabcb1;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-public-info-card {
  background: rgba(255, 255, 255, .025);
  color: #d4efdd;
}

html[data-sn-theme="dark"] .sn-public-info-menu .sn-info-card-settings {
  color: #9cd6ef;
  background: linear-gradient(145deg, rgba(52, 96, 122, .72), rgba(42, 72, 92, .82));
}

@media (prefers-reduced-motion: reduce) {
  .sn-public-info-menu > .sn-public-info-button,
  .sn-public-info-menu .sn-public-info-links,
  .sn-public-info-menu .sn-public-info-card {
    transition: none !important;
  }
}
