/* =========================================================
   茶序云端 · 登录、多门店、手机导航
   ========================================================= */

body.auth-locked {
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(220, 122, 69, .1), transparent 70%),
    radial-gradient(760px 460px at 5% 100%, rgba(111, 143, 105, .08), transparent 70%),
    var(--bg);
}
body.auth-locked .app-shell,
body.auth-locked .mobile-nav { display: none !important; }

.cloud-clickable { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.store-card {
  border: 1px solid rgba(255, 250, 241, .09) !important;
  background: rgba(255, 250, 241, .055) !important;
  color: #f4eadd;
}
button.manager-card { border: 0 !important; background: transparent !important; color: inherit; }
.store-switch-icon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 234, 221, .4);
  flex: 0 0 auto;
}
.store-switch-icon .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------
   登录 / 注册
   --------------------------------------------------------- */

#authRoot { position: relative; z-index: 600; }

.auth-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  background: var(--surface);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  color: #f8eddd;
  background:
    radial-gradient(620px 420px at 92% 0%, rgba(220, 122, 69, .25), transparent 65%),
    radial-gradient(500px 420px at -10% 105%, rgba(111, 143, 105, .18), transparent 65%),
    linear-gradient(145deg, #2b1d16 0%, #211611 60%, #2a1d16 100%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  right: -110px; bottom: -150px;
  width: 440px; height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(248, 237, 221, .09);
  box-shadow: 0 0 0 54px rgba(248, 237, 221, .025), 0 0 0 108px rgba(248, 237, 221, .014);
  pointer-events: none;
}
.auth-brand-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.auth-logo {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 15px;
  color: #f2d7ad;
  background: rgba(220, 122, 69, .16);
  border: 1px solid rgba(245, 217, 182, .2);
  flex: 0 0 auto;
}
.auth-logo svg { width: 31px; height: 31px; }
.auth-brand-top div:last-child { display: flex; flex-direction: column; gap: 1px; }
.auth-brand-top strong { font-size: 22px; letter-spacing: .16em; }
.auth-brand-top span { font-size: 9px; letter-spacing: .18em; color: rgba(244, 234, 221, .46); }
.auth-brand-copy { position: relative; z-index: 1; max-width: 580px; }
.auth-brand-kicker { margin-bottom: 18px; color: #e2a173; font-size: 10px; letter-spacing: .2em; }
.auth-brand-copy h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; }
.auth-brand-copy p { margin-top: 22px; font-size: 14px; line-height: 2; color: rgba(248, 237, 221, .56); }
.auth-feature-list { position: relative; z-index: 1; display: grid; gap: 11px; max-width: 430px; }
.auth-feature-list div {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 250, 241, .08);
  background: rgba(255, 250, 241, .035);
  font-size: 12px; color: rgba(248, 237, 221, .72);
}
.auth-feature-list span { font: 600 9px var(--font-num); color: #e2a173; letter-spacing: .08em; }
.auth-brand-foot { position: relative; z-index: 1; font-size: 9.5px; color: rgba(248, 237, 221, .34); letter-spacing: .05em; }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 36px;
  background:
    radial-gradient(600px 500px at 100% 0%, rgba(220, 122, 69, .055), transparent 70%),
    var(--bg);
  overflow-y: auto;
}
.auth-card { width: min(390px, 100%); }
.auth-mobile-brand { display: none; }
.auth-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 30px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.auth-tabs button {
  min-width: 74px;
  height: 32px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px; font-weight: 600;
}
.auth-tabs button.active { color: #fff9ef; background: var(--brand); }
.auth-card-head h2 { font-size: 28px; letter-spacing: -.035em; font-weight: 700; }
.auth-card-head p { margin-top: 7px; font-size: 11.5px; line-height: 1.7; color: var(--muted-2); }
.auth-error {
  display: none;
  margin: 15px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: #93443c;
  font-size: 10.5px;
  line-height: 1.55;
}
.auth-error.show { display: block; }
.auth-form { margin-top: 22px; display: flex; flex-direction: column; gap: 15px; }
.auth-form .field > label { font-size: 10.5px; color: var(--muted); }
.auth-form .field input {
  height: 46px;
  border-radius: 11px;
  font-size: 14px;
  letter-spacing: .02em;
  background: var(--surface);
}
.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 5px;
  font-size: 13.5px;
  border-radius: 12px;
}
.auth-submit .btn-svg { width: 16px; height: 16px; }
.auth-help { margin-top: 16px; font-size: 10px; line-height: 1.7; color: var(--muted-2); }
.auth-admin-link { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 10px; }
.auth-admin-link a { color: var(--muted); }
.auth-admin-link a:hover { color: var(--accent-deep); }
.auth-link {
  border: 0; background: transparent;
  padding: 0; color: var(--accent-deep);
  font-size: 10px; font-weight: 600;
}
.auth-link.muted { color: var(--muted-2); margin-left: 12px; }

