/* Account workspace mobile surface.
   This file is loaded only by account.html so manager and QR screens stay untouched. */
@media (max-width: 760px) {
  .account-shell {
    overflow-x: hidden;
    background: #f4f7fb;
  }

  .account-shell .account-main {
    width: 100%;
    padding: 10px 0 28px;
  }

  .account-shell .account-page-shell {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .account-shell .account-page-layout-standalone {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
  }

  .account-shell .account-page-sidebar-standalone {
    width: 100%;
    min-width: 0;
    padding: 12px 12px 0;
    display: flex !important;
    flex-direction: column;
    border: 0;
    border-bottom: 1px solid #e3eaf3;
    background: #fff;
  }

  .account-shell .account-page-user-standalone {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 2px 12px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 0;
  }

  .account-shell .account-page-avatar-large {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .account-shell .account-page-user-standalone strong {
    font-size: 14px;
  }

  .account-shell .account-page-user-standalone span {
    font-size: 11px;
  }

  .account-shell .account-page-user-standalone .account-page-id {
    margin-top: 2px;
    font-size: 11px;
  }

  .account-shell .account-page-nav {
    width: 100%;
    min-width: 0;
    padding: 0 0 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .account-shell .account-page-nav-item {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
  }

  .account-shell .account-page-nav-bottom {
    display: block;
    padding: 0 0 10px;
    border: 0;
  }

  .account-shell .account-page-nav-bottom .account-page-nav-item {
    width: auto;
    min-height: 34px;
    padding: 0 6px;
    justify-content: flex-start;
    background: transparent;
    box-shadow: none;
  }

  .account-shell .account-page-content-standalone {
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
  }

  .account-shell .account-page-content-standalone > div,
  .account-shell .account-page-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .account-shell .account-page-panel-head {
    min-height: 0;
    padding: 22px 18px 16px;
    display: block;
    border: 0;
    border-bottom: 1px solid #e3eaf3;
    border-radius: 0;
    background: #fff;
  }

  .account-shell .account-page-panel-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
  }

  .account-shell .account-page-stores-grid {
    width: 100%;
    min-width: 0;
    padding: 0 18px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .account-shell .account-page-store-card,
  .account-shell .account-page-store-form,
  .account-shell .account-page-limit-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 20px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .account-shell .account-page-store-form,
  .account-shell .account-page-limit-card {
    border-top: 1px solid #dce5f0;
  }

  .account-shell .account-section-title {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .account-shell .account-section-title strong {
    font-size: 16px;
  }

  .account-shell .account-section-title span {
    flex: 0 0 auto;
  }

  .account-shell .owned-store-list {
    width: 100%;
    min-width: 0;
    gap: 0;
    margin-top: 4px;
    overflow: hidden;
    border-top: 1px solid #e5ebf3;
  }

  .account-shell .owned-store-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "identity identity"
      "actions actions";
    gap: 10px;
    align-items: start;
    border: 0;
    border-bottom: 1px solid #e5ebf3;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
  }

  .account-shell .owned-store-card > span {
    grid-area: identity;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .account-shell .owned-store-card strong {
    font-size: 15px;
    line-height: 1.4;
  }

  .account-shell .owned-store-card em {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: #718096;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-shell .owned-store-actions {
    grid-area: actions;
    width: auto;
    min-width: 0;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }

  .account-shell .owned-store-actions .secondary-button {
    min-width: 66px;
    min-height: 38px;
    padding: 0 14px;
    flex: 0 0 auto;
  }

  .account-shell .store-create-form .form-grid-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-shell .store-create-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .account-shell .store-create-actions .marketing-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .account-shell .store-create-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .account-shell .account-main:has(.account-page-layout.is-auth-gate) { padding: 0; }
  .account-shell .account-page-shell:has(.account-page-layout.is-auth-gate) { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .account-shell .account-page-layout.is-auth-gate .account-page-content-standalone { min-height: 0; }
  .account-shell .account-auth-gate { min-height: 0; }
  .account-shell .account-auth-visual { min-height: 0; padding: 42px 22px 28px; }
  .account-shell .account-auth-login { min-height: 0; padding: 36px 22px 48px; }
}
