:root {
  color-scheme: light;
  --ink: #211d19;
  --muted: #746d65;
  --line: #e6dfd6;
  --surface: #ffffff;
  --panel: #ffffff;
  --brand: #1f7567;
  --brand-dark: #14594e;
  --accent: #1f7567;
  --danger: #b4341f;
  --danger-dark: #8f2a1c;
  --danger-soft: #fdecea;
  --dark: #2a221d;
  --soft: #f3eee6;
  --shadow: 0 10px 30px rgba(42, 34, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.is-owner-native-app,
.is-owner-native-app body {
  width: 100vw;
  max-width: 100vw;
  min-height: 100dvh;
  background: #f6f7f9;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

.is-owner-native-app body {
  user-select: none;
}

.is-owner-native-app input,
.is-owner-native-app textarea {
  user-select: text;
}

.is-owner-native-app .app-shell {
  width: 100vw;
  max-width: 100vw;
  min-height: 100dvh;
  background: #f6f7f9;
  touch-action: pan-y;
}

body:has(.owner-page) {
  background: #f6f7f9;
}

body:has(.owner-auth-panel) {
  background: #fff;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-order-web-app button,
.is-order-web-app a,
.is-order-web-app [role="button"],
.order-page button,
.mobile-order-bar button,
.mobile-order-bar a {
  touch-action: manipulation;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  min-height: 0 !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

.page {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 max(42px, env(safe-area-inset-bottom));
}

.owner-page {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #f6f7f9;
  --soft: #f3f4f6;
  --dark: #111827;
  --shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  width: min(1420px, calc(100% - 40px));
  padding-top: 10px;
}

.is-owner-native-app .owner-page {
  width: 100vw;
  max-width: 100vw;
  min-height: 100dvh;
  overflow-x: hidden;
  touch-action: pan-y;
  padding: 0 max(30px, env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
}

.order-page {
  width: 100%;
  padding-top: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.order-page > :not(.intro) {
  width: min(960px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

.compact-page {
  max-width: 520px;
}

.compact-page:has(.owner-auth-panel) {
  width: min(620px, calc(100% - 48px));
  min-height: 100dvh;
  padding: 24px 0;
  display: grid;
  place-items: center;
}

.is-owner-native-app .compact-page:has(.owner-auth-panel) {
  width: min(720px, calc(100% - 64px));
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
}

.intro {
  width: 100%;
  min-height: 190px;
  margin-bottom: 12px;
  padding: 26px 0;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--dark);
  background:
    linear-gradient(90deg, rgba(255, 246, 226, 0.98), rgba(255, 246, 226, 0.76), rgba(255, 246, 226, 0.08)),
    var(--intro-image, url("/images/mascot-banner.png")) center right / cover no-repeat;
}

.intro > div {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
}

.intro p {
  margin: 0 0 4px;
  color: #95522a;
  font-size: 13px;
  font-weight: 600;
}

.intro h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 750;
  /* 긴 제목도 단정하게 — 최대 2줄로 클램프하고 넘치면 말줄임. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.intro > div > span {
  display: block;
  margin-top: 7px;
  color: #5f4532;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.intro-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-badges span {
  min-height: 34px;
  border: 1px solid rgba(78, 69, 55, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #594b3f;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(42, 34, 29, 0.06);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 560;
  backdrop-filter: blur(8px);
}

.intro-badges svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 12px;
  align-items: start;
}

.order-flow {
  display: grid;
  gap: 10px;
}

.step-indicator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.step-indicator span {
  min-height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 650;
}

.step-indicator span.is-current {
  color: #fff;
  background: var(--dark);
}

.order-step-panel {
  overflow: visible;
}

.order-step-panel .panel-title {
  border-bottom: 0;
  padding: 12px 0 10px;
}

.recent-order span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.recent-order strong {
  display: block;
  margin-top: 2px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 760;
}

.step-back-row {
  display: flex;
  justify-content: flex-start;
}

.step-back-text {
  border: 0;
  padding: 0;
  min-height: 0;
  color: var(--brand);
  background: transparent;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.step-back-text:hover {
  color: var(--brand-dark);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recent-order {
  margin-bottom: 10px;
  border: 1px solid rgba(31, 117, 103, 0.22);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(31, 117, 103, 0.08);
}

/* 상단 앱설치 배너 (iOS 스마트 앱배너 스타일): [x] [앱아이콘] [제목/설명] [받기] */
.app-install-banner {
  display: grid;
  grid-template-columns: 22px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 9px 12px 9px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(42, 34, 29, 0.08);
  animation: app-install-in 0.32s ease both;
}

@keyframes app-install-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-install-close {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.app-install-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-image: url('/icon-192.png');
  background-size: cover;
  background-position: center;
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(42, 34, 29, 0.06);
  overflow: hidden;
}

.app-install-text {
  min-width: 0;
}

.app-install-text strong {
  display: block;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-install-text span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-install-cta {
  border: none;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.app-install-cta:active {
  opacity: 0.85;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-title {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title h1,
.panel-title h2,
.owner-head h1 {
  margin: 0;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.panel-title p,
.owner-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.location-gate {
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.location-gate.is-allowed {
  color: #14594e;
}

.location-gate.is-blocked {
  color: var(--danger);
}

.mobile-store-notice {
  width: min(960px, calc(100% - 28px));
  min-height: 46px;
  margin: 0 auto 12px;
  border: 1px solid rgba(31, 117, 103, 0.2);
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #14594e;
  background: rgba(31, 117, 103, 0.08);
  font-size: 14px;
  font-weight: 720;
}

.mobile-store-notice.is-preview {
  width: 100%;
  margin: 0 0 8px;
  font-size: 12px;
}

.order-unavailable {
  min-height: 260px;
  padding: 36px 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.unavailable-mark {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dark);
}

.order-unavailable p {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: 14px;
  font-weight: 760;
}

.order-unavailable h2 {
  margin: 0;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 760;
}

.order-unavailable span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.category-selector {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 12px;
  margin: 0 -2px;
}

.category-selector::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(31, 117, 103, 0.24);
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--dark);
  font-size: 14px;
  font-weight: 640;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.category-chip:hover {
  border-color: rgba(31, 117, 103, 0.42);
}

.category-chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(31, 117, 103, 0.18);
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-row {
  min-height: 204px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 8px;
  padding: 10px 10px 9px;
  display: grid;
  grid-template-rows: 104px auto 34px;
  gap: 8px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.64);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.menu-row.is-selected {
  border-color: rgba(31, 117, 103, 0.34);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 18px rgba(31, 117, 103, 0.07);
}

.menu-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  text-align: center;
}

.menu-copy strong {
  display: block;
  color: var(--dark);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.menu-copy span,
.summary-line span,
.order-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.menu-copy span {
  display: block;
  margin-top: 0;
  font-size: 14px;
}

.menu-photo-frame {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 104px;
  margin: 0;
  border: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.menu-photo-frame img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  display: block;
  object-fit: contain;
}

.menu-action-slot {
  min-width: 0;
  align-self: end;
  display: grid;
  place-items: center;
}

.menu-add-button {
  width: min(146px, 100%);
  min-height: 34px;
  border: 1px solid rgba(78, 69, 55, 0.14);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 720;
  touch-action: manipulation;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.menu-add-button:hover {
  border-color: rgba(31, 117, 103, 0.38);
  color: #fff;
  background: var(--brand);
}

.stepper {
  justify-self: center;
  align-self: end;
  display: inline-grid;
  grid-template-columns: 42px minmax(28px, 1fr) 42px;
  align-items: center;
  width: min(146px, 100%);
  min-height: 34px;
  border: 1px solid rgba(31, 117, 103, 0.42);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.stepper button {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.stepper button:hover {
  color: #fff;
  background: var(--brand);
}

.stepper.is-active output {
  color: var(--accent);
}

.stepper.is-active button:last-child {
  color: var(--brand);
  background: transparent;
}

.stepper output {
  height: 100%;
  border-left: 1px solid rgba(31, 117, 103, 0.12);
  border-right: 1px solid rgba(31, 117, 103, 0.12);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 720;
}

.order-form-panel {
  position: sticky;
  top: 16px;
}

.order-form-panel .panel-title {
  border-bottom: 0;
  padding: 12px 0 10px;
}

.order-form {
  padding: 0;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--dark);
  font-size: 13px;
  font-weight: 650;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea,
.pin-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  outline: none;
}

.field textarea {
  min-height: 68px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.pin-input:focus {
  border-color: rgba(31, 117, 103, 0.7);
  box-shadow: 0 0 0 3px rgba(31, 117, 103, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(180, 52, 31, 0.8);
  box-shadow: 0 0 0 3px rgba(180, 52, 31, 0.1);
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
}

.privacy-hint,
.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.summary-error {
  margin: 0;
  padding: 0 12px 12px;
}

.order-summary {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.summary-head,
.summary-line {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-head {
  color: var(--dark);
  background: transparent;
  font-weight: 650;
}

.summary-head strong {
  font-size: 18px;
}

.summary-line {
  border-top: 1px solid var(--line);
}

.summary-line strong,
.order-card li strong {
  color: var(--dark);
}

.empty {
  margin: 0;
  padding: 22px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.empty.compact {
  padding: 12px;
}

.primary-button,
.secondary-button,
.filter-button,
.status-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--brand);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-button:disabled,
.filter-button:disabled,
.status-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.secondary-button,
.filter-button,
.status-button {
  color: var(--dark);
  background: var(--soft);
}

.icon-button {
  width: 46px;
  min-width: 46px;
  padding: 0;
}

.secondary-button:hover,
.filter-button:hover,
.status-button:hover {
  color: #fff;
  background: var(--accent);
}

.secondary-button.danger {
  color: var(--danger);
  background: rgba(180, 52, 31, 0.1);
}

.secondary-button.danger:hover,
.primary-button.danger {
  color: #fff;
  background: var(--danger);
}

.primary-button.danger:hover {
  background: var(--danger-dark);
}

.success,
.error {
  margin: 12px 16px 0;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.success {
  color: #175d51;
  background: rgba(31, 117, 103, 0.13);
}

.error {
  color: var(--danger-dark);
  background: rgba(180, 52, 31, 0.11);
}

.pin-panel {
  margin-top: 20px;
}

.owner-auth-panel {
  width: 100%;
  max-width: 720px;
  border-color: #edf0f3;
  box-shadow: none;
  overflow: hidden;
  animation: ownerAuthStepIn 220ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.owner-auth-panel.is-verify-step {
  max-width: 560px;
}

.compact-page:has(.owner-auth-panel) .pin-panel {
  margin-top: 0;
}

.owner-auth-back-link {
  margin: 24px 28px 0;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.owner-auth-back-link:hover {
  color: var(--accent);
}

.owner-auth-panel .panel-title {
  border-bottom: 0;
  padding: 34px 36px 18px;
}

.owner-auth-panel.is-verify-step .panel-title {
  padding-top: 22px;
}

.owner-auth-panel .panel-title h1 {
  font-size: 32px;
  font-weight: 740;
}

.owner-auth-panel .panel-title p {
  margin-top: 8px;
  font-size: 15px;
}

.pin-form {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.owner-auth-tabs {
  margin: 0 16px 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: #f8f8f6;
}

.owner-auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 560;
}

.owner-auth-tabs button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

.owner-auth-form {
  padding: 0 36px 28px;
  display: grid;
  gap: 18px;
}

.owner-auth-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.owner-auth-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.owner-auth-form input:focus {
  border-color: rgba(31, 117, 103, 0.7);
  box-shadow: 0 0 0 3px rgba(31, 117, 103, 0.12);
}

.owner-auth-inline-error {
  margin: -4px 0 0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--danger-dark);
  background: rgba(180, 52, 31, 0.08);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.owner-auth-inline-error svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.owner-auth-form .primary-button {
  margin-top: 2px;
  min-height: 54px;
  background: var(--accent);
}

.owner-auth-form .primary-button:hover {
  background: #14594e;
}

.owner-auth-message,
.owner-auth-note {
  margin: 0 36px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.owner-auth-message {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 650;
}

.owner-auth-message.debug {
  display: block;
  color: var(--accent);
}

.owner-auth-code-input {
  text-align: center;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
}

.owner-auth-switch,
.owner-legal-links {
  margin: 0 36px 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.owner-auth-switch button,
.owner-legal-links button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.owner-legal-links {
  margin: 0;
  text-align: left;
}

@keyframes ownerAuthStepIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-auth-panel {
    animation: none;
  }
}

.legal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(33, 29, 25, 0.34);
}

.legal-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  border-radius: 8px;
  padding: 24px;
  display: grid;
  gap: 16px;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-dialog h2 {
  margin: 0;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.2;
}

.legal-copy {
  display: grid;
  gap: 14px;
}

.legal-copy article {
  display: grid;
  gap: 5px;
}

.legal-copy h3 {
  margin: 0;
  color: var(--dark);
  font-size: 15px;
  font-weight: 760;
}

.legal-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pin-fallback {
  margin: 18px 16px 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.pin-fallback summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.pin-fallback .pin-form {
  padding: 12px 0 0;
}

.owner-auth-note {
  margin-top: 14px;
}

.owner-head {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: -10px -20px 18px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  padding: 16px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.is-owner-native-app .owner-head {
  top: 0;
  margin: 0 calc(max(30px, env(safe-area-inset-right)) * -1) 20px calc(max(30px, env(safe-area-inset-left)) * -1);
  padding: max(16px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) 16px max(30px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.97);
}

.owner-head h1 {
  margin: 0;
}

.owner-title {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.owner-title > div {
  min-width: 0;
}

.owner-title h1,
.owner-title p {
  overflow-wrap: anywhere;
}

.owner-title p {
  margin: 4px 0 0;
}

.owner-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.owner-actions {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
}

.owner-weather-widget {
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px 6px 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, auto) auto;
  align-items: center;
  gap: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 30, 44, 0.92), rgba(31, 117, 103, 0.72)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.12), transparent);
  box-shadow: 0 10px 24px rgba(16, 30, 44, 0.16);
  cursor: pointer;
}

.owner-weather-widget.is-muted {
  color: #32423e;
  background: #f3f7f5;
  box-shadow: none;
}

.owner-weather-widget:disabled {
  cursor: default;
  opacity: 0.82;
}

.owner-weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.owner-weather-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.owner-weather-copy strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.owner-weather-copy em {
  max-width: 86px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.1;
  font-style: normal;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-weather-widget.is-muted .owner-weather-copy em {
  color: var(--muted);
}

.owner-weather-range {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.is-owner-native-app button {
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.is-owner-native-app button:active {
  transform: scale(0.98);
}

.is-owner-native-app .icon-button:active,
.is-owner-native-app .filter-button:active,
.is-owner-native-app .status-button:active,
.is-owner-native-app .primary-button:active,
.is-owner-native-app .secondary-button:active {
  transform: scale(0.975);
}

.owner-summary {
  max-width: 100%;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.owner-stat-card {
  min-width: 0;
  min-height: 82px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 8px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.owner-stat-card span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
}

.owner-stat-card strong {
  display: block;
  margin-top: 6px;
  color: #171411;
  font-size: 35px;
  line-height: 0.9;
  font-weight: 850;
  white-space: nowrap;
}

.owner-stat-card strong small {
  margin-left: 6px;
  color: var(--dark);
  font-size: 19px;
  font-weight: 760;
}

.owner-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(31, 117, 103, 0.12);
}

.owner-stat-card.is-new .owner-stat-icon {
  color: var(--brand);
  background: rgba(31, 117, 103, 0.12);
}

.owner-stat-card.is-preparing .owner-stat-icon {
  color: #c26512;
  background: rgba(194, 101, 18, 0.13);
}

.owner-stat-card.is-ready .owner-stat-icon {
  color: #6c31c9;
  background: rgba(108, 49, 201, 0.12);
}

.owner-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  pointer-events: auto;
}

.owner-menu-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(33, 29, 25, 0.28);
  animation: ownerMenuBackdropIn 220ms ease both;
}

.owner-menu-drawer {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 18px;
  background: #fff;
  box-shadow: 20px 0 50px rgba(33, 29, 25, 0.18);
  will-change: transform, opacity;
  animation: drawerIn 240ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.owner-menu-layer.is-closing {
  pointer-events: none;
}

.owner-menu-layer.is-closing .owner-menu-backdrop {
  animation: ownerMenuBackdropOut 200ms ease both;
}

.owner-menu-layer.is-closing .owner-menu-drawer {
  animation: drawerOut 200ms cubic-bezier(0.38, 0, 0.2, 1) both;
}

.owner-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owner-menu-head strong {
  color: var(--dark);
  font-size: 24px;
  font-weight: 680;
}

.owner-menu-list,
.owner-menu-section {
  display: grid;
  gap: 8px;
}

.owner-menu-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.owner-menu-section > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.owner-menu-item {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  background: transparent;
  font-size: 18px;
  font-weight: 620;
  text-align: left;
}

.owner-menu-item:hover,
.owner-menu-item.is-selected {
  color: #fff;
  background: var(--accent);
}

.owner-menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@keyframes drawerIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes drawerOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes ownerMenuBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ownerMenuBackdropOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.owner-notice {
  margin: 0 0 10px;
  border: 1px solid rgba(31, 117, 103, 0.28);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #14594e;
  background: rgba(31, 117, 103, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.owner-image-notice {
  margin: 0 0 10px;
  border: 1px solid rgba(31, 117, 103, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #14594e;
  background: rgba(31, 117, 103, 0.08);
  font-size: 14px;
  font-weight: 650;
}

.super-admin-page {
  --brand: #1f7567;
  --brand-dark: #14594e;
  --accent: #1f7567;
  --line: #e5e7eb;
  --surface: #f6f7f9;
  --soft: #f3f4f6;
  --dark: #111827;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  color: var(--dark);
  background: #f6f7f9;
}

.super-admin-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.super-admin-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid #e6e8ec;
  padding: 22px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  background: #fff;
}

.super-admin-brand {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.super-admin-brand > i {
  color: var(--brand);
}

.super-admin-brand div {
  display: grid;
  gap: 3px;
}

.super-admin-brand strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 760;
}

.super-admin-brand span,
.super-admin-sidebar-foot span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
}

.super-admin-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.super-admin-nav button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #4b5563;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  text-align: left;
  cursor: pointer;
}

.super-admin-nav button:hover {
  background: #f3f4f6;
}

.super-admin-nav button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand);
}

.super-admin-sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 4px;
}

.super-admin-sidebar-foot strong {
  color: #111827;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

/* sidebar hamburger toggle + collapsed icon rail */
.super-admin-burger {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #e8f2ef;
  cursor: pointer;
  transition: background .14s ease;
}

.super-admin-burger:hover {
  background: #dbeae5;
}

.super-admin-shell.is-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.super-admin-shell.is-collapsed .super-admin-sidebar {
  padding: 22px 12px;
}

.super-admin-shell.is-collapsed .super-admin-brand {
  justify-content: center;
}

.super-admin-shell.is-collapsed .super-admin-brand-name,
.super-admin-shell.is-collapsed .super-admin-sidebar-foot {
  display: none;
}

.super-admin-shell.is-collapsed .super-admin-nav button {
  justify-content: center;
  padding: 0;
}

.super-admin-shell.is-collapsed .super-admin-nav button span {
  display: none;
}

.super-admin-workspace {
  min-width: 0;
  padding: 24px 28px 44px;
}

.super-admin-topbar {
  min-height: 62px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.super-admin-topbar span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
}

.super-admin-topbar h1 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: 0;
}

.super-admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.super-admin-top-actions .secondary-button {
  gap: 7px;
}

.super-summary-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.super-summary-grid article {
  min-height: 82px;
  border: 1px solid #e8edf1;
  border-radius: 12px;
  padding: 15px 16px;
  display: grid;
  align-content: center;
  gap: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 33, 28, 0.03), 0 8px 20px rgba(16, 33, 28, 0.04);
}

.super-summary-grid article:last-child {
  border-color: #cfe6df;
  background: linear-gradient(180deg, #f3faf7 0%, #ffffff 100%);
}

.super-summary-grid article:last-child strong {
  color: var(--brand);
}

.super-summary-grid span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 680;
}

.super-summary-grid strong {
  color: #111827;
  font-size: 23px;
  line-height: 1;
  font-weight: 760;
}

.super-panel {
  border: 1px solid #e8edf1;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 33, 28, 0.03), 0 10px 26px rgba(16, 33, 28, 0.05);
}

.super-panel-head {
  min-height: 44px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.super-panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 720;
}

.super-panel-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.super-panel-head > strong {
  color: var(--brand);
  font-size: 20px;
  font-weight: 760;
  white-space: nowrap;
}

.super-panel-head select,
.super-status-control select,
.super-admin-row select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--dark);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
}

.super-admin-table {
  display: grid;
  gap: 8px;
}

.super-admin-row {
  border: 1px solid #e8edf1;
  border-radius: 10px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.05fr) 92px 60px minmax(160px, 0.95fr);
  gap: 14px;
  align-items: center;
  background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.super-store-link {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: #111827;
  font: inherit;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.super-store-link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.super-status-cell {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
}

.super-status-cell select {
  width: 100%;
  max-width: 200px;
}

.super-chart-wrap {
  position: relative;
  height: 260px;
}

.super-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.super-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 13px 8px 9px;
  background: #fff;
  color: #4b5563;
  font: inherit;
  font-size: 14px;
  font-weight: 660;
  cursor: pointer;
  transition: color .14s ease, border-color .14s ease;
}

.super-back-link:hover {
  color: var(--brand);
  border-color: #cfe0da;
}

.super-admin-row:not(.is-head):hover {
  border-color: #cfe0da;
  box-shadow: 0 6px 16px rgba(16, 33, 28, 0.06);
}

.super-admin-row.is-compact {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) 92px 60px 176px 110px;
}

.super-admin-row.is-head {
  min-height: 34px;
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  color: #6b7280;
  background: transparent;
  font-size: 12px;
  font-weight: 720;
}

.super-admin-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.super-admin-row strong {
  min-width: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.super-admin-row small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.super-status-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #334155;
  background: #f1f5f9;
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
}

.super-status-pill.is-active {
  color: #047857;
  background: #d1fae5;
}

.super-status-pill.is-pending {
  color: #92400e;
  background: #fef3c7;
}

.super-status-pill.is-suspended {
  color: #991b1b;
  background: #fee2e2;
}

.super-status-pill.is-running {
  color: #075985;
  background: #e0f2fe;
}

.super-row-actions {
  display: grid;
  gap: 8px;
}

.super-row-actions .secondary-button,
.super-row-actions a,
.super-detail-title a {
  min-height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}

.super-row-actions a,
.super-detail-title a {
  color: #fff;
  background: var(--accent);
}

.super-detail-layout,
.super-stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.6fr);
  gap: 16px;
  align-items: start;
}

.super-detail-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.super-detail-title h3 {
  margin: 10px 0 5px;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 760;
}

.super-detail-title p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

.super-detail-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.super-detail-list div,
.super-settings-grid article,
.super-stat-blocks article {
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 6px;
  background: #fff;
}

.super-detail-list dt,
.super-settings-grid span,
.super-stat-blocks span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 680;
}

.super-detail-list dd {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.super-status-control {
  display: grid;
  gap: 12px;
}

.super-status-control p,
.super-settings-grid p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.super-owner-list {
  display: grid;
  gap: 8px;
}

.super-owner-list article {
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) 96px;
  gap: 14px;
  align-items: center;
}

.super-owner-list div {
  display: grid;
  gap: 3px;
}

.super-owner-list strong,
.super-settings-grid strong,
.super-stat-blocks strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.super-owner-list span {
  color: #6b7280;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.super-stat-blocks,
.super-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.super-revenue-list {
  display: grid;
  gap: 12px;
}

.super-revenue-list article {
  display: grid;
  gap: 8px;
}

.super-revenue-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.super-revenue-list strong {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.super-revenue-list span {
  color: #6b7280;
  font-size: 13px;
  white-space: nowrap;
}

.super-revenue-list i {
  height: 9px;
  border-radius: 999px;
  display: block;
  background: linear-gradient(90deg, var(--accent) var(--bar), #eef2f6 var(--bar));
}

.super-analytics {
  display: grid;
  gap: 16px;
}

.super-analytics-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.super-analytics-actions .secondary-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  gap: 6px;
  font-size: 13px;
  font-weight: 720;
}

.super-analytics-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  display: flex;
  gap: 3px;
  background: #f9fafb;
}

.super-analytics-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #4b5563;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.super-analytics-tabs button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

.super-analytics-tabs.is-secondary button[aria-pressed="true"] {
  color: var(--brand-dark);
  background: rgba(31, 117, 103, 0.12);
}

.super-analytics-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.super-analytics-meta > span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.super-analytics-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.super-analytics-summary article {
  min-height: 92px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: #fff;
}

.super-analytics-summary span,
.super-analytics-summary em,
.super-product-list em,
.super-region-list span,
.super-trend-list span,
.super-analytics-store-row small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 650;
}

.super-analytics-summary strong {
  color: #111827;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 760;
}

.super-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.super-trend-list,
.super-region-list,
.super-product-list,
.super-weather-list,
.super-weather-daily-list {
  display: grid;
  gap: 10px;
}

.super-trend-list article,
.super-region-list article,
.super-product-list article,
.super-weather-list article,
.super-weather-daily-list article {
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.super-trend-list article,
.super-region-list article,
.super-weather-list article,
.super-weather-daily-list article {
  display: grid;
  gap: 8px;
}

.super-trend-list article {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
}

.super-trend-list time {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 760;
}

.super-trend-list div,
.super-region-list div,
.super-product-list div,
.super-weather-list div,
.super-weather-daily-list div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.super-trend-list strong,
.super-region-list strong,
.super-product-list strong,
.super-product-list b,
.super-weather-list strong,
.super-weather-daily-list strong,
.super-weather-daily-list b,
.super-analytics-store-row strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 720;
}

.super-trend-list i,
.super-region-list i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  display: block;
  background: linear-gradient(90deg, var(--accent) var(--bar), #eef2f6 var(--bar));
}

.super-region-list article {
  grid-template-columns: minmax(0, 1fr) auto 78px;
  align-items: center;
}

.super-region-list article.is-selected {
  border-color: rgba(31, 117, 103, 0.45);
  background: rgba(31, 117, 103, 0.05);
}

.super-region-list .secondary-button,
.super-analytics-store-row .secondary-button {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 720;
}

.super-weather-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.super-weather-list span,
.super-weather-daily-list span {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.super-weather-daily-list article {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
}

.super-weather-daily-list time {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 760;
}

.super-weather-daily-list b {
  white-space: nowrap;
}

.super-product-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.super-product-list article > span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: rgba(31, 117, 103, 0.12);
  font-size: 12px;
  font-weight: 780;
}

.super-product-list b {
  white-space: nowrap;
}

.super-analytics-store-row {
  min-width: 1160px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(230px, 1.2fr) 150px 150px 92px 92px 80px;
  gap: 14px;
  align-items: center;
  background: #fff;
}

.super-analytics-store-row.is-head {
  min-height: 34px;
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  color: #6b7280;
  background: transparent;
  font-size: 12px;
  font-weight: 720;
}

.super-analytics-store-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.super-ai-list,
.super-ai-image-list,
.super-ai-usage-table {
  display: grid;
  gap: 10px;
}

.super-ai-list article,
.super-ai-image-list article,
.super-ai-usage-row {
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 12px;
  align-items: center;
  background: #fff;
}

.super-ai-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.super-ai-image-list article {
  grid-template-columns: 58px minmax(0, 1fr) 92px;
}

.super-ai-usage-row {
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(150px, 1fr) 74px 118px;
}

.super-ai-usage-row.is-head {
  min-height: 34px;
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  color: #6b7280;
  background: transparent;
  font-size: 12px;
  font-weight: 720;
}

.super-ai-list div,
.super-ai-image-list div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.super-ai-list strong,
.super-ai-image-list strong,
.super-ai-usage-row strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 720;
}

.super-ai-list span,
.super-ai-image-list span,
.super-ai-image-list small,
.super-ai-image-list em,
.super-ai-usage-row span {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.super-ai-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #f3f4f6;
  overflow: hidden;
}

.super-ai-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.super-store-report {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.alert-toggle.is-on {
  color: #fff;
  background: var(--accent);
}

.pickup-delay-toggle.is-on,
.settlement-action.is-on,
.store-toggle.is-open-action,
.owner-store-open {
  color: #fff;
  background: var(--accent);
}

.owner-store-closed {
  color: #fff;
  background: var(--brand);
}

.filter-row {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-bottom: 16px;
  gap: 10px;
}

.filter-button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

.settlement-page {
  display: grid;
  gap: 12px;
}

.settlement-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settlement-head > div,
.settlement-items,
.settlement-orders {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.settlement-head > div {
  min-height: 94px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.settlement-head span,
.settlement-items h2,
.settlement-orders h2 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.settlement-head strong {
  color: var(--dark);
  font-size: 30px;
  line-height: 1;
}

.settlement-items,
.settlement-orders {
  padding: 14px;
}

.owner-stats {
  display: grid;
  gap: 16px;
}

.stats-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.stats-topline h2 {
  margin: 0 0 4px;
  color: var(--dark);
  font-size: 28px;
  line-height: 1.1;
}

.stats-topline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stats-period-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: inline-flex;
  padding: 4px;
  gap: 4px;
}

.stats-period-button {
  min-width: 72px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.stats-period-button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.stats-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-head > div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 9px;
  box-shadow: 0 10px 24px rgba(20, 24, 32, 0.05);
}

.stats-head span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
}

.stats-head strong {
  color: var(--dark);
  font-size: 30px;
  line-height: 1;
}

.stats-head small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(20, 24, 32, 0.05);
}

.stats-panel-wide {
  grid-column: 1 / -1;
}

.stats-panel-title {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.stats-panel-title h2 {
  margin: 0;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.2;
}

.stats-panel-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.stats-panel-title-stack {
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 10px;
}

.stats-panel-title-stack > div {
  display: grid;
  gap: 3px;
}

.stats-inline-filters {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 3px;
  background: #f6f8fa;
}

.stats-filter-chip {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.stats-filter-chip[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

.owner-reports {
  display: grid;
  gap: 16px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-summary-grid article {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 24, 32, 0.05);
}

.report-summary-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.report-summary-grid strong {
  color: var(--dark);
  font-size: 28px;
  line-height: 1;
}

.report-summary-grid small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 14px;
}

.report-note-panel {
  border: 1px solid rgba(31, 117, 103, 0.14);
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  background: #f4faf8;
}

.report-note-panel p {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #14594e;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 680;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 14px;
}

.report-weather-list {
  display: grid;
  gap: 12px;
}

.report-weather-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 14px;
  align-items: center;
}

.report-weather-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-weather-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14594e;
  background: rgba(31, 117, 103, 0.1);
}

.report-weather-main div,
.report-weather-values {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.report-weather-main strong,
.report-weather-values strong {
  color: var(--dark);
  font-size: 16px;
  line-height: 1.2;
}

.report-weather-main em,
.report-weather-values span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 650;
}

.report-weather-values {
  text-align: right;
}

.report-weather-list i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  display: block;
  background: linear-gradient(90deg, var(--accent) var(--bar), #eef2f6 var(--bar));
}

.report-daily-list {
  max-height: 460px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 3px;
}

.report-daily-list article {
  min-height: 64px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
}

.report-daily-list time {
  color: #14594e;
  font-size: 15px;
  font-weight: 820;
}

.report-daily-list div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.report-daily-list strong {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.2;
}

.report-daily-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-daily-list em {
  color: var(--dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.owner-insight-card {
  position: relative;
  border: 1px solid rgba(31, 117, 103, 0.22);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f4faf8 100%);
  box-shadow: 0 12px 28px rgba(20, 89, 78, 0.08);
}

.owner-insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.owner-insight-card.is-locked {
  border-color: rgba(20, 24, 32, 0.1);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 24, 32, 0.05);
}

.owner-insight-card.is-locked::before {
  background: #9aa4ad;
}

.owner-insight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owner-insight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #14594e;
  font-size: 14px;
  font-weight: 820;
}

.owner-insight-top > span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #14594e;
  background: rgba(31, 117, 103, 0.1);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.owner-insight-card h2 {
  margin: 0;
  color: var(--dark);
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.owner-insight-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 620;
}

.owner-insight-windows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-insight-window {
  min-height: 86px;
  border: 1px solid rgba(31, 117, 103, 0.14);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.owner-insight-window.is-busy {
  border-color: rgba(31, 117, 103, 0.28);
  background: rgba(31, 117, 103, 0.08);
}

.owner-insight-window.is-quiet {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.9);
}

.owner-insight-window strong {
  color: #14594e;
  font-size: 17px;
  line-height: 1.15;
}

.owner-insight-window span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 680;
}

.owner-insight-foot {
  border-top: 1px solid rgba(31, 117, 103, 0.12);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.owner-insight-foot strong {
  color: #14594e;
  white-space: nowrap;
}

.owner-insight-progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf1f3;
}

.owner-insight-progress i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.owner-insight-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  padding: max(22px, env(safe-area-inset-top)) 18px 18px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(8px);
  animation: insightBackdropIn 160ms ease-out;
}

.owner-insight-dialog {
  width: min(560px, 100%);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.26);
  animation: insightDialogIn 210ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.owner-insight-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owner-insight-dialog-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.owner-insight-dialog-head h2 {
  margin: 2px 0 0;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.15;
}

.owner-insight-dialog .owner-insight-card {
  box-shadow: none;
}

.owner-insight-dialog .owner-insight-windows {
  grid-template-columns: 1fr;
}

.owner-insight-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.owner-insight-actions .primary-button,
.owner-insight-actions .secondary-button {
  min-height: 46px;
  justify-content: center;
}

@keyframes insightBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes insightDialogIn {
  from {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.stats-chart-box {
  position: relative;
  width: 100%;
  height: 290px;
}

.stats-line-chart {
  height: 330px;
}

.stats-bar-chart {
  height: 270px;
}

.stats-product-chart {
  height: 360px;
}

.stats-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.stats-floating-tooltip {
  position: fixed;
  z-index: 120;
  min-width: 154px;
  border: 1px solid rgba(20, 24, 32, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(20, 24, 32, 0.16);
  pointer-events: none;
}

.stats-floating-tooltip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stats-floating-tooltip strong {
  color: var(--dark);
  font-size: 14px;
  line-height: 1.2;
}

.stats-floating-tooltip em {
  color: var(--dark);
  font-size: 19px;
  line-height: 1;
  font-style: normal;
  font-weight: 860;
}

.stats-tooltip-detail {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  display: grid;
  gap: 4px;
}

.stats-tooltip-detail b {
  color: var(--dark);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 720;
}

.stats-single-bar i {
  display: block;
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 117, 103, 0.85), var(--accent));
}

.legend-dot.is-revenue {
  background: var(--accent);
}

.legend-dot.is-quantity {
  background: #c26512;
}

.legend-dot.is-reservation {
  background: #4b7fd2;
}

.stats-list-row strong,
.stats-product-row em,
.stats-product-row b {
  color: var(--dark);
  font-size: 17px;
  line-height: 1.2;
  text-align: right;
}

.stats-list-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  font-weight: 760;
  text-align: right;
}

.stats-legend {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.stats-list-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 58px 48px;
  align-items: center;
  gap: 10px;
}

.stats-single-bar {
  min-height: 8px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.stats-product-row {
  min-height: 58px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 64px 96px;
  align-items: center;
  gap: 12px;
}

.stats-product-row:first-child {
  border-top: 0;
}

.stats-product-row strong {
  display: block;
  color: var(--dark);
  font-size: 17px;
}

.stats-product-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.stats-product-row em {
  font-style: normal;
}

.stats-product-row b {
  font-weight: 850;
}

.settlement-item-list {
  margin-top: 10px;
  display: grid;
  gap: 0;
}

.settlement-item {
  min-height: 48px;
  border-top: 1px solid rgba(230, 223, 214, 0.9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  font-size: 17px;
}

.settlement-item span {
  color: var(--dark);
  font-weight: 700;
}

.settlement-item strong {
  color: var(--accent);
  font-size: 18px;
}

.settlement-item em {
  color: var(--dark);
  font-style: normal;
  font-weight: 700;
}

.settlement-orders .order-list {
  margin-top: 12px;
}

.owner-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.owner-lane {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.owner-lane-head {
  min-height: 40px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.owner-lane-head strong {
  color: var(--dark);
  font-size: 18px;
}

.owner-lane-head span {
  min-width: 34px;
  min-height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dark);
  font-size: 14px;
  font-weight: 760;
}

.owner-lane-list {
  display: grid;
  gap: 10px;
}

.lane-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px 10px;
  text-align: center;
  background: rgba(255, 253, 248, 0.7);
}

.order-list {
  display: grid;
  gap: 14px;
}

.order-card {
  min-height: 190px;
  border: 1px solid rgba(230, 223, 214, 0.92);
  border-radius: 10px;
  padding: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 260px;
  gap: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 5px 0 0 var(--accent), 0 8px 22px rgba(42, 34, 29, 0.06);
}

.order-card.is-new {
  box-shadow: inset 5px 0 0 var(--brand), 0 8px 22px rgba(31, 117, 103, 0.08);
}

.order-card.is-preparing {
  box-shadow: inset 5px 0 0 #c26512, 0 8px 22px rgba(194, 101, 18, 0.08);
}

.order-card.is-ready {
  box-shadow: inset 5px 0 0 var(--accent), 0 8px 22px rgba(31, 117, 103, 0.08);
}

.order-card.is-canceled {
  grid-template-columns: 340px minmax(0, 1fr) 260px;
  box-shadow: inset 5px 0 0 var(--muted), 0 8px 22px rgba(42, 34, 29, 0.05);
}

.order-meta,
.order-main,
.order-side {
  min-width: 0;
  padding: 24px 26px;
}

.order-meta,
.order-main {
  border-right: 1px solid rgba(230, 223, 214, 0.8);
}

.order-meta {
  display: grid;
  align-content: start;
  gap: 22px;
}

.order-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.order-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.order-number {
  color: var(--dark);
  font-size: 34px;
  line-height: 1;
}

.pickup-time {
  width: fit-content;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #14594e;
  background: rgba(31, 117, 103, 0.13);
  font-size: 21px;
  font-weight: 840;
}

.order-time {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 760;
}

.badge {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: var(--muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 830;
}

.status-new {
  background: var(--brand);
}

.status-preparing {
  background: #a46413;
}

.status-ready {
  background: var(--accent);
}

.status-completed {
  background: var(--muted);
}

.status-canceled {
  background: var(--danger);
}

.order-card p {
  margin: 5px 0;
  line-height: 1.4;
}

.order-customer-name {
  color: var(--muted);
  font-size: 19px;
  font-weight: 720;
}

.order-contact-name {
  min-height: 44px;
  border-radius: 8px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171411;
  background: #f5f7f5;
  font-size: 22px;
  font-weight: 850;
  text-align: center;
}

.order-customer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-customer p {
  margin-right: auto;
}

.call-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #14594e;
  background: rgba(31, 117, 103, 0.12);
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
}

.call-button:hover {
  color: #fff;
  background: var(--accent);
}

.order-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.order-card li {
  min-height: 56px;
  border-top: 0;
  padding: 8px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  font-size: 28px;
  line-height: 1.12;
}

.order-item-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.order-card .order-item-name {
  color: var(--dark);
  font-size: 29px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.order-card .order-item-qty {
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 850;
  white-space: nowrap;
}

.order-card .order-item-amount {
  color: var(--dark);
  font-size: 28px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.order-total {
  margin-top: 14px;
  border-top: 2px solid rgba(230, 223, 214, 0.9);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--dark);
  font-size: 32px;
  font-weight: 850;
}

.order-total::before {
  content: "합계";
  color: var(--dark);
  font-size: 24px;
  font-weight: 800;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.order-side .status-button {
  flex: 1 1 auto;
  width: 100%;
  min-height: 62px;
  font-size: 22px;
  font-weight: 850;
}

.order-side .status-button.is-primary-action {
  flex-basis: 100%;
}

.order-side .status-button.is-revert,
.order-side .status-button.is-cancel {
  flex: 1 1 0;
  width: auto;
  min-width: 90px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 750;
}

.status-button.is-revert {
  color: var(--dark);
  background: var(--soft);
  border: 1px solid var(--line);
}

.status-button.is-revert:hover {
  background: #e9ece8;
}

.status-button.is-cancel {
  color: #b4341f;
  background: #fdecea;
  border: 1px solid rgba(180, 52, 31, 0.28);
}

.status-button.is-cancel:hover {
  background: #fbdbd6;
}

.status-button.is-primary-action {
  color: #fff;
  background: var(--accent);
}

.status-button.is-action-preparing {
  color: #fff;
  background: var(--accent);
}

.status-button.is-action-ready {
  color: #fff;
  background: #c26512;
}

.status-button.is-action-ready:hover {
  background: #a9530f;
}

.status-button.is-action-completed {
  color: #fff;
  background: #253740;
}

.status-button.is-action-completed:hover {
  background: #15242c;
}

.delete-button {
  background: rgba(180, 52, 31, 0.1);
}

.owner-board .order-card {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
}

.owner-board .order-number {
  flex: 1 1 100%;
  font-size: 30px;
}

.owner-board .pickup-time {
  min-height: 38px;
  font-size: 16px;
}

.owner-board .order-time {
  margin-left: 0;
}

.owner-board .order-customer {
  display: grid;
  gap: 8px;
}

.owner-board .order-customer p {
  margin: 0;
  font-size: 14px;
}

.owner-board .call-button {
  min-height: 40px;
  justify-content: center;
}

.owner-board .order-card ul {
  gap: 0;
}

.owner-board .order-total {
  font-size: 22px;
}

.owner-board .status-actions {
  grid-template-columns: 1fr 1fr;
}

.owner-board .status-actions .delete-button {
  grid-column: 1 / -1;
}

.owner-settings-page {
  display: grid;
  gap: 18px;
}

@keyframes ownerAppSurfaceIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-owner-native-app .owner-summary,
.is-owner-native-app .filter-row,
.is-owner-native-app .order-list,
.is-owner-native-app .owner-settings-page,
.is-owner-native-app .stats-page,
.is-owner-native-app .owner-onboarding-page {
  animation: ownerAppSurfaceIn 180ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  .is-owner-native-app .owner-summary,
  .is-owner-native-app .filter-row,
  .is-owner-native-app .order-list,
  .is-owner-native-app .owner-settings-page,
  .is-owner-native-app .stats-page,
  .is-owner-native-app .owner-onboarding-page {
    animation: none;
  }
}

.settings-topline {
  max-width: 100%;
  min-width: 0;
  border-bottom: 1px solid rgba(230, 223, 214, 0.86);
  padding: 2px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.settings-topline h2 {
  margin: 0;
  color: var(--dark);
  font-size: 28px;
  line-height: 1.12;
}

.settings-topline p,
.settings-note,
.store-map-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.settings-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-draft-badge {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #8a3c08;
  background: #fff3db;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.owner-menu-editor {
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.owner-menu-guide {
  border: 1px solid rgba(31, 117, 103, 0.22);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
}

.owner-menu-guide span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.owner-menu-guide h3 {
  margin: 4px 0 6px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.25;
}

.owner-menu-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.owner-menu-guide ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.owner-menu-guide li {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.owner-menu-guide li strong {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.owner-menu-guide-actions {
  display: grid;
  gap: 8px;
}

.owner-menu-editor-head,
.owner-menu-edit-row {
  display: grid;
  grid-template-columns: 68px 96px minmax(170px, 1fr) minmax(116px, 0.68fr) 94px 80px 116px;
  gap: 10px;
  align-items: center;
  min-width: 880px;
}

.owner-menu-editor.is-sort-mode .owner-menu-editor-head,
.owner-menu-editor.is-sort-mode .owner-menu-edit-row {
  grid-template-columns: 52px 68px 96px minmax(170px, 1fr) minmax(116px, 0.68fr) 94px 80px 116px;
  min-width: 940px;
}

.owner-menu-editor-head {
  padding: 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.owner-menu-editor:not(.is-sort-mode) .menu-sort-head,
.owner-menu-editor:not(.is-sort-mode) .menu-row-controls {
  display: none;
}

.owner-menu-swipe-row {
  position: relative;
  min-width: 880px;
  border-radius: 8px;
  overflow: hidden;
}

.owner-menu-editor.is-sort-mode .owner-menu-swipe-row {
  min-width: 940px;
}

.menu-swipe-delete {
  position: absolute;
  inset: 0 0 0 auto;
  width: 82px;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #b4341f;
  cursor: pointer;
}

.owner-menu-edit-row {
  position: relative;
  z-index: 1;
  min-height: 64px;
  border: 1px solid rgba(230, 223, 214, 0.92);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 180ms ease;
  touch-action: pan-y;
  will-change: transform;
}

.owner-menu-swipe-row.is-swipe-open .owner-menu-edit-row {
  transform: translateX(-82px);
}

.owner-menu-edit-row.is-dragging {
  border-color: rgba(31, 117, 103, 0.48);
  background: #f6fffb;
  box-shadow: 0 18px 32px rgba(31, 117, 103, 0.18);
  opacity: 0.97;
  z-index: 3;
}

.owner-menu-edit-row.is-drop-target {
  border-color: rgba(31, 117, 103, 0.62);
  box-shadow: inset 0 0 0 2px rgba(31, 117, 103, 0.16), 0 0 0 4px rgba(31, 117, 103, 0.06);
}

.menu-row-controls {
  display: grid;
  justify-items: center;
}

.menu-drag-handle {
  width: 38px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  cursor: grab;
  touch-action: none;
}

.menu-drag-handle:active {
  cursor: grabbing;
  color: #fff;
  background: var(--accent);
}

.menu-remove-button {
  width: 38px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #b4341f;
  background: #fdecea;
  cursor: pointer;
}

.menu-remove-button:hover {
  background: #fbdbd6;
}

.secondary-button.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.owner-menu-sort-list {
  display: grid;
  gap: 10px;
}

.owner-menu-sort-row {
  min-height: 92px;
  border: 1px solid rgba(230, 223, 214, 0.92);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 52px 38px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.owner-menu-sort-row .menu-drag-handle {
  width: 52px;
  height: 60px;
  color: #fff;
  background: var(--accent);
}

.owner-menu-sort-row .menu-sort-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(31, 117, 103, 0.1);
  font-size: 16px;
  font-weight: 800;
}

.owner-menu-sort-row img {
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.owner-menu-sort-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.owner-menu-sort-row strong {
  color: var(--dark);
  font-size: 20px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-menu-sort-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}

.owner-menu-sort-row em {
  justify-self: end;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--accent);
  background: rgba(31, 117, 103, 0.1);
  font-size: 14px;
  font-style: normal;
  font-weight: 780;
  white-space: nowrap;
}

.owner-menu-sort-row.is-dragging {
  border-color: rgba(31, 117, 103, 0.56);
  background: #f6fffb;
  box-shadow: 0 16px 32px rgba(31, 117, 103, 0.16);
  transform: scale(1.01);
  z-index: 2;
}

.owner-menu-sort-row.is-drop-target {
  border-color: rgba(31, 117, 103, 0.62);
  box-shadow: inset 0 0 0 2px rgba(31, 117, 103, 0.14);
}

.owner-menu-edit-row input,
.menu-image-edit input,
.store-settings-form input,
.store-settings-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(210, 201, 190, 0.95);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--dark);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
}

.owner-menu-edit-row input:focus,
.menu-image-edit input:focus,
.store-settings-form input:focus,
.store-settings-form select:focus {
  outline: 2px solid rgba(31, 117, 103, 0.24);
  border-color: rgba(31, 117, 103, 0.74);
}

.menu-image-edit {
  display: grid;
  gap: 7px;
}

.menu-image-button,
.hero-image-picker {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  display: grid;
  background: #fff;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
}

.menu-image-button {
  min-height: 60px;
  place-items: center;
}

.menu-image-button:hover,
.hero-image-picker:hover {
  border-color: rgba(31, 117, 103, 0.54);
  box-shadow: 0 0 0 3px rgba(31, 117, 103, 0.08);
}

.image-edit-button,
.image-enhance-button {
  min-height: 34px;
  border: 1px solid rgba(210, 201, 190, 0.95);
  border-radius: 8px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--dark);
  background: #fff;
  font-size: 12px;
  font-weight: 680;
}

.image-edit-button {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.image-edit-button:hover {
  background: #195f54;
}

.image-enhance-button:disabled,
.image-edit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hero-image-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-image-tools .image-edit-button {
  min-height: 38px;
  padding: 0 12px;
}

.menu-image-button img,
.hero-image-picker img {
  width: 100%;
  object-fit: cover;
  background: #f8fafc;
}

.menu-image-button img {
  aspect-ratio: 1;
}

.hero-image-picker img {
  aspect-ratio: 16 / 7;
}

.image-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(33, 29, 25, 0.34);
}

.image-picker-dialog {
  position: relative;
  width: min(360px, 100%);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  gap: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.image-picker-dialog h2 {
  margin: 0;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.2;
}

.image-picker-dialog p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.image-picker-actions {
  display: grid;
  gap: 8px;
}

.owner-settings-preview,
.owner-preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
}

.owner-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owner-preview-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.owner-preview-head strong {
  color: var(--dark);
  font-size: 15px;
  font-weight: 720;
}

.owner-hero-preview {
  min-height: 210px;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  color: var(--dark);
  background:
    linear-gradient(90deg, rgba(255, 246, 226, 0.98), rgba(255, 246, 226, 0.78), rgba(255, 246, 226, 0.1)),
    var(--preview-image, url("/images/mascot-banner.png")) center right / cover no-repeat;
}

.owner-hero-preview p,
.owner-hero-preview h3,
.owner-hero-preview span {
  margin: 0;
}

.owner-hero-preview p {
  color: #95522a;
  font-size: 13px;
  font-weight: 650;
}

.owner-hero-preview h3 {
  margin-top: 4px;
  color: var(--dark);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 760;
}

.owner-hero-preview span {
  margin-top: 6px;
  color: #5f4532;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 560;
}

.owner-menu-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.owner-menu-preview-card {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: #fff;
}

.owner-menu-preview-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.owner-menu-preview-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.owner-menu-preview-card strong,
.owner-menu-preview-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-menu-preview-card strong {
  color: var(--dark);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 720;
}

.owner-menu-preview-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.owner-menu-preview-card em {
  color: var(--dark);
  font-style: normal;
  font-size: 18px;
  font-weight: 760;
}

.store-settings-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  gap: 12px;
}

.owner-onboarding-page {
  position: relative;
  min-height: calc(100dvh - 52px);
  display: grid;
  align-content: start;
  gap: 26px;
  padding-top: 18px;
}

.owner-onboarding-page.is-building,
.owner-onboarding-page.is-done {
  min-height: 100dvh;
  align-content: center;
  place-content: center;
  padding-top: 0;
}

.owner-onboarding-exit {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.owner-onboarding-progress {
  justify-self: center;
  width: min(420px, 100%);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 117, 103, 0.12);
  box-shadow: inset 0 0 0 1px rgba(31, 117, 103, 0.08);
}

.owner-onboarding-progress span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f4f45 0%, #1f7567 54%, #58c69f 100%);
  box-shadow: 0 0 18px rgba(31, 117, 103, 0.28);
  transition: width 260ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.owner-onboarding-stage {
  min-height: min(620px, calc(100dvh - 130px));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.owner-onboarding-stage.is-wide {
  place-items: start center;
}

.owner-onboarding-page.is-building .owner-onboarding-stage,
.owner-onboarding-page.is-done .owner-onboarding-stage,
.owner-onboarding-page.is-building .owner-onboarding-stage.is-wide,
.owner-onboarding-page.is-done .owner-onboarding-stage.is-wide {
  width: 100%;
  min-height: 100dvh;
  place-items: center;
}

.owner-onboarding-question {
  width: min(620px, 100%);
  display: grid;
  gap: 18px;
  will-change: transform, opacity;
}

.owner-onboarding-stage.is-forward .owner-onboarding-question {
  animation: ownerOnboardingForwardIn 260ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.owner-onboarding-stage.is-back .owner-onboarding-question {
  animation: ownerOnboardingBackIn 240ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.owner-onboarding-stage.is-wide .owner-onboarding-question {
  width: min(920px, 100%);
}

.owner-onboarding-question h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

.owner-onboarding-question p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.owner-onboarding-field {
  display: grid;
  gap: 8px;
}

.owner-onboarding-field > span {
  color: var(--dark);
  font-size: 15px;
  font-weight: 780;
}

.owner-onboarding-field input,
.owner-onboarding-field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(210, 201, 190, 0.95);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--dark);
  background: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 650;
}

.owner-onboarding-field textarea {
  min-height: 132px;
  padding-top: 14px;
  resize: vertical;
}

.owner-onboarding-field input:focus,
.owner-onboarding-field textarea:focus {
  outline: 2px solid rgba(31, 117, 103, 0.24);
  border-color: rgba(31, 117, 103, 0.74);
}

.owner-mobility-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.owner-mobility-options label {
  min-height: 96px;
  border: 1px solid rgba(210, 201, 190, 0.95);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 5px;
  color: var(--dark);
  background: #fff;
}

.owner-mobility-options label.is-selected {
  border-color: rgba(31, 117, 103, 0.82);
  background: rgba(31, 117, 103, 0.08);
  box-shadow: inset 0 0 0 1px rgba(31, 117, 103, 0.22);
}

.owner-mobility-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.owner-mobility-options strong {
  font-size: 17px;
  font-weight: 780;
}

.owner-mobility-options em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.owner-mobility-options.is-compact label {
  min-height: 76px;
  padding: 13px 14px;
}

.store-mobility-setting {
  display: grid;
  gap: 8px;
}

.store-mobility-setting > span {
  color: var(--dark);
  font-size: 14px;
  font-weight: 760;
}

.owner-onboarding-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.owner-onboarding-hint {
  border-radius: 8px;
  padding: 13px 14px;
  color: #195f54;
  background: rgba(31, 117, 103, 0.1);
  font-weight: 680;
}

.owner-onboarding-hint strong {
  color: var(--accent);
}

.owner-onboarding-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-onboarding-actions .primary-button,
.owner-onboarding-actions .secondary-button {
  min-width: 136px;
}

.owner-onboarding-loader {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(31, 117, 103, 0.1);
}

.owner-onboarding-loader svg {
  animation: ownerLoadingSpin 900ms linear infinite;
}

.owner-onboarding-build,
.owner-onboarding-complete {
  min-height: auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  text-align: center;
}

.owner-onboarding-page.is-building .owner-onboarding-question,
.owner-onboarding-page.is-done .owner-onboarding-question {
  width: min(720px, 100%);
  min-height: auto;
  align-content: center;
}

.owner-onboarding-build h2,
.owner-onboarding-complete h2 {
  max-width: 720px;
  text-align: center;
}

.owner-loading-lines {
  position: relative;
  width: min(640px, 100%);
  min-height: 54px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
}

.owner-loading-lines span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  animation: ownerLoadingLine 12s ease-in-out infinite;
  animation-delay: calc(var(--line-index) * 3s);
}

.owner-onboarding-complete .completion-mark {
  margin: 0 auto;
}

.owner-onboarding-complete .primary-button {
  min-width: 220px;
  min-height: 56px;
  font-size: 18px;
}

.owner-onboarding-preview-wrap {
  width: min(430px, 100%);
}

@keyframes ownerLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ownerLoadingLine {
  0%,
  18% {
    opacity: 1;
    transform: translateY(0);
  }

  24%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes ownerOnboardingForwardIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ownerOnboardingBackIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.owner-onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 18px;
  align-items: start;
}

.owner-onboarding-form {
  display: grid;
  gap: 14px;
}

.owner-onboarding-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.owner-onboarding-section > strong {
  color: var(--dark);
  font-size: 16px;
  font-weight: 740;
}

.owner-onboarding-section label {
  display: grid;
  gap: 7px;
}

.owner-onboarding-section label span {
  color: var(--dark);
  font-size: 15px;
  font-weight: 760;
}

.owner-onboarding-section input,
.owner-onboarding-section select,
.owner-onboarding-section textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(210, 201, 190, 0.95);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--dark);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
}

.owner-onboarding-section textarea {
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
}

.owner-onboarding-section input:focus,
.owner-onboarding-section select:focus,
.owner-onboarding-section textarea:focus {
  outline: 2px solid rgba(31, 117, 103, 0.24);
  border-color: rgba(31, 117, 103, 0.74);
}

.owner-ai-fill-button,
.owner-onboarding-actions .primary-button {
  justify-self: start;
  min-width: 180px;
}

.store-settings-section > strong {
  color: var(--dark);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 720;
}

.customer-preview-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.customer-preview-link strong {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.store-location-section {
  border-bottom: 0;
  padding-bottom: 0;
}

.owner-alert-sound-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.owner-alert-preview-button {
  min-height: 44px;
  white-space: nowrap;
}

.store-address-control {
  position: relative;
  display: grid;
}

.store-address-control input {
  padding-right: 50px;
}

.address-location-button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 38px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(31, 117, 103, 0.1);
  transform: translateY(-50%);
}

.address-location-button:hover {
  color: #fff;
  background: var(--accent);
}

.address-location-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.address-location-button.is-loading svg {
  animation: ownerLoadingSpin 850ms linear infinite;
}

.switch-field {
  width: 58px;
  height: 34px;
  display: inline-flex;
  align-items: center;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-field span {
  position: relative;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: #d8d3ca;
  transition: background 160ms ease;
}

.switch-field span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(42, 34, 29, 0.18);
  transition: transform 160ms ease;
}

.switch-field input:checked + span {
  background: var(--accent);
}

.switch-field input:checked + span::after {
  transform: translateX(24px);
}

.store-settings-layout {
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 18px;
  align-items: start;
}

.store-settings-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.store-settings-form label {
  display: grid;
  gap: 7px;
}

.store-settings-form label span {
  color: var(--dark);
  font-size: 15px;
  font-weight: 780;
}

.store-coordinate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.store-map-panel {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.owner-location-map {
  min-height: 330px;
  border: 1px solid rgba(230, 223, 214, 0.92);
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f2;
}

.owner-location-map > span {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.radius-slider-field {
  display: grid;
  gap: 10px;
}

.radius-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.radius-slider-head strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 780;
}

.radius-slider-head em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.owner-radius-slider {
  margin: 12px 10px 4px;
}

.owner-radius-slider.noUi-target {
  border: 0;
  box-shadow: none;
  background: rgba(31, 117, 103, 0.16);
}

.owner-radius-slider .noUi-connect {
  background: var(--accent);
}

.owner-radius-slider .noUi-handle {
  border-color: rgba(31, 117, 103, 0.18);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(31, 117, 103, 0.18);
}

.owner-radius-slider .noUi-handle::before,
.owner-radius-slider .noUi-handle::after {
  background: rgba(31, 117, 103, 0.4);
}

.customer-preview-panel {
  width: min(390px, 100%);
  min-height: 0;
  display: grid;
  gap: 12px;
}

.customer-preview-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  background: #fff;
}

.customer-preview-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf8;
}

.customer-preview-qr-card {
  border: 1px solid rgba(31, 117, 103, 0.18);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 12px;
  align-items: center;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 117, 103, 0.07);
}

.customer-preview-qr-copy {
  display: grid;
  gap: 5px;
}

.customer-preview-qr-copy span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 820;
}

.customer-preview-qr-copy strong {
  color: var(--dark);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 830;
}

.customer-preview-qr-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.customer-preview-qr-canvas {
  width: 168px;
  height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  display: grid;
  place-items: center;
  background: #fff;
}

.customer-preview-qr-canvas canvas {
  display: block;
  width: 152px;
  height: 152px;
}

.customer-preview-qr-url {
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: rgba(31, 117, 103, 0.06);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customer-preview-qr-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.customer-preview-qr-actions button {
  min-height: 42px;
}

.customer-preview-intro {
  position: relative;
  min-height: 168px;
  padding: 24px 18px;
  display: flex;
  align-items: end;
  color: var(--dark);
  background:
    linear-gradient(90deg, rgba(255, 246, 226, 0.98), rgba(255, 246, 226, 0.76), rgba(255, 246, 226, 0.08)),
    var(--intro-image, url("/images/mascot-banner.png")) center right / cover no-repeat;
}

.customer-preview-intro-editable {
  cursor: pointer;
}

.customer-preview-intro-editable:hover {
  box-shadow: inset 0 0 0 2px rgba(31, 117, 103, 0.42);
}

.customer-preview-intro-editable:focus-visible {
  outline: 2px solid rgba(31, 117, 103, 0.72);
  outline-offset: -2px;
}

.customer-preview-intro > div {
  position: relative;
  z-index: 1;
}

.customer-preview-image-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(42, 34, 29, 0.14);
}

.customer-preview-image-edit:hover {
  color: #fff;
  background: var(--accent);
}

.customer-preview-intro p,
.customer-preview-intro h3,
.customer-preview-intro > div > span {
  margin: 0;
}

.customer-preview-intro p {
  margin-bottom: 4px;
  color: #95522a;
  font-size: 13px;
  font-weight: 600;
}

.customer-preview-intro h3 {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 750;
}

.customer-preview-intro > div > span {
  display: block;
  margin-top: 7px;
  color: #5f4532;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.customer-preview-order {
  padding: 12px 14px 16px;
  display: grid;
  gap: 12px;
}

.customer-preview-order .panel-title {
  border-bottom: 0;
  padding: 0;
}

.customer-preview-order .panel-title h4 {
  margin: 0;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.2;
}

.customer-preview-order .stepper button:disabled {
  opacity: 1;
  cursor: default;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .page {
    width: min(100% - 40px, 1040px);
  }

  .owner-page {
    width: min(100% - 32px, 1160px);
  }

  .super-admin-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .super-admin-workspace {
    padding: 20px;
  }

  .super-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .super-analytics-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .super-analytics-grid {
    grid-template-columns: 1fr;
  }

  .order-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .owner-head h1,
  .panel-title h1,
  .panel-title h2 {
    font-size: 24px;
  }

  .order-card {
    grid-template-columns: 250px minmax(0, 1fr) 210px;
    min-height: 176px;
  }

  .order-number {
    font-size: 30px;
  }

  .pickup-time {
    min-height: 42px;
    padding: 0 15px;
    font-size: 20px;
  }

  .order-card li {
    min-height: 58px;
  }

  .order-card .order-item-name {
    font-size: 28px;
  }

  .order-card .order-item-qty {
    font-size: 28px;
  }

  .order-card .order-item-amount {
    font-size: 26px;
  }

  .status-actions {
    grid-template-columns: 1fr;
  }

  .owner-menu-editor-head,
  .owner-menu-edit-row {
    grid-template-columns: 64px 96px minmax(170px, 1fr) 116px 92px 78px 108px;
  }

  .owner-menu-editor.is-sort-mode .owner-menu-editor-head,
  .owner-menu-editor.is-sort-mode .owner-menu-edit-row {
    grid-template-columns: 48px 64px 96px minmax(170px, 1fr) 116px 92px 78px 108px;
  }

  .owner-menu-sort-row {
    grid-template-columns: 50px 36px 66px minmax(0, 1fr) auto;
  }

  .store-settings-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  }

  .owner-location-map {
    min-height: 300px;
  }

  .owner-location-map > span {
    min-height: 300px;
  }
}

.status-button.danger:hover {
  background: var(--danger);
}

.mobile-order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(222, 216, 207, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 24px rgba(42, 34, 29, 0.12);
  backdrop-filter: blur(14px);
}

.mobile-order-summary {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.mobile-order-bar span,
.mobile-order-bar strong {
  display: inline;
  line-height: 1.2;
}

.mobile-order-bar span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.mobile-order-bar strong {
  color: var(--dark);
  font-size: 17px;
  font-weight: 760;
}

.mobile-order-bar.is-recent-order span {
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 700;
}

.mobile-order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
}

.mobile-order-actions .primary-button,
.mobile-order-actions .secondary-button {
  min-height: 48px;
  white-space: nowrap;
}

.mobile-map-button {
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.92);
}

.completion-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  box-sizing: border-box;
  padding: 0;
  display: grid;
  place-items: end center;
  background: rgba(33, 29, 25, 0.58);
  animation: backdropFade 220ms ease-out;
}

@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.completion-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  border-radius: 24px 24px 0 0;
  padding: 14px 28px max(24px, env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 -12px 44px rgba(33, 29, 25, 0.24);
  animation: drawerUp 260ms cubic-bezier(0.22, 1, 0.36, 1);
  max-height: calc(100svh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  will-change: transform;
}

/* 바텀시트(서랍) 상단 그래버 */
.completion-grabber {
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(33, 29, 25, 0.18);
}

@keyframes drawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.completion-sheet * {
  box-sizing: border-box;
}

.completion-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
}

.completion-close:hover {
  color: #fff;
  background: var(--accent);
}

.completion-hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-right: 52px;
}

.completion-mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
}

.completion-mark.is-canceled {
  background: var(--danger);
}

.completion-sheet h2 {
  margin: 0;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 760;
  letter-spacing: 0;
}

.completion-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

.completion-ticket {
  position: relative;
  margin-top: 26px;
  border: 1px solid rgba(230, 223, 214, 0.92);
  border-radius: 8px;
  padding: 20px 18px 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 117, 103, 0.04) 0 1px, transparent 1px 100%) 0 0 / 18px 18px,
    #fffdf9;
  box-shadow: 0 8px 18px rgba(33, 29, 25, 0.06);
}

.completion-ticket::before,
.completion-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(230, 223, 214, 0.92);
  border-radius: 999px;
  background: var(--panel);
  transform: translateY(-50%);
}

.completion-ticket::before {
  left: -14px;
}

.completion-ticket::after {
  right: -14px;
}

.completion-ticket span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 760;
}

