/* Proxymaker in the browser: the desktop interface as it is, plus the start-up screen and a way back to the site. */
.brand-link { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.update-pill { display: none !important; }

#web-boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg);
  transition: opacity 350ms var(--ease); }
#web-boot.done { opacity: 0; pointer-events: none; }
#web-boot .web-boot-box { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px; max-width: 460px; }
#web-boot svg { width: 72px; height: 72px; fill: none; stroke: var(--accent); stroke-width: 1.4; animation: web-boot-float 2.4s ease-in-out infinite; }
#web-boot svg rect:first-child { fill: var(--bg); opacity: .65; }
#web-boot svg rect:last-child { fill: var(--accent-soft); }
#web-boot .web-boot-text { font-size: 17px; font-weight: 500; }
#web-boot .web-boot-note { font-size: 13px; color: var(--faint); }
#web-boot.failed svg { animation: none; opacity: .5; }
#web-boot.failed .web-boot-text { color: var(--danger); font-weight: 400; }
@keyframes web-boot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { #web-boot svg { animation: none; } }

/* Phones and narrow windows: the desktop columns become one page that scrolls. The settings come first,
   the cards and the sheets follow; the Cards/Sheets tabs jump down to them (backend.js). */
@media (max-width: 860px) {
  html, body { height: auto; }
  body { display: block; overflow: visible; min-height: 100dvh; }
  .topbar {
    position: sticky; top: 0; z-index: 40; height: auto; padding: 10px 14px 12px; gap: 10px 8px;
    grid-template-columns: 1fr 1fr auto auto;
    grid-template-areas: "brand brand lang about" "views views views views" "images export export export";
  }
  .brand { grid-area: brand; }
  .top-actions { display: contents; }
  #ui-language { grid-area: lang; }
  #about-button { grid-area: about; }
  #images-button { grid-area: images; justify-content: center; padding: 0 12px; }
  #export-button { grid-area: export; justify-content: center; }
  .views { grid-area: views; }
  .view-tab { flex: 1; justify-content: center; }
  .layout { display: block; }
  .sidebar { overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace { min-height: calc(100dvh - 150px); scroll-margin-top: 172px; }
  .toolbar { flex-wrap: wrap; align-items: flex-start; padding: 22px 16px 16px; gap: 12px; }
  .toolbar-title { flex-wrap: wrap; row-gap: 4px; }
  .toolbar-tools { flex-wrap: wrap; gap: 8px; }
  .size-control { display: none; }
  h1 { font-size: 28px; }
  .grid-scroll { overflow: visible; padding: 4px 16px 32px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 14px; }
  .empty { position: static; padding: 30px 16px; }
  .empty h2 { font-size: 24px; }
  .steps { flex-direction: column; }
  .steps li { width: auto; }
  .sheet-stage { container-type: inline-size; padding: 0 16px 28px; }
  .sheet { width: 100%; }
  .statusbar { position: sticky; bottom: 0; z-index: 30; padding: 6px 14px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
