.fj-option-start.mp-mobile {
  display: none;
}

@media (max-width: 767px) {
  .foot-bar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .foot-bar-fix {
    margin-bottom: env(safe-area-inset-bottom, 0px);
  }

  .foot-bar li[class$="-on"] span {
    color: #963b23;
    font-weight: 700;
  }

  .fj-dashboard {
    --fj-ink: #2d231e;
    --fj-muted: #6b5b51;
    --fj-accent: #963b23;
    --fj-border: #e9ded3;
    min-height: calc(100vh - 58px);
    min-height: calc(100svh - 58px);
    padding: 0 14px 20px;
    box-sizing: border-box;
    color: var(--fj-ink);
    background: #faf6ef;
  }

  .fj-dashboard .head-bar {
    background: #fffcf8;
    border-color: var(--fj-border);
  }

  .fj-dashboard .head-bar-title {
    color: var(--fj-ink);
  }

  .fj-dashboard .head-bar-back a,
  .fj-dashboard .head-bar-right a {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
  }

  .fj-group {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--fj-border);
    border-radius: 16px;
    background: #fffdf9;
  }

  .fj-group h2 {
    margin: 0 0 10px;
    color: var(--fj-ink);
    font-size: 17px;
    line-height: 1.35;
  }

  .fj-tiles,
  .fj-exit {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .fj-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .fj-tiles a,
  .fj-exit a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 64px;
    padding: 6px 2px;
    gap: 5px;
    flex-direction: column;
    border-radius: 10px;
    color: var(--fj-ink);
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .fj-tiles img,
  .fj-exit img {
    flex: none;
    padding: 5px;
    border-radius: 10px;
    background: #f5eee7;
    object-fit: contain;
  }

  .fj-tiles a:active, .fj-tiles a:focus-visible,
  .fj-exit a:active, .fj-exit a:focus-visible {
    background: #f8e8dd;
    outline-color: var(--fj-accent);
  }

  .fj-tiles .fj-featured a {
    background: #f9ede3;
    color: var(--fj-accent);
    font-weight: 700;
  }

  .fj-tiles .fj-featured img,
  .fj-exit img {
    background: #f3e0d3;
  }

  .fj-exit a {
    min-height: 48px;
    flex-direction: row;
    gap: 8px;
    border: 1px solid var(--fj-border);
    background: #fffdf9;
    color: var(--fj-accent);
  }

  .fj-manage .fj-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .fj-manage .fj-tiles a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
    min-height: 68px;
    padding: 8px;
    gap: 6px;
    border: 1px solid var(--fj-border);
    background: #fcf7f1;
    font-weight: 650;
    text-align: left;
  }

  .fj-manage .fj-tiles a::after {
    content: "›" / "";
    color: var(--fj-accent);
    font-size: 18px;
  }

  .fj-empty {
    margin: 0;
    color: var(--fj-muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .fj-manage #search.main,
  .fj-manage .list-img,
  .fj-manage .list-none {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--fj-border);
    border-radius: 12px;
    background: #fffdf9;
  }

  .fj-manage .list-img {
    display: flow-root;
  }

  .fj-option-start,
  .fj-option-start.mp-mobile {
    display: table-row;
  }

  .fj-option-start #mp-options {
    margin: 0;
    color: #2d231e;
    font-size: 17px;
    line-height: 1.4;
    scroll-margin-top: 72px;
  }

  [data-fj-spec-link] {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 7px;
    border-radius: 7px;
    background: #f6e7db;
    color: #913821;
    font-weight: 650;
  }
}

@media (max-width: 350px) {
  .fj-dashboard { padding-inline: 9px; }
  .fj-group { padding: 10px; }
  .fj-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