.completion-ticket strong {
  color: var(--accent);
  font-size: 56px;
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

.completion-ticket small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 650;
}

.completion-live-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.completion-pickup-card {
  margin-top: 18px;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #f4f7ef;
}

.completion-pickup-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
}

.completion-pickup-card span,
.completion-pickup-card small {
  display: block;
  color: var(--dark);
  font-size: 14px;
  font-weight: 760;
}

.completion-pickup-card strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 29px;
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: 0;
}

.completion-pickup-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.completion-pickup-art {
  width: 74px;
  min-height: 66px;
  display: grid;
  grid-template-columns: 28px 44px;
  align-items: end;
  color: rgba(31, 117, 103, 0.8);
}

.completion-pickup-art svg:first-child {
  transform: translate(6px, 7px);
}

.completion-pickup-art svg:last-child {
  color: rgba(31, 117, 103, 0.55);
}

.status-steps {
  position: relative;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.status-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
}

.status-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 21px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  transform: translateX(-22px);
}

.status-step.is-done:not(:first-child)::before,
.status-step.is-current:not(:first-child)::before {
  background: rgba(31, 117, 103, 0.24);
}

.status-step span {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
}

.status-step strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 760;
}

.status-step em {
  min-height: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 650;
}

.status-steps.is-canceled {
  grid-template-columns: 1fr;
}