.auth-boot { display: grid; place-items: center; background: var(--bg); }
.auth-boot-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.auth-boot-card .auth-logo { width: 62px; height: 62px; border-radius: 19px; background: var(--brand); color: #f2d7ad; border-color: var(--line); }
.auth-boot-card .auth-logo svg { width: 38px; height: 38px; }
.auth-boot-card p { font-size: 11px; color: var(--muted-2); }
.auth-loading { display: flex; gap: 5px; }
.auth-loading span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: cloud-pulse 1s infinite;
}
.auth-loading span:nth-child(2) { animation-delay: .14s; }
.auth-loading span:nth-child(3) { animation-delay: .28s; }
@keyframes cloud-pulse { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* 初次创建门店 */
.onboarding-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 30px 18px;
  background:
    radial-gradient(700px 500px at 86% 0%, rgba(220, 122, 69, .1), transparent 70%),
    radial-gradient(600px 500px at 0% 100%, rgba(111, 143, 105, .08), transparent 70%),
    var(--bg);
}
.onboarding-shell {
  width: min(560px, 100%);
  padding: 34px 34px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.onboarding-choice-shell { width: min(600px, 100%); }
.onboard-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 14px; }
.onboard-choice-btn { text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 11px 12px; color: var(--ink-2); transition: border-color .16s, background .16s; }
.onboard-choice-btn strong { display: block; font-size: 11px; }
.onboard-choice-btn span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted-2); }
.onboard-choice-btn.active { border-color: var(--accent); background: #fff8f0; }
.onboard-choice-btn.active strong { color: var(--accent-deep); }
.onboard-employee-card { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 18px; text-align: center; }
.onboard-employee-icon { width: 42px; height: 42px; margin: 0 auto 9px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #f2d7ad; }
.onboard-employee-icon svg { width: 26px; height: 26px; }
.onboard-employee-card > strong { display: block; font-size: 13px; }
.onboard-employee-card > p { margin: 4px auto 10px; max-width: 320px; font-size: 9.5px; line-height: 1.7; color: var(--muted-2); }
.onboard-phone { display: inline-block; padding: 7px 16px; border-radius: 8px; background: #fff; border: 1px dashed var(--line); font: 600 15px var(--font-num); letter-spacing: .08em; color: var(--ink); }
.onboard-employee-actions { display: flex; justify-content: center; gap: 7px; margin-top: 13px; flex-wrap: wrap; }
.onboard-employee-actions .btn { min-width: 0; }
@media (max-width: 480px) {
  .onboard-choice { grid-template-columns: 1fr; }
}
.onboarding-shell .auth-mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.onboarding-shell .auth-mobile-brand strong { font-size: 19px; letter-spacing: .1em; }
.onboarding-shell .auth-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); border-color: var(--line); color: #f2d7ad; }
.onboarding-shell .auth-logo svg { width: 24px; height: 24px; }
.onboarding-kicker { color: var(--accent-deep); font-size: 9px; letter-spacing: .16em; margin-bottom: 8px; }
.onboarding-shell h2 { font-size: 25px; line-height: 1.35; letter-spacing: -.03em; }
.onboarding-shell > p { margin-top: 8px; font-size: 11.5px; line-height: 1.8; color: var(--muted-2); }
.onboarding-form { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.onboarding-form .field input { height: 42px; }
.onboarding-alt { margin-top: 20px; padding-top: 15px; border-top: 1px dashed var(--line); font-size: 10px; color: var(--muted-2); display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.onboarding-note { margin-top: 13px; font-size: 9px; line-height: 1.7; color: var(--muted-2); }

/* ---------------------------------------------------------
   门店总览
   --------------------------------------------------------- */

.store-page { max-width: 1220px; }
.store-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 27px;
  border-radius: 24px;
  color: #f8eddd;
  background:
    radial-gradient(520px 260px at 92% 0%, rgba(220, 122, 69, .24), transparent 65%),
    radial-gradient(400px 260px at 0% 120%, rgba(111, 143, 105, .14), transparent 70%),
    linear-gradient(125deg, #2b1d16, #35251c 58%, #2a1d16);
  box-shadow: 0 16px 40px rgba(58, 37, 24, .12);
}
.store-hero .hero-kicker { margin-bottom: 10px; }
.store-hero h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; }
.store-hero p { margin-top: 7px; max-width: 650px; font-size: 11.5px; line-height: 1.75; color: rgba(248, 237, 221, .54); }
.store-hero .btn { flex: 0 0 auto; }
.store-total-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 16px 0 25px;
}
.store-total {
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.store-total > span { font-size: 10px; color: var(--muted-2); }
.store-total strong { display: block; margin-top: 5px; font: 700 24px var(--font-num); letter-spacing: -.03em; }
.store-total strong small { font-size: 10px; font-weight: 500; color: var(--muted-2); }
.store-total p { margin-top: 3px; font-size: 9.5px; color: var(--muted-2); }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.section-head-row h3 { font-size: 14px; font-weight: 700; }
.section-head-row p { margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.section-head-row .card-link { padding-bottom: 2px; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.store-page .store-card {
  display: block;
  align-items: initial;
  gap: 0;
  margin-bottom: 0;
  position: relative;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.store-page .store-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-page .store-card.current { border-color: #e1b18d; box-shadow: inset 0 0 0 1px rgba(220, 122, 69, .08), var(--shadow-sm); }
.store-card-head { display: flex; align-items: center; gap: 10px; }
.store-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--brand);
  color: #f0cda2;
}
.store-mark .icon { width: 18px; height: 18px; }
.store-card-title { flex: 1; min-width: 0; }
.store-card-title h4 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-title p { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.store-address {
  display: flex; align-items: center; gap: 5px;
  margin-top: 12px;
  font-size: 10px; color: var(--muted-2);
}
.store-address .icon { width: 12px; height: 12px; flex: 0 0 auto; }
.store-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.store-card-stats div { padding: 9px 10px; background: var(--surface-2); }
.store-card-stats span { display: block; font-size: 8.5px; color: var(--muted-2); }
.store-card-stats strong { display: block; margin-top: 2px; font: 600 12px var(--font-num); }
.store-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.store-owner { font-size: 8.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.current-tag { font-size: 9px; font-weight: 600; color: var(--matcha); padding: 3px 4px; }
.store-add-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 253, 249, .45);
  color: var(--muted-2);
  transition: border-color .16s, background .16s;
}
.store-add-card:hover { border-color: #d6a582; background: #fffaf4; }
.store-add-icon {
  width: 35px; height: 35px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 3px;
}
.store-add-icon .icon { width: 17px; height: 17px; }
.store-add-card strong { font-size: 12px; color: var(--ink-2); }
.store-add-card > span:last-child { font-size: 9px; }
.store-page-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 17px; padding: 11px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.7;
}
.store-page-note .icon { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }

/* ---------------------------------------------------------
   云端弹窗 / 切换 / 成员 / 账号
   --------------------------------------------------------- */

.cloud-overlay { z-index: 400; }
.cloud-overlay .modal { width: min(620px, 100%); }
.cloud-overlay .modal.narrow { width: min(430px, 100%); }
.cloud-overlay .modal.wide { width: min(680px, 100%); }
.switch-list { display: flex; flex-direction: column; gap: 4px; }
.switch-store-row {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 9px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  color: var(--ink-2);
}
.switch-store-row:hover { background: var(--surface-2); border-color: var(--line); }
.switch-store-row.current { background: #fff8f1; border-color: var(--line); }
.switch-store-icon {
  width: 31px; height: 31px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--muted);
  flex: 0 0 auto;
}
.switch-store-icon .icon { width: 15px; height: 15px; }
.switch-store-copy { flex: 1; min-width: 0; }
.switch-store-copy strong { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-store-copy span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 1px; }
.switch-store-row > .icon { width: 14px; height: 14px; color: var(--muted-2); flex: 0 0 auto; }
.switch-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); }
.switch-actions .btn { flex: 1; }

.account-head { display: flex; align-items: center; gap: 11px; }
.account-head h3 { font-size: 16px; }
.account-head p { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.account-head .badge { margin-left: auto; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.account-grid div { padding: 9px 10px; background: var(--surface-2); }
.account-grid span { display: block; font-size: 8.5px; color: var(--muted-2); }
.account-grid strong { display: block; margin-top: 2px; font: 600 11px var(--font-num); }
.account-actions { display: flex; gap: 7px; margin-top: 15px; flex-wrap: wrap; }
.account-actions .btn { flex: 1; }
.account-sheet .info-box { margin-top: 13px; }

.install-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: left;
  color: var(--ink-2);
}
.install-card > .icon { width: 19px; height: 19px; color: var(--accent-deep); flex: 0 0 auto; }
.install-card > div { flex: 1; min-width: 0; }
.install-card strong { display: block; font-size: 10.5px; font-weight: 600; }
.install-card p { margin-top: 1px; font-size: 9px; line-height: 1.55; color: var(--muted-2); }
.install-card > span { font-size: 9px; color: var(--accent-deep); font-weight: 600; flex: 0 0 auto; }
.install-card.install-button { cursor: pointer; transition: border-color .16s, background .16s; }
.install-card.install-button:hover { border-color: #dfb18d; background: #fff8f0; }
.install-card.installed { background: var(--matcha-soft); border-color: #d7e2d2; }
.install-card.installed > .icon { color: var(--matcha); }
.install-help { padding-bottom: 3px; }
.install-app-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.install-app-head .auth-logo { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); border-color: var(--line); color: #f2d7ad; }
.install-app-head .auth-logo svg { width: 26px; height: 26px; }
.install-app-head strong { display: block; font-size: 13px; }
.install-app-head p { font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.install-steps { display: flex; flex-direction: column; gap: 12px; margin: 15px 0; }
.install-step { display: flex; gap: 9px; }
.install-step > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: var(--brand); color: #f6e5cd; font: 600 9px var(--font-num); }
.install-step strong { display: block; font-size: 10.5px; }
.install-step p { margin-top: 2px; font-size: 9.5px; line-height: 1.65; color: var(--muted-2); }

.member-owner { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.member-owner > div { flex: 1; min-width: 0; }
.member-owner strong { display: block; font-size: 12px; }
.member-owner p { font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.member-list { display: flex; flex-direction: column; gap: 5px; }
.member-row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; }
.member-copy { flex: 1; min-width: 0; }
.member-copy strong { display: block; font-size: 11px; }
.member-copy span { display: block; font-size: 9px; color: var(--muted-2); }
.member-row .btn { padding-left: 5px; padding-right: 5px; }
.member-add-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line); }
.member-add-form .field { flex: 1; }
.member-add-form .field input { height: 36px; }
.member-add-form .btn { flex: 0 0 auto; }
.cloud-overlay .info-box { margin-top: 12px; }

.cloud-saving {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: cloud-pulse 1s infinite;
}
#saveState { cursor: default; }

/* ---------------------------------------------------------
   手机底部导航
   --------------------------------------------------------- */

.mobile-nav { display: none; }

@media (max-width: 1020px) {
  .auth-brand { padding: 34px; }
  .auth-brand-copy h1 { font-size: clamp(36px, 6vw, 56px); }
  .store-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 28px 18px; min-height: 100dvh; align-items: flex-start; }
  .auth-card { margin: auto 0; padding-top: 12px; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
  .auth-mobile-brand .auth-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); border-color: var(--line); color: #f2d7ad; }
  .auth-mobile-brand .auth-logo svg { width: 25px; height: 25px; }
  .auth-mobile-brand strong { font-size: 18px; letter-spacing: .1em; }
  .auth-tabs { margin-bottom: 24px; }
  .auth-card-head h2 { font-size: 25px; }
  .auth-admin-link { margin-top: 18px; }
  .onboarding-screen { padding: 14px; }
  .onboarding-shell { padding: 24px 19px 22px; border-radius: 20px; }
  .onboarding-shell h2 { font-size: 22px; }
  .store-hero { align-items: flex-start; flex-direction: column; padding: 21px 20px; }
  .store-hero .btn { width: 100%; }
  .store-total-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
  .store-total { padding: 13px 14px; }
  .store-total strong { font-size: 20px; }
  .store-card { padding: 16px; }
  .store-card-foot { align-items: flex-start; flex-direction: column; }
  .store-card-actions { width: 100%; justify-content: flex-end; }
  .store-owner { max-width: 100%; }
}

@media (max-width: 760px) {
  .eyebrow-store { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 60;
    left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(58, 37, 24, .06);
    backdrop-filter: blur(16px);
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 45px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted-2);
    font-size: 8.5px;
    font-weight: 500;
  }
  .mobile-nav button .icon { width: 18px; height: 18px; }
  .mobile-nav button.active { color: var(--accent-deep); background: #fff4e9; }
  .content { padding-bottom: 88px; }
  .page-heading .eyebrow { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-heading h1 { font-size: 18px; }
  .store-page .section-head-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .store-page .section-head-row .card-link { padding-left: 0; }
  .store-card-actions .btn { min-height: 29px; }
  .cloud-overlay { padding: 10px; align-items: flex-end; }
  .cloud-overlay .modal { max-height: calc(100dvh - 20px); border-radius: 20px 20px 14px 14px; }
  .member-add-form { flex-direction: column; align-items: stretch; }
  .member-add-form .btn { width: 100%; }
  .account-actions .btn { min-width: 100%; }
  .switch-actions { flex-direction: column; }
  .auth-panel { padding-bottom: 34px; }
}

@media (max-width: 420px) {
  .store-total-grid { grid-template-columns: 1fr 1fr; }
  .store-total strong { font-size: 18px; }
  .store-card-stats span { font-size: 8px; }
  .store-card-stats strong { font-size: 11px; }
  .store-card-actions { flex-wrap: wrap; }
  .auth-panel { padding-left: 15px; padding-right: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-loading span, .cloud-saving { animation: none; }
}
