@media (max-width: 760px) {
  body.site-shell .topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas:
      "brand actions"
      "nav nav" !important;
    align-items: center !important;
    gap: 8px 10px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 10px 10px !important;
  }

  body.site-shell .brand {
    grid-area: brand !important;
    min-width: 0 !important;
  }

  body.site-shell .brand span {
    display: none !important;
  }

  body.site-shell .top-actions {
    grid-area: actions !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  body.site-shell .top-actions .pill-btn {
    display: inline-grid !important;
    place-items: center !important;
    min-width: 38px !important;
    width: 38px !important;
    min-height: 38px !important;
    height: 38px !important;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border-color: rgba(29, 35, 31, .16) !important;
    background: #fffdf7 !important;
    box-shadow: inset 0 -3px 0 rgba(29, 35, 31, .08), 0 8px 18px rgba(38, 50, 43, .08) !important;
    font-size: 0 !important;
  }

  body.site-shell .top-actions #creditsBtn {
    width: auto !important;
    min-width: 78px !important;
    padding: 0 12px !important;
  }

  body.site-shell .top-actions .pill-btn::after {
    content: attr(data-mobile-label) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 38px !important;
    text-align: center !important;
  }

  body.site-shell .nav {
    grid-area: nav !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 5px !important;
    overflow: visible !important;
  }

  body.site-shell .nav a {
    display: grid !important;
    place-items: center !important;
    min-height: 32px !important;
    padding: 0 4px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  body.site-shell .nav a.hidden {
    display: none !important;
  }

  body.site-shell .nav:has(a#adminNavLink:not(.hidden)) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.site-shell .nav a[aria-current="page"] {
    background: var(--studio-ink, #1d231f) !important;
    color: var(--studio-paper, #fffdf7) !important;
  }

  body.page-templates main#top,
  body.page-account main#top {
    padding-top: 16px !important;
  }

  body.page-account .account-layout {
    min-height: 0 !important;
    height: auto !important;
    align-content: start !important;
    grid-auto-rows: auto !important;
    row-gap: 10px !important;
  }

  body.page-templates .section-head,
  body.page-account .account-profile-card.profilecard {
    margin-bottom: 0 !important;
    padding: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    align-content: start !important;
  }

  body.page-account .account-profile-card.profilecard {
    display: grid !important;
    gap: 6px !important;
    border-radius: 18px !important;
  }

  body.page-templates .section-head h2,
  body.page-account .account-profile-card h2 {
    font-size: clamp(28px, 7.2vw, 38px) !important;
    line-height: 1.08 !important;
  }

  body.page-templates .section-head p:not(.eyebrow),
  body.page-account .account-profile-card p {
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.page-templates .template-tools.filterpanel {
    gap: 10px !important;
  }

  body.page-templates .template-filter {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body.page-templates .template-filter-scroll {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px !important;
    border: 1px solid var(--studio-line, rgba(29, 35, 31, .12)) !important;
    border-radius: 16px !important;
    background: rgba(255, 253, 247, .72) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 10px 22px rgba(38, 50, 43, .05) !important;
    scrollbar-width: none !important;
  }

  body.page-templates .template-filter-scroll::-webkit-scrollbar {
    display: none !important;
  }

  body.page-templates .template-filter button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(29, 35, 31, .1) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--studio-muted, #626b64) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
  }

  body.page-templates .template-filter .template-filter-all {
    display: grid !important;
    place-items: center !important;
    justify-self: start !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border: 1px solid var(--studio-line, rgba(29, 35, 31, .12)) !important;
    border-radius: 16px !important;
    background: var(--studio-ink, #1d231f) !important;
    color: var(--studio-paper, #fffdf7) !important;
  }

  body.page-templates .template-filter button.active {
    background: var(--studio-sage, #83977f) !important;
    border-color: transparent !important;
    color: #fff !important;
  }

  body.page-templates .template-filter .template-filter-all.active {
    background: var(--studio-ink, #1d231f) !important;
    color: var(--studio-paper, #fffdf7) !important;
  }

  body.page-converter .preview-grid.studio-main {
    position: relative !important;
  }

  body.page-converter .preview-grid.studio-main.is-generating::after {
    content: "图纸生成中";
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding-bottom: 34px;
    border-radius: 18px;
    background: rgba(255, 253, 247, .88);
    color: var(--studio-ink, #1d231f);
    font-size: 17px;
    font-weight: 900;
    pointer-events: none;
  }

  body.page-converter .preview-grid.studio-main.is-generating::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% + 28px);
    z-index: 31;
    width: min(210px, 62vw);
    height: 9px;
    border: 1px solid rgba(29, 35, 31, .22);
    border-radius: 999px;
    background:
      linear-gradient(90deg, var(--studio-sage, #82977f) 0 45%, transparent 45% 100%),
      rgba(255, 255, 255, .82);
    background-size: 220% 100%, auto;
    transform: translateX(-50%);
    animation: mobile-chart-progress 1.05s ease-in-out infinite;
    pointer-events: none;
  }

  body.page-converter .generation-state span {
    padding: 10px 14px 10px 38px !important;
    font-size: 14px !important;
  }

  body.page-converter .preview-grid.studio-main.is-generating .bean-info-panel:empty::before,
  body.page-converter .preview-grid.studio-main.is-generating .bean-info-panel:empty::after {
    content: none !important;
  }

  body.page-converter .credit-dialog,
  body.page-templates .credit-dialog,
  body.page-account .credit-dialog {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 48px rgba(29, 35, 31, .2) !important;
  }

  body.page-converter .credit-dialog form,
  body.page-templates .credit-dialog form,
  body.page-account .credit-dialog form {
    gap: 9px !important;
    max-height: calc(100dvh - 18px) !important;
    padding: 14px !important;
  }

  body.page-converter .credit-dialog-head,
  body.page-templates .credit-dialog-head,
  body.page-account .credit-dialog-head {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 0 34px 0 0 !important;
  }

  body.page-converter .credit-dialog h2,
  body.page-templates .credit-dialog h2,
  body.page-account .credit-dialog h2 {
    font-size: 28px !important;
    line-height: 1.05 !important;
  }

  body.page-converter .credit-dialog .dialog-copy,
  body.page-templates .credit-dialog .dialog-copy,
  body.page-account .credit-dialog .dialog-copy,
  body.page-converter .dialog-steps,
  body.page-templates .dialog-steps,
  body.page-account .dialog-steps {
    font-size: 12px !important;
    line-height: 1.38 !important;
  }

  body.page-converter .credit-balance-card,
  body.page-templates .credit-balance-card,
  body.page-account .credit-balance-card,
  body.page-converter .account-summary,
  body.page-templates .account-summary,
  body.page-account .account-summary {
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }

  body.page-converter .credit-balance-card strong,
  body.page-templates .credit-balance-card strong,
  body.page-account .credit-balance-card strong,
  body.page-converter .account-summary strong,
  body.page-templates .account-summary strong,
  body.page-account .account-summary strong {
    font-size: 22px !important;
    line-height: 1.05 !important;
  }

  body.page-converter .recharge-presets,
  body.page-templates .recharge-presets,
  body.page-account .recharge-presets {
    gap: 8px !important;
  }

  body.page-converter .recharge-option,
  body.page-templates .recharge-option,
  body.page-account .recharge-option {
    min-height: 62px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }

  body.page-converter .recharge-option span,
  body.page-templates .recharge-option span,
  body.page-account .recharge-option span {
    font-size: 20px !important;
  }

  body.page-converter .recharge-option small,
  body.page-templates .recharge-option small,
  body.page-account .recharge-option small,
  body.page-converter .recharge-form strong,
  body.page-templates .recharge-form strong,
  body.page-account .recharge-form strong {
    font-size: 12px !important;
  }

  body.page-converter .dialog-section-title,
  body.page-templates .dialog-section-title,
  body.page-account .dialog-section-title {
    margin-top: 4px !important;
    font-size: 14px !important;
  }
}

@keyframes mobile-chart-progress {
  0% {
    background-position: 110% 0, 0 0;
  }

  100% {
    background-position: -110% 0, 0 0;
  }
}