.status-steps.is-canceled .status-step::before {
  display: none;
}

.status-step.is-done span,
.status-step.is-current span {
  color: #fff;
  background: var(--accent);
}

.status-steps.is-canceled .status-step span {
  background: var(--danger);
}

.status-step.is-done strong,
.status-step.is-current strong {
  color: var(--accent);
}

.completion-order-section {
  margin-top: 18px;
}

.completion-order-section h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 780;
}

.completion-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.completion-lines {
  display: grid;
  padding: 10px 16px;
}

.completion-lines div {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed rgba(230, 223, 214, 0.9);
}

.completion-lines div:last-child {
  border-bottom: 0;
}

.completion-lines span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 760;
}

.completion-lines span i {
  width: 27px;
  height: 27px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  background: rgba(31, 117, 103, 0.08);
  font-style: normal;
}

.completion-lines em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 720;
  white-space: nowrap;
}

.completion-lines strong {
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.completion-total {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f8f3;
}

.completion-total span {
  color: var(--accent);
  font-size: 16px;
  font-weight: 780;
}

.completion-total strong {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  font-weight: 820;
  white-space: nowrap;
}

.completion-order-note {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.completion-shortcut {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.completion-shortcut span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.completion-cancel {
  margin-top: 12px;
}

.completion-secondary-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.completion-secondary-actions.is-single {
  grid-template-columns: 1fr;
}

.completion-secondary-actions .completion-extend,
.completion-secondary-actions .completion-cancel {
  margin: 0;
  min-width: 0;
}

.completion-secondary-actions .secondary-button,
.completion-cancel .secondary-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(78, 69, 55, 0.12);
  padding: 0 12px;
  color: #3d3529;
  background: #f7f3ec;
  font-size: 13px;
  white-space: nowrap;
}

.completion-secondary-actions .secondary-button:hover,
.completion-cancel .secondary-button:hover {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.completion-secondary-actions .secondary-button.danger,
.completion-cancel .secondary-button.danger {
  color: var(--danger-dark);
  border-color: rgba(180, 52, 31, 0.16);
  background: #faf3f0;
}

.completion-secondary-actions .secondary-button.danger:hover,
.completion-cancel .secondary-button.danger:hover {
  color: var(--danger-dark);
  border-color: rgba(180, 52, 31, 0.22);
  background: #f6e8e4;
}

.cancel-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.cancel-error {
  margin: 12px 0 0;
}

.cancel-confirm {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(180, 52, 31, 0.08);
}

.cancel-confirm p {
  margin: 0 0 10px;
  color: var(--danger-dark);
  font-size: 13px;
  line-height: 1.45;
}

.cancel-confirm div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.completion-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shortcut-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 18px;
  display: grid;
  place-items: end center;
  background: rgba(33, 29, 25, 0.54);
}

.shortcut-sheet {
  position: relative;
  width: min(100%, 420px);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(33, 29, 25, 0.24);
  animation: sheetUp 180ms ease-out;
}

.shortcut-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
}

.shortcut-sheet h2 {
  margin: 14px 0 4px;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.15;
}

.shortcut-sheet p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.shortcut-steps {
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.shortcut-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  display: grid;
  gap: 3px;
  background: var(--surface);
}

.shortcut-steps strong {
  color: var(--dark);
  font-size: 14px;
}

.shortcut-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@keyframes sheetUp {
  from {
    transform: translateY(16px);
  }

  to {
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .order-grid {
    grid-template-columns: 1fr;
  }

  .super-admin-shell,
  .super-admin-shell.is-collapsed {
    grid-template-columns: 1fr;
  }

  .super-admin-shell.is-collapsed .super-admin-brand-name,
  .super-admin-shell.is-collapsed .super-admin-sidebar-foot {
    display: revert;
  }

  .super-admin-shell.is-collapsed .super-admin-nav button {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .super-admin-shell.is-collapsed .super-admin-nav button span {
    display: inline;
  }

  .super-admin-sidebar {
    position: static;
    height: auto;
  }

  .super-admin-row,
  .super-admin-row.is-compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .super-admin-row.is-head {
    display: none;
  }

  .super-admin-workspace {
    padding: 18px 14px 32px;
  }

  .super-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .super-analytics-meta,
  .super-panel-head {
    flex-wrap: wrap;
  }

  .super-analytics-actions {
    justify-content: flex-start;
  }

  .super-analytics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .super-analytics-grid {
    grid-template-columns: 1fr;
  }

  .super-region-list article,
  .super-ai-list article,
  .super-ai-image-list article,
  .super-ai-usage-row {
    grid-template-columns: 1fr;
  }

  .super-ai-thumb {
    width: 100%;
    height: 120px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .owner-menu-guide {
    grid-template-columns: 1fr;
  }

  .owner-menu-guide-actions {
    grid-template-columns: 1fr;
  }

  .order-form-panel {
    position: static;
  }

  body:has(.mobile-order-bar) .page {
    padding-bottom: max(106px, calc(106px + env(safe-area-inset-bottom)));
  }

  .mobile-order-bar {
    display: flex;
  }

  body:has(.completion-backdrop) .mobile-order-bar {
    display: none;
  }
}

@media (max-width: 700px) {
  .owner-board {
    grid-template-columns: 1fr;
  }

  .owner-lane {
    min-height: auto;
  }

  .owner-lane-head {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: -10px -10px 10px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 16px, 960px);
    padding-top: 10px;
  }

  .super-summary-grid,
  .super-analytics-summary {
    grid-template-columns: 1fr;
  }

  .super-analytics-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .super-analytics-actions,
  .super-analytics-actions .secondary-button,
  .super-weather-list article,
  .super-weather-daily-list article {
    width: 100%;
  }

  .compact-page:has(.owner-auth-panel),
  .is-owner-native-app .compact-page:has(.owner-auth-panel) {
    width: min(100% - 24px, 520px);
  }

  .owner-auth-panel .panel-title,
  .owner-auth-form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .owner-auth-switch,
  .owner-legal-links {
    margin-left: 22px;
    margin-right: 22px;
  }

  .owner-mobility-options {
    grid-template-columns: 1fr;
  }

  .super-weather-list article,
  .super-weather-daily-list article {
    grid-template-columns: 1fr;
  }

  .order-page {
    width: 100%;
    padding-top: 0;
  }

  .order-page > :not(.intro),
  .intro > div {
    width: calc(100% - 28px);
  }

  .intro {
    min-height: 224px;
    margin-bottom: 12px;
    padding: 22px 0;
    background:
      linear-gradient(90deg, rgba(255, 246, 226, 0.98), rgba(255, 246, 226, 0.78), rgba(255, 246, 226, 0.12)),
      var(--intro-image, url("/images/mascot-banner.png")) 60% center / cover no-repeat;
  }

  .intro h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 12px;
  }

  .intro > div > span {
    max-width: 220px;
    font-size: 13px;
  }

  .intro-badges {
    max-width: 280px;
    margin-top: 13px;
    gap: 7px;
  }

  .intro-badges span {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .home-shortcut {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    margin-bottom: 8px;
    padding: 7px 0;
  }

  .home-shortcut .secondary-button:not(.icon-button) {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .owner-insight-card {
    padding: 16px;
  }

  .owner-insight-top,
  .owner-insight-foot {
    align-items: start;
    flex-direction: column;
  }

  .owner-insight-card h2 {
    font-size: 22px;
  }

  .owner-insight-windows {
    grid-template-columns: 1fr;
  }

  .owner-insight-dialog {
    align-self: end;
    border-radius: 12px 12px 0 0;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .owner-insight-actions {
    grid-template-columns: 1fr;
  }

  .home-shortcut .icon-button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .home-shortcut span {
    display: none;
  }

  .order-grid {
    gap: 10px;
  }

  .recent-order {
    align-items: stretch;
  }

  .recent-order .secondary-button {
    width: 100%;
  }

  .panel-title {
    padding: 14px;
  }

  .panel-title h1,
  .panel-title h2,
  .owner-head h1 {
    font-size: 20px;
  }

  .panel-title p,
  .owner-head p {
    font-size: 13px;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .menu-row {
    min-height: 194px;
    padding: 9px 8px 8px;
    grid-template-rows: 98px auto 32px;
    gap: 7px;
  }

  .menu-photo-frame {
    width: 100%;
    height: 98px;
  }

  .menu-photo-frame img {
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }

  .menu-copy {
    align-self: start;
  }

  .stepper {
    grid-template-columns: 40px minmax(28px, 1fr) 40px;
    min-height: 32px;
  }

  .stepper button {
    width: 100%;
    height: 100%;
  }

  .stepper output {
    font-size: 15px;
  }

  .menu-add-button {
    min-height: 32px;
    font-size: 14px;
  }

  .order-form {
    padding: 0;
  }

  .summary-head,
  .summary-line {
    padding: 11px;
  }

  .completion-shortcut {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .filter-button,
  .status-button {
    min-height: 48px;
  }

  .owner-head {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-actions,
  .status-actions {
    grid-template-columns: 1fr 1fr;
  }

  .owner-actions {
    display: grid;
  }

  .owner-weather-widget {
    grid-column: 1 / -1;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .owner-actions .alert-toggle {
    grid-column: 1 / -1;
  }

  .owner-actions .owner-logout-button {
    justify-self: start;
  }

  .report-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .report-daily-list article {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .report-daily-list em {
    grid-column: 2;
  }

  .status-actions {
    display: grid;
  }

  .status-actions .delete-button {
    grid-column: 1 / -1;
  }

  .owner-board .status-actions {
    grid-template-columns: 1fr 1fr;
  }

  .order-card {
    padding: 16px;
    gap: 14px;
  }

  .order-top {
    align-items: flex-start;
    gap: 8px;
  }

  .order-top strong {
    flex: 1 1 100%;
    font-size: 28px;
    line-height: 1;
  }

  .order-time {
    margin-left: 0;
  }

  .order-customer {
    display: grid;
    gap: 8px;
  }

  .order-customer p {
    margin: 0;
    font-size: 15px;
  }

  .call-button {
    min-height: 44px;
    justify-content: center;
  }

  .order-card ul {
    gap: 0;
  }

  .order-card li {
    padding: 10px 0;
    border-top: 1px solid rgba(230, 223, 214, 0.8);
    font-size: 24px;
  }

  .order-card .order-item-name {
    font-size: 24px;
  }

  .order-card .order-item-qty {
    font-size: 25px;
  }

  .order-total {
    margin-top: 8px;
    font-size: 24px;
  }

  .owner-board .order-total {
    font-size: 21px;
  }

  .owner-summary {
    gap: 8px;
  }

  .owner-summary span {
    flex: 1 1 30%;
    text-align: center;
  }

  .owner-summary small {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: center;
  }

  .settlement-head {
    grid-template-columns: 1fr;
  }

  .settlement-head strong {
    font-size: 28px;
  }

  .settlement-item {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .settlement-item em {
    grid-column: 1 / -1;
  }

  .completion-backdrop {
    padding: 0;
  }

  .completion-sheet {
    max-width: 100%;
    padding: 12px 18px max(16px, env(safe-area-inset-bottom));
  }

  .completion-sheet h2 {
    font-size: 22px;
  }

  .completion-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    padding-right: 44px;
  }

  .completion-mark {
    width: 58px;
    height: 58px;
  }

  .completion-ticket {
    margin-top: 22px;
    padding: 18px 14px 16px;
  }

  .completion-ticket strong {
    font-size: 48px;
  }

  .status-step span {
    width: 40px;
    height: 40px;
  }

  .status-step:not(:first-child)::before {
    top: 19px;
    transform: translateX(-20px);
  }

  .completion-pickup-card {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  .completion-pickup-icon {
    width: 42px;
    height: 42px;
  }

  .completion-pickup-card strong {
    font-size: 25px;
  }

  .completion-pickup-art {
    width: 54px;
    grid-template-columns: 22px 34px;
  }

  .completion-lines div {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .completion-total strong {
    font-size: 24px;
  }

  .completion-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .settings-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-onboarding-stage {
    min-height: auto;
    place-items: stretch;
  }

  .owner-onboarding-page.is-building,
  .owner-onboarding-page.is-done {
    min-height: 100dvh;
    place-content: center;
  }

  .owner-onboarding-page.is-building .owner-onboarding-stage,
  .owner-onboarding-page.is-done .owner-onboarding-stage,
  .owner-onboarding-page.is-building .owner-onboarding-stage.is-wide,
  .owner-onboarding-page.is-done .owner-onboarding-stage.is-wide {
    min-height: 100dvh;
    place-items: center;
  }

  .owner-onboarding-question h2 {
    font-size: 34px;
  }

  .owner-onboarding-time-grid {
    grid-template-columns: 1fr;
  }

  .owner-onboarding-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .owner-onboarding-actions .primary-button,
  .owner-onboarding-actions .secondary-button {
    width: 100%;
  }

  .settings-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .owner-menu-editor {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .owner-menu-editor-head,
  .owner-menu-edit-row {
    min-width: 920px;
  }

  .owner-menu-swipe-row {
    min-width: 920px;
  }

  .owner-menu-editor.is-sort-mode .owner-menu-editor-head,
  .owner-menu-editor.is-sort-mode .owner-menu-edit-row,
  .owner-menu-editor.is-sort-mode .owner-menu-swipe-row {
    min-width: 980px;
  }

  .owner-menu-sort-list {
    min-width: 760px;
  }

  .store-settings-layout,
  .owner-onboarding-layout,
  .store-time-grid,
  .store-coordinate-grid,
  .owner-alert-sound-row {
    grid-template-columns: 1fr;
  }

  .store-settings-form,
  .store-map-panel {
    overflow: visible;
    padding-right: 0;
  }

  .store-map-panel {
    position: static;
    max-height: none;
  }

  .owner-location-map {
    min-height: 280px;
  }

  .owner-location-map > span {
    min-height: 280px;
  }
}

@media (max-width: 380px) {
  .menu-list {
    gap: 10px;
  }

  .menu-copy strong {
    font-size: 15px;
  }

  .stepper {
    justify-self: center;
  }
}
