.hj-home-screen[hidden], .hj-home-screen [hidden], .hj-home-screen-space[hidden] { display: none !important; }
.hj-home-screen, .hj-home-screen-space { display: none; }

@media (max-width: 719px) {
  .hj-home-screen {
    display: block; position: fixed; inset: auto 0 0; z-index: 95;
    max-height: 65vh; max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: 2px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    color: var(--text); background: var(--bg-elev); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .3); font-size: 13px; line-height: 1.5;
  }
  .hj-home-screen__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .hj-home-screen__remember { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-dim); font-size: 12px; font-weight: 400; cursor: pointer; }
  .hj-home-screen__remember input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }
  .hj-home-screen__close { display: grid; place-items: center; width: 36px; height: 32px; padding: 0; color: var(--text-dim); font-size: 25px; }
  .hj-home-screen__row { display: flex; align-items: center; gap: 10px; }
  .hj-home-screen__logo { flex: 0 0 auto; width: 86px; height: auto; }
  .hj-home-screen .hj-home-screen__copy { flex: 1; min-width: 0; margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
  .hj-home-screen__copy span { display: block; margin-top: 2px; color: var(--text-faint); font-size: 11px; font-weight: 400; }
  .hj-home-screen__add { flex: 0 0 auto; min-width: 60px; min-height: 36px; padding: 7px 14px; border-radius: 999px; color: #fff; background: var(--brand); font-size: 13px; font-weight: 600; }
  .hj-home-screen__add:disabled { opacity: .65; cursor: wait; }
  .hj-home-screen__guide { margin-top: 12px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
  .hj-home-screen__guide p { margin: 0; color: var(--text-dim); font-size: 12px; }
  .hj-home-screen__guide .hj-home-screen__guide-title { margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
  .hj-home-screen__guide ol { list-style: decimal; margin: 0 0 8px; padding-left: 20px; }
  .hj-home-screen__guide li { margin: 4px 0; }
  .hj-home-screen__guide-close { margin-top: 10px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; }
  .hj-home-screen .hj-home-screen__status { margin: 10px 0 0; color: var(--text-dim); font-size: 12px; }
  .hj-home-screen-space { display: block; height: var(--hj-home-screen-height, 0px); }
  html.hj-home-screen-visible .reskin-floating { bottom: calc(var(--hj-home-screen-height, 0px) + 16px); }
  html.hj-home-screen-visible .reskin-history {
    bottom: calc(var(--hj-home-screen-height, 0px) + 16px);
    max-height: min(65vh, calc(100vh - var(--hj-home-screen-height, 0px) - 96px));
    max-height: min(65dvh, calc(100dvh - var(--hj-home-screen-height, 0px) - 96px));
  }
  html.hj-age-pending .hj-home-screen { display: none !important; }
}

@media (display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen) {
  .hj-home-screen, .hj-home-screen-space { display: none !important; }
}
