.light,
.auth-page--mobile,
.mobile-app,
body {
  --md-sys-color-primary: rgb(18 46 37);
  --md-sys-color-surface-tint: rgb(72 100 89);
  --md-sys-color-on-primary: rgb(255 255 255);
  --md-sys-color-primary-container: rgb(41 68 58);
  --md-sys-color-on-primary-container: rgb(147 177 164);
  --md-sys-color-secondary: #29443A;
  --md-sys-color-on-secondary: rgb(255 255 255);
  --md-sys-color-secondary-container: rgb(215 226 219);
  --md-sys-color-on-secondary-container: rgb(90 101 96);
  --md-sys-color-tertiary: rgb(40 38 60);
  --md-sys-color-on-tertiary: rgb(255 255 255);
  --md-sys-color-tertiary-container: rgb(62 60 83);
  --md-sys-color-on-tertiary-container: rgb(170 167 194);
  --md-sys-color-error: rgb(186 26 26);
  --md-sys-color-on-error: rgb(255 255 255);
  --md-sys-color-error-container: rgb(255 218 214);
  --md-sys-color-on-error-container: rgb(147 0 10);
  --md-sys-color-background: rgb(250 249 247);
  --md-sys-color-on-background: rgb(26 28 27);
  --md-sys-color-surface: rgb(250 249 247);
  --md-sys-color-on-surface: rgb(26 28 27);
  --md-sys-color-surface-variant: rgb(222 228 223);
  --md-sys-color-on-surface-variant: rgb(66 72 69);
  --md-sys-color-outline: rgb(114 121 117);
  --md-sys-color-outline-variant: rgb(193 200 195);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);
  --md-sys-color-inverse-surface: rgb(47 49 48);
  --md-sys-color-inverse-on-surface: rgb(241 241 238);
  --md-sys-color-inverse-primary: rgb(175 205 192);
  --md-sys-color-primary-fixed: rgb(203 233 219);
  --md-sys-color-on-primary-fixed: rgb(4 32 24);
  --md-sys-color-primary-fixed-dim: rgb(175 205 192);
  --md-sys-color-on-primary-fixed-variant: rgb(49 76 66);
  --md-sys-color-secondary-fixed: rgb(218 229 222);
  --md-sys-color-on-secondary-fixed: rgb(19 30 26);
  --md-sys-color-secondary-fixed-dim: rgb(190 201 195);
  --md-sys-color-on-secondary-fixed-variant: rgb(62 73 68);
  --md-sys-color-tertiary-fixed: rgb(228 223 253);
  --md-sys-color-on-tertiary-fixed: rgb(27 25 46);
  --md-sys-color-tertiary-fixed-dim: rgb(199 195 224);
  --md-sys-color-on-tertiary-fixed-variant: rgb(70 68 92);
  --md-sys-color-surface-dim: rgb(218 218 216);
  --md-sys-color-surface-bright: rgb(250 249 247);
  --md-sys-color-surface-container-lowest: rgb(255 255 255);
  --md-sys-color-surface-container-low: rgb(244 243 241);
  --md-sys-color-surface-container: rgb(238 238 236);
  --md-sys-color-surface-container-high: rgb(233 232 230);
  --md-sys-color-surface-container-highest: rgb(227 226 224);
}

.dark,
.mobile-dark {
  --md-sys-color-primary: rgb(175 205 192);
  --md-sys-color-surface-tint: rgb(175 205 192);
  --md-sys-color-on-primary: rgb(26 53 44);
  --md-sys-color-primary-container: rgb(41 68 58);
  --md-sys-color-on-primary-container: rgb(147 177 164);
  --md-sys-color-secondary: rgb(190 201 195);
  --md-sys-color-on-secondary: rgb(40 51 46);
  --md-sys-color-secondary-container: rgb(62 73 68);
  --md-sys-color-on-secondary-container: rgb(172 184 177);
  --md-sys-color-tertiary: rgb(199 195 224);
  --md-sys-color-on-tertiary: rgb(48 46 68);
  --md-sys-color-tertiary-container: rgb(62 60 83);
  --md-sys-color-on-tertiary-container: rgb(170 167 194);
  --md-sys-color-error: rgb(255 180 171);
  --md-sys-color-on-error: rgb(105 0 5);
  --md-sys-color-error-container: rgb(147 0 10);
  --md-sys-color-on-error-container: rgb(255 218 214);
  --md-sys-color-background: rgb(18 20 19);
  --md-sys-color-on-background: rgb(227 226 224);
  --md-sys-color-surface: rgb(18 20 19);
  --md-sys-color-on-surface: rgb(227 226 224);
  --md-sys-color-surface-variant: rgb(66 72 69);
  --md-sys-color-on-surface-variant: rgb(193 200 195);
  --md-sys-color-outline: rgb(140 146 142);
  --md-sys-color-outline-variant: rgb(66 72 69);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);
  --md-sys-color-inverse-surface: rgb(227 226 224);
  --md-sys-color-inverse-on-surface: rgb(47 49 48);
  --md-sys-color-inverse-primary: rgb(72 100 89);
  --md-sys-color-primary-fixed: rgb(203 233 219);
  --md-sys-color-on-primary-fixed: rgb(4 32 24);
  --md-sys-color-primary-fixed-dim: rgb(175 205 192);
  --md-sys-color-on-primary-fixed-variant: rgb(49 76 66);
  --md-sys-color-secondary-fixed: rgb(218 229 222);
  --md-sys-color-on-secondary-fixed: rgb(19 30 26);
  --md-sys-color-secondary-fixed-dim: rgb(190 201 195);
  --md-sys-color-on-secondary-fixed-variant: rgb(62 73 68);
  --md-sys-color-tertiary-fixed: rgb(228 223 253);
  --md-sys-color-on-tertiary-fixed: rgb(27 25 46);
  --md-sys-color-tertiary-fixed-dim: rgb(199 195 224);
  --md-sys-color-on-tertiary-fixed-variant: rgb(70 68 92);
  --md-sys-color-surface-dim: rgb(18 20 19);
  --md-sys-color-surface-bright: rgb(56 57 56);
  --md-sys-color-surface-container-lowest: rgb(13 15 14);
  --md-sys-color-surface-container-low: rgb(26 28 27);
  --md-sys-color-surface-container: rgb(30 32 31);
  --md-sys-color-surface-container-high: rgb(41 42 41);
  --md-sys-color-surface-container-highest: rgb(52 53 52);
}

:root {
  --mobile-radius-xs: 8px;
  --mobile-radius-sm: 12px;
  --mobile-radius-md: 18px;
  --mobile-radius-lg: 24px;
  --mobile-radius-xl: 32px;
  --mobile-radius-pill: 999px;
}

:root {
  --mobile-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mobile-text-xs: 11px;
  --mobile-text-sm: 12px;
  --mobile-text-md: 14px;
  --mobile-text-lg: 16px;
  --mobile-text-xl: 20px;
  --mobile-text-2xl: 24px;
  --mobile-line-tight: 1.2;
  --mobile-line-normal: 1.45;
  --mobile-line-relaxed: 1.65;
}

:root {
  --mobile-focus-ring: 0 0 0 3px var(--md-sys-color-primary-container);
}

.auth-page--mobile,
.mobile-app,
body {
  --mobile-primary: var(--md-sys-color-primary);
  --mobile-on-primary: var(--md-sys-color-on-primary);
  --mobile-primary-container: var(--md-sys-color-primary-container);
  --mobile-on-primary-container: var(--md-sys-color-on-primary-container);
  --mobile-secondary: var(--md-sys-color-secondary);
  --mobile-on-secondary: var(--md-sys-color-on-secondary);
  --mobile-error: var(--md-sys-color-error);
  --mobile-on-error: var(--md-sys-color-on-error);
  --mobile-background: var(--md-sys-color-background);
  --mobile-on-background: var(--md-sys-color-on-background);
  --mobile-surface: var(--md-sys-color-surface);
  --mobile-on-surface: var(--md-sys-color-on-surface);
  --mobile-surface-variant: var(--md-sys-color-surface-variant);
  --mobile-on-surface-variant: var(--md-sys-color-on-surface-variant);
  --mobile-outline: var(--md-sys-color-outline);
  --mobile-outline-variant: var(--md-sys-color-outline-variant);
  --mobile-surface-lowest: var(--md-sys-color-surface-container-lowest);
  --mobile-surface-low: var(--md-sys-color-surface-container-low);
  --mobile-surface-container: var(--md-sys-color-surface-container);
  --mobile-surface-high: var(--md-sys-color-surface-container-high);
  --mobile-card: var(--md-sys-color-surface-container-lowest);
  --mobile-card-alt: var(--md-sys-color-surface-container-low);
  --mobile-muted: var(--md-sys-color-on-surface-variant);
  --mobile-border: var(--md-sys-color-outline-variant);
  --mobile-action: var(--md-sys-color-primary);
  --mobile-on-action: var(--md-sys-color-on-primary);
  --mobile-action-soft: var(--md-sys-color-primary-container);
  --mobile-on-action-soft: var(--md-sys-color-on-primary-container);
  --mobile-nav-inactive: var(--md-sys-color-outline);
  --mobile-shadow-color: rgb(60 30 20 / 0.10);
}

.page-header {
  padding: 16px;
}
.page-header h1 {
  margin: 0;
}

.orders {
  padding: 0 16px;
}

.order-card {
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-top .date {
  font-size: 12px;
  color: #777;
}

.status {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.status.pending {
  background: #eee;
}

.status.accepted {
  background: #d4edda;
  color: #155724;
}

.status.in_delivery {
  background: #fff3cd;
  color: #856404;
}

.status.delivered {
  background: #d1ecf1;
  color: #0c5460;
}

.order-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
}

.delivery {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.order-actions button,
.order-actions a {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.order-actions .primary {
  background: #8b0000;
  color: white;
}
.order-actions .outlined {
  background: white;
  color: #8b0000;
  border: 1px solid #8b0000;
}

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

.mobile-order-line {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 14px 16px;
}

.mobile-order-line__top,
.mobile-order-line__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-order-line__top {
  margin-bottom: 8px;
}

.mobile-order-line__variant {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  color: #4b443d;
  font-size: 13px;
}

.mobile-order-line__meta {
  color: #666;
  font-size: 13px;
  align-items: flex-start;
  flex-direction: column;
}

.greeting {
  padding: 0 16px;
}
.greeting h1 {
  margin: 0;
  font-size: 20px;
}
.greeting p {
  color: #666;
}

.mobile-winemaker-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mobile-winemaker-metric-card {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f5 100%);
  box-shadow: 0 14px 30px rgba(58, 36, 27, 0.08);
  border: 1px solid rgba(109, 86, 73, 0.08);
  text-decoration: none;
}
.mobile-winemaker-metric-card strong {
  font-size: 26px;
  line-height: 1;
  color: #2f241d;
}
.mobile-winemaker-metric-card span {
  font-size: 13px;
  font-weight: 700;
  color: #4a3a30;
}
.mobile-winemaker-metric-card small {
  font-size: 11px;
  line-height: 1.4;
  color: #8a7768;
}

.mobile-winemaker-metric-card.is-warning strong {
  color: #a85a12;
}

.mobile-winemaker-metric-card.is-accent strong {
  color: #6d4aff;
}

.mobile-winemaker-metric-card.is-success strong {
  color: #277a57;
}

.mobile-winemaker-metric-card.is-neutral strong {
  color: #3b2a1f;
}

.home-section {
  padding: 0 16px 16px;
}

.mobile-presentation-card {
  background: white;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.mobile-presentation-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.mobile-presentation-card p {
  margin: 0;
  color: #666;
}

.mobile-presentation-card__list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #444;
}
.mobile-presentation-card__list li + li {
  margin-top: 8px;
}

.mobile-presentation-card__actions {
  margin-top: 16px;
}

.mobile-push-card__copy {
  margin: 0 0 10px;
  color: #666;
}

.home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.home-section__head h2 {
  margin: 0;
  font-size: 18px;
}
.home-section__head.substitution-header {
  flex-direction: column;
  align-items: start;
  justify-content: start;
}
.home-section__head.substitution-header > p {
  font-size: 10px;
  margin-top: 0;
}

.last-order-card,
.last-order-empty {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.last-order-card {
  padding: 16px;
}

.last-order-card__top,
.last-order-card__meta,
.last-order-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.last-order-card__top {
  margin-bottom: 14px;
}
.last-order-card__top strong,
.last-order-card__top span {
  display: block;
}
.last-order-card__top span {
  font-size: 12px;
  color: #777;
}

.status-chip {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-chip--pending {
  background: #fdf1d9;
  color: #8c5b00;
}

.status-chip--accepted,
.status-chip--delivered {
  background: #e4f4e8;
  color: #206437;
}

.status-chip--preparing,
.status-chip--ready,
.status-chip--in_delivery {
  background: #e8eefc;
  color: #204f9b;
}

.status-chip--cancelled,
.status-chip--refused {
  background: #fce5e5;
  color: #9b2f2f;
}

.order-progress-card {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(114, 120, 126, 0.12);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.order-progress {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.order-progress__step {
  display: grid;
  min-width: 110px;
  flex: 1 0 110px;
  align-items: center;
  text-align: center;
  grid-template-rows: 32px auto;
  transition: opacity 180ms ease;
}

.order-progress__step--actionable {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.order-progress__step--actionable:hover .order-progress__label {
  color: #8a94a6;
}

.order-progress__step--actionable:focus-visible {
  outline: none;
}

.order-progress__step--actionable:focus-visible .order-progress__dot {
  box-shadow: 0 0 0 6px rgba(109, 74, 255, 0.12);
}

.order-progress__step--actionable:hover .order-progress__dot {
  background: #d9dee8;
  border-color: #d9dee8;
}

.order-progress__rail {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding-top: 4px;
}

.order-progress__connector {
  flex: 1 1 auto;
  height: 2px;
  background: #d7dbe4;
  border-radius: 999px;
  border-top: 2px dashed #d7dbe4;
}

.order-progress__dot {
  width: 18px;
  height: 18px;
  margin: 0 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eceff4;
  border: 2px solid #eceff4;
  color: transparent;
  flex: 0 0 auto;
  transition: all 220ms ease;
}

.order-progress__label {
  margin-top: 10px;
  min-height: 34px;
  font-size: 12px;
  line-height: 1.35;
  color: #8a94a6;
  transition: color 220ms ease, transform 220ms ease;
}

.order-progress__step--completed .order-progress__dot {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.order-progress__step--completed .order-progress__connector--before,
.order-progress__step--completed .order-progress__connector--after {
  background: #16a34a;
  border-top: none;
}

.order-progress__step--completed .order-progress__label {
  color: #1f2937;
}

.order-progress__step--current .order-progress__dot {
  width: 24px;
  height: 24px;
  background: #6D4AFF;
  border-color: #6D4AFF;
  box-shadow: 0 0 0 6px rgba(109, 74, 255, 0.12), 0 10px 24px rgba(109, 74, 255, 0.24);
  animation: order-progress-pulse 1.8s ease-in-out infinite;
}

.order-progress__step--current .order-progress__connector--before {
  background: #16a34a;
  border-top: none;
}

.order-progress__step--current .order-progress__label {
  color: #111827;
  font-weight: 700;
  transform: scale(1.03);
}

.order-progress__step--upcoming .order-progress__dot {
  background: #eceff4;
  border-color: #eceff4;
}

.order-progress__step--upcoming .order-progress__connector {
  background: transparent;
  border-top: 2px dashed #d7dbe4;
}

.order-progress__check {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.order-progress-card__note {
  margin-top: 14px;
  font-size: 13px;
  color: #7b8190;
}

@keyframes order-progress-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
.last-order-card__body p {
  margin: 8px 0 0;
  color: #666;
  font-size: 14px;
}

.last-order-card__items {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #666;
  font-size: 14px;
}

.last-order-card__actions {
  margin-top: 16px;
}
.last-order-card__actions .primary {
  border: none;
  border-radius: 12px;
  background: #8b0000;
  color: white;
  font-weight: 700;
  padding: 12px 16px;
}

.secondary-link {
  color: #8b0000;
  font-weight: 600;
  text-decoration: none;
}

.home-section__link-row {
  margin-top: 14px;
}

.mobile-push-card,
.mobile-notification-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-push-card {
  padding: 18px 16px;
}
.mobile-push-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.mobile-push-card p {
  margin: 0;
  color: #666;
}

.mobile-push-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.mobile-push-card__button {
  width: 100%;
  margin-top: 16px;
  border: none;
  border-radius: 12px;
  background: #8b0000;
  color: white;
  font-weight: 700;
  padding: 13px 16px;
}

.mobile-push-card__button:disabled {
  opacity: 0.6;
}

.mobile-push-card__hint {
  margin-top: 12px !important;
  font-size: 13px;
}

.mobile-push-card__hint--ios {
  color: #8b0000 !important;
}

.mobile-notification-count {
  font-size: 12px;
  color: #777;
}

.mobile-notification-list {
  display: grid;
  gap: 12px;
}

.mobile-notification-item {
  padding: 14px;
  border: 1px solid rgba(139, 0, 0, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(60, 30, 20, 0.06);
}
.mobile-notification-item.is-unread {
  border-left: 4px solid #8b0000;
}
.mobile-notification-item p {
  margin: 8px 0 0;
  color: #555;
  line-height: 1.45;
}

.notifications-page {
  padding: 0 16px 24px;
}

.mobile-notification-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}
.mobile-notification-actions button {
  border: none;
  border-radius: 999px;
  background: var(--mobile-action);
  color: var(--mobile-on-action);
  font-weight: 700;
  padding: 10px 14px;
}

.mobile-notification-item__main {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.mobile-notification-item__body {
  display: block;
  margin-top: 8px;
  color: #555;
  line-height: 1.45;
}

.mobile-notification-item__read {
  margin-top: 12px;
  border: 1px solid rgba(139, 0, 0, 0.18);
  border-radius: 999px;
  background: #fff7f5;
  color: #8b0000;
  font-weight: 700;
  padding: 9px 12px;
}

.mobile-notification-item__top,
.mobile-notification-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-notification-item__meta {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

.mobile-notification-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b0000;
  flex-shrink: 0;
}

.last-order-empty {
  padding: 20px 16px;
}
.last-order-empty h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.last-order-empty p {
  margin: 0;
  color: #666;
}

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

.account-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 16px;
}
.account-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.account-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.account-card__top h2 {
  margin: 0 0 6px;
}
.account-card__top p {
  margin: 0;
  color: #666;
}

.account-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  flex: 0 0 56px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #f5f5f5;
}

.logo__brand-link {
  color: inherit;
  text-decoration: none;
}

.account-card__grid,
.account-stack {
  display: grid;
  gap: 12px;
}

.account-field span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}
.account-field strong {
  font-size: 15px;
  line-height: 1.45;
  color: #222;
}

.account-field--notes {
  margin-top: 16px;
}

.account-actions {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.order-actions--stacked {
  margin-top: 10px;
}
.order-actions--stacked a,
.order-actions--stacked button {
  width: 100%;
}

.account-actions__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.account-danger-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--mobile-action);
  background: var(--mobile-card);
  color: var(--mobile-action);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 16px;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--mobile-shadow-color);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.account-danger-action:hover, .account-danger-action:active {
  background: var(--mobile-action-soft);
  border-color: var(--mobile-action);
  color: var(--mobile-on-action-soft);
}
.account-danger-action.is-loading, .account-danger-action:disabled {
  opacity: 0.7;
}

.account-secondary-action {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--mobile-action);
  background: var(--mobile-card);
  color: var(--mobile-action);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 16px;
  box-sizing: border-box;
  align-items: center;
}

.account-logout {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  background: #8b0000;
  border: 0;
  color: white;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 16px;
  box-sizing: border-box;
  cursor: pointer;
}

.mobile-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.mobile-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(10px);
}

.mobile-consent-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(78vh, 680px);
  overflow-y: auto;
  background: #fff;
  border-radius: 28px;
  padding: 24px 20px 24px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.mobile-consent-modal__header {
  margin-bottom: 18px;
}
.mobile-consent-modal__header h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #111;
}
.mobile-consent-modal__header p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.mobile-substitution-modal[hidden] {
  display: none !important;
}

.mobile-substitution-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
}

.mobile-substitution-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.46);
  backdrop-filter: blur(10px);
}

.mobile-substitution-modal__dialog {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 16px;
}

.mobile-substitution-modal__header {
  display: grid;
  gap: 8px;
}
.mobile-substitution-modal__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  color: #111;
}
.mobile-substitution-modal__header p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.mobile-substitution-modal__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b0000;
}

.mobile-substitution-modal__content {
  display: grid;
  gap: 12px;
}

.mobile-substitution-modal__message,
.mobile-substitution-modal__product {
  padding: 14px 15px;
  border-radius: 18px;
  background: #f9f2ed;
  color: #4f3e35;
  line-height: 1.5;
}

.mobile-substitution-modal__product {
  background: #f5f1eb;
  font-weight: 700;
}

.mobile-substitution-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mobile-substitution-modal__actions .primary,
.mobile-substitution-modal__actions .outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.mobile-substitution-modal__actions .primary:active,
.mobile-substitution-modal__actions .outlined:active {
  transform: scale(0.985);
}
.mobile-substitution-modal__actions .primary {
  background: linear-gradient(135deg, #8b1e3f 0%, #b53b61 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(139, 30, 63, 0.22);
}
.mobile-substitution-modal__actions .primary:hover, .mobile-substitution-modal__actions .primary:focus-visible {
  background: linear-gradient(135deg, #7c1736 0%, #a83459 100%);
  box-shadow: 0 16px 28px rgba(139, 30, 63, 0.28);
}
.mobile-substitution-modal__actions .outlined {
  background: #fff;
  color: #7c1736;
  border-color: rgba(139, 30, 63, 0.24);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}
.mobile-substitution-modal__actions .outlined:hover, .mobile-substitution-modal__actions .outlined:focus-visible {
  background: #fbf5f7;
  border-color: rgba(139, 30, 63, 0.38);
}

.mobile-consent-form {
  display: grid;
  gap: 14px;
}
.mobile-consent-form .primary {
  width: 100%;
  justify-content: center;
}

.mobile-consent-form__submit {
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(139, 0, 0, 0.34);
  background: #fff;
  color: #8b0000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.mobile-consent-form__submit:hover {
  background: #fff7f7;
  border-color: rgba(139, 0, 0, 0.5);
}
.mobile-consent-form__submit:active {
  transform: scale(0.99);
  background: #fbeeee;
}
.mobile-consent-form__submit.is-loading {
  opacity: 0.86;
  box-shadow: 0 2px 6px rgba(139, 0, 0, 0.06);
}

.toast-alert--mobile-consent {
  left: 12px;
  right: 12px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  top: auto;
  transform: translateY(18px);
  width: auto;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18);
  font-size: 14px;
  line-height: 1.45;
  align-items: flex-start;
}
.toast-alert--mobile-consent.show {
  transform: translateY(0);
}
.toast-alert--mobile-consent i {
  margin-top: 1px;
  font-size: 16px;
}
.toast-alert--mobile-consent span {
  display: block;
}

.mobile-consent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: #faf8f5;
  border: 1px solid rgba(139, 0, 0, 0.08);
}
.mobile-consent-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #222;
}
.mobile-consent-item span,
.mobile-consent-item small {
  display: block;
  line-height: 1.45;
  color: #666;
}
.mobile-consent-item small {
  margin-top: 6px;
  font-size: 12px;
  color: #8b0000;
}
.mobile-consent-item input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--mobile-action);
}

.mobile-consent-info {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #faf4ef;
  border: 1px solid rgba(139, 0, 0, 0.08);
}
.mobile-consent-info strong {
  font-size: 14px;
  color: #3b2a1f;
}
.mobile-consent-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5f5248;
}

.products {
  padding: 0 16px;
}
.products h2 {
  margin-bottom: 12px;
}

.mobile-catalog__filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.mobile-catalog__filter {
  border: 1px solid var(--mobile-border);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--mobile-card);
  color: var(--mobile-action);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.mobile-catalog__filter.is-active {
  background: var(--mobile-action);
  color: var(--mobile-on-action);
  border-color: var(--mobile-action);
  font-weight: 700;
}

.mobile-catalog__summary {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
}

.mobile-catalog__locked {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ec;
  color: #6c4b17;
}
.mobile-catalog__locked p {
  margin: 10px 0 0;
}

.mobile-catalog__list {
  display: grid;
  gap: 12px;
}

.mobile-catalog__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-catalog__variant-chip {
  border: 1px solid #d9d3c6;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8f3ea;
  color: #4d463d;
  font-size: 12px;
  font-weight: 600;
}
.mobile-catalog__variant-chip.is-active {
  border-color: #8b0000;
  background: #8b0000;
  color: white;
}

.product-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.product-card img {
  width: 50px;
  height: auto;
  margin-right: 12px;
}
.product-card .info {
  flex: 1;
}
.product-card .info h3 {
  margin: 0;
  font-size: 16px;
}
.product-card .info .domain {
  font-size: 14px;
  color: #666;
}
.product-card .info .meta {
  font-size: 12px;
  color: #999;
}
.product-card .action {
  text-align: right;
}
.product-card .action .price {
  font-weight: bold;
  margin-bottom: 6px;
}
.product-card .action.action--locked {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 118px;
}
.product-card .action .add {
  background: var(--mobile-action);
  color: var(--mobile-on-action);
  border: 1px solid var(--mobile-action);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.mobile-catalog__locked-price {
  font-size: 12px;
  font-weight: 700;
  color: #8b6a2b;
  text-align: right;
}

.mobile-catalog__card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mobile-catalog__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8e8d0;
  color: #8c5b00;
  font-size: 11px;
  font-weight: 700;
}

.product-card--compact .mobile-catalog__badge {
  display: none;
}

.cart-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: var(--mobile-action);
  color: var(--mobile-on-action);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-bar .cart-info .material-icons {
  vertical-align: bottom;
}
.cart-bar .cart-link {
  background: none;
  color: var(--mobile-on-action);
  font-weight: bold;
  text-decoration: none;
}

.cart-page {
  padding: 0 16px 24px;
}

.cart-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.cart-page__header h1 {
  margin: 0;
  font-size: 24px;
}

.cart-page__back,
.cart-page__cta {
  color: #8b0000;
  font-weight: 600;
  text-decoration: none;
}

.cart-empty,
.cart-summary,
.cart-item {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cart-empty {
  padding: 24px 20px;
  text-align: center;
}
.cart-empty .material-icons {
  font-size: 40px;
  color: #8b0000;
}
.cart-empty h2 {
  margin: 12px 0 8px;
}
.cart-empty p {
  margin: 0 0 16px;
  color: #666;
}

.cart-content {
  display: grid;
  gap: 16px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  padding: 16px;
}

.cart-item__main,
.cart-item__footer,
.cart-summary__row,
.cart-summary__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item__main {
  gap: 12px;
}
.cart-item__main h2 {
  margin: 0 0 4px;
  font-size: 16px;
}
.cart-item__main p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.cart-item__variant {
  margin: 0 0 4px !important;
  color: #3f3a34 !important;
  font-weight: 700;
}

.cart-item__footer {
  margin-top: 14px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cart-item__qty button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f0ece8;
  color: #8b0000;
  font-size: 18px;
}
.cart-item__qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.cart-item__remove {
  border: none;
  background: transparent;
  color: #8b0000;
  font-weight: 600;
}

.cart-summary {
  padding: 16px;
}

.cart-feedback {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}
.cart-feedback[data-state=error] {
  background: #fdecec;
  color: #a62b2b;
}
.cart-feedback[data-state=success] {
  background: #e7f6ea;
  color: #1f6b35;
}

.cart-summary__row {
  margin-bottom: 12px;
}

.cart-summary__row--total {
  padding-top: 12px;
  border-top: 1px solid #eee;
  margin-bottom: 16px;
}

.cart-summary__actions {
  gap: 10px;
}
.cart-summary__actions button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  border: none;
}
.cart-summary__actions .primary {
  background: #8b0000;
  color: white;
}
.cart-summary__actions .secondary {
  background: #eee;
  color: #333;
}

.mobile-delivery-note-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(84, 44, 29, 0.08);
}

.mobile-delivery-note-sync-banner {
  margin-bottom: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(109, 74, 255, 0.1);
  color: #4c359d;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}
.mobile-delivery-note-sync-banner.is-warning {
  background: rgba(168, 92, 0, 0.12);
  color: #8a4d00;
}

.mobile-delivery-note-list .last-order-card.is-pending-sync {
  border: 1px solid rgba(109, 74, 255, 0.2);
  box-shadow: 0 16px 32px rgba(109, 74, 255, 0.08);
}

.mobile-delivery-note-sync-state {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109, 74, 255, 0.12);
  color: #5b3bc4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mobile-delivery-note-field {
  display: grid;
  gap: 8px;
}
.mobile-delivery-note-field span {
  margin-bottom: 0;
  color: #6f6055;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mobile-delivery-note-field__control {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid rgba(122, 37, 24, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #2f241d;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  box-sizing: border-box;
}
.mobile-delivery-note-field__control::-moz-placeholder {
  color: #a39387;
}
.mobile-delivery-note-field__control::placeholder {
  color: #a39387;
}
.mobile-delivery-note-field__control:focus {
  outline: none;
  border-color: rgba(109, 74, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.12);
  background: #fffefc;
}
.mobile-delivery-note-field__control:disabled {
  color: #8a7a70;
  background: #f6f1ec;
  border-color: rgba(122, 37, 24, 0.08);
}

.mobile-delivery-note-field__control--textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.mobile-delivery-note-signature {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f0 100%);
  box-shadow: inset 0 0 0 1px rgba(139, 0, 0, 0.08);
}

.mobile-delivery-note-signature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: #3b2a1f;
}

.mobile-delivery-note-signature__canvas {
  width: 100%;
  min-height: 180px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(139, 0, 0, 0.12);
  touch-action: none;
}

.mobile-delivery-note-signature__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #746457;
}

.mobile-delivery-note-locked {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8f3ef;
  color: #3b2a1f;
}

.invite-qr-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite-qr-card__visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #f6f1ea;
  border-radius: 22px;
}

.invite-qr-card__logo {
  width: 72px;
  height: 72px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.invite-qr-card__visual svg {
  width: min(100%, 280px);
  height: auto;
  display: block;
}

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

.invite-qr-card__meta p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fbf8f3;
  color: #3f3024;
  font-size: 13px;
  line-height: 1.5;
}

.invite-qr-card__summary {
  display: grid;
  gap: 10px;
}

.invite-qr-card__summary p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fbf8f3;
  color: #3f3024;
  font-size: 13px;
  line-height: 1.5;
}

.invite-qr-card__link-label {
  font-size: 13px;
  font-weight: 700;
  color: #5b1f2e;
}

.invite-qr-card__link {
  width: 100%;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid #e6ddd4;
  border-radius: 18px;
  background: #fff;
  color: #2d2218;
  font-size: 13px;
  line-height: 1.5;
  resize: none;
}

.invite-qr-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body {
  margin: 0;
  font-family: var(--mobile-font-family);
  background: var(--mobile-background);
  color: var(--mobile-on-background);
}

.auth-page--mobile .overlay {
  background: radial-gradient(circle at top right, rgba(41, 68, 58, 0.1) 0%, rgba(41, 68, 58, 0) 38%), radial-gradient(circle at bottom left, rgba(184, 107, 75, 0.1) 0%, rgba(184, 107, 75, 0) 32%);
}
.auth-page--mobile .mobile-login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-page--mobile .mobile-login-card {
  width: min(100%, 420px);
  padding: 24px 20px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 245, 239, 0.96) 100%);
  border: 1px solid rgba(229, 224, 216, 0.96);
  box-shadow: 0 24px 50px rgba(34, 34, 34, 0.1);
}
.auth-page--mobile .mobile-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.auth-page--mobile .mobile-login-brand img {
  width: 62px;
  height: auto;
  display: block;
}
.auth-page--mobile .mobile-login-brand span {
  color: #29443A;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.auth-page--mobile .mobile-login-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.auth-page--mobile .mobile-login-header h1 {
  margin: 0;
  color: #29443A;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  text-align: left;
}
.auth-page--mobile .mobile-login-header p {
  margin: 0;
  color: #5C6F68;
  font-size: 14px;
  line-height: 1.4;
}
.auth-page--mobile .mobile-login-form {
  display: grid;
  gap: 18px;
}
.auth-page--mobile .mobile-login-field {
  display: grid;
  gap: 8px;
}
.auth-page--mobile .mobile-login-field label {
  color: #222222;
  font-size: 15px;
  font-weight: 600;
}
.auth-page--mobile .mobile-login-input {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid #E5E0D8;
  background: #fffdfa;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.auth-page--mobile .mobile-login-input:focus-within {
  border-color: rgba(41, 68, 58, 0.48);
  box-shadow: 0 0 0 4px rgba(41, 68, 58, 0.1);
}
.auth-page--mobile .mobile-login-input input {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 14px 0 2px;
  border: none;
  background: transparent;
  color: #222222;
  font-size: 16px;
  box-shadow: none;
}
.auth-page--mobile .mobile-login-input input:focus {
  outline: none;
}
.auth-page--mobile .mobile-login-input__icon,
.auth-page--mobile .mobile-login-input__toggle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #5C6F68;
}
.auth-page--mobile .mobile-login-input__icon svg,
.auth-page--mobile .mobile-login-input__toggle svg {
  width: 20px;
  height: 20px;
}
.auth-page--mobile .mobile-login-input__toggle {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
.auth-page--mobile .mobile-login-input__toggle-icon--hide {
  display: none;
}
.auth-page--mobile .mobile-login-input__toggle.is-active .mobile-login-input__toggle-icon--show {
  display: none;
}
.auth-page--mobile .mobile-login-input__toggle.is-active .mobile-login-input__toggle-icon--hide {
  display: block;
}
.auth-page--mobile .mobile-login-meta {
  display: grid;
  gap: 10px;
}
.auth-page--mobile .auth-submit--loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.92;
}
.auth-page--mobile .auth-submit__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  animation: auth-spin 0.7s linear infinite;
}
.auth-page--mobile .login-container {
  background: var(--mobile-surface-lowest);
  color: var(--mobile-on-surface);
  border-radius: var(--mobile-radius-lg);
  box-shadow: 0 12px 40px var(--mobile-shadow-color);
}
.auth-page--mobile .auth-intro {
  margin-bottom: 16px;
  color: var(--mobile-on-surface-variant);
  font-size: var(--mobile-text-md);
  line-height: var(--mobile-line-relaxed);
}
.auth-page--mobile .auth-link-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.auth-page--mobile .auth-link {
  color: var(--mobile-primary);
  font-size: var(--mobile-text-md);
  font-weight: 600;
  text-decoration: none;
}
.auth-page--mobile .auth-link:hover {
  text-decoration: underline;
}
.auth-page--mobile .auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--mobile-on-surface);
  font-size: var(--mobile-text-md);
  font-weight: 600;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.auth-page--mobile .auth-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--mobile-primary);
  flex: 0 0 auto;
}
.auth-page--mobile .mobile-login-submit {
  min-height: 54px;
  border: none;
  border-radius: 12px;
  background: #29443A;
  color: #F4EFE8;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(41, 68, 58, 0.18);
}
.auth-page--mobile .mobile-login-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #E5E0D8;
  color: #5C6F68;
  font-size: 13px;
  text-align: center;
}
.auth-page--mobile .auth-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--mobile-radius-sm);
  text-align: center;
  font-size: var(--mobile-text-md);
  line-height: var(--mobile-line-normal);
  min-height: 0;
  border: 1px solid transparent;
  background: var(--mobile-surface-container);
  color: var(--mobile-on-surface);
}
.auth-page--mobile .auth-message:empty {
  display: none;
}
.auth-page--mobile .auth-message--error {
  color: var(--md-sys-color-on-error-container);
  background: var(--md-sys-color-error-container);
  border-color: rgba(186, 26, 26, 0.18);
}
.auth-page--mobile .auth-message--success {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
.toast-alert {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  top: auto;
  min-width: 0;
  width: auto;
  padding: 14px 16px;
  border-radius: var(--mobile-radius-md);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  font-size: var(--mobile-text-md);
  line-height: var(--mobile-line-normal);
}

.toast-alert.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-alert i {
  margin-top: 1px;
  font-size: 16px;
}

.toast-ok {
  background: #067647;
}

.toast-error {
  background: #b42318;
}

.toast-warning {
  background: #f79009;
  color: #111;
}

.toast-info {
  background: var(--mobile-primary);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10000;
}

.confirm-overlay .confirm-box {
  width: min(100%, 420px);
  padding: 22px 20px 18px;
  border-radius: var(--mobile-radius-lg);
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  position: relative;
  font-family: var(--mobile-font-family);
}

.confirm-overlay .confirm-box i {
  font-size: 30px;
  margin-bottom: 12px;
  display: block;
}

.confirm-overlay .confirm-box .message {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.confirm-overlay .confirm-box .btn-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-overlay .confirm-box .btn-container .btn {
  min-height: 46px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 0 14px;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  outline: none;
}

.confirm-overlay .confirm-box .btn-container .btn-yes {
  background: currentColor;
  color: #fff;
}

.confirm-overlay .confirm-box .btn-container .btn-no {
  background: rgba(17, 17, 17, 0.08);
}

.confirm-overlay .confirm-box.ok {
  background: #067647;
  color: #fff;
}

.confirm-overlay .confirm-box.ok .btn-container .btn-yes {
  color: #067647;
  background: #fff;
}

.confirm-overlay .confirm-box.error {
  background: #b42318;
  color: #fff;
}

.confirm-overlay .confirm-box.error .btn-container .btn-yes {
  color: #b42318;
  background: #fff;
}

.confirm-overlay .confirm-box.warning {
  background: #fff;
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.confirm-overlay .confirm-box.warning i {
  color: #a32222;
}

.confirm-overlay .confirm-box.warning .btn-container .btn-yes {
  background: #a32222;
  color: #fff;
}

.confirm-overlay .confirm-box.warning .btn-container .btn-no {
  color: #555;
}

.confirm-overlay .confirm-box.info {
  background: #8b0000;
  color: #fff;
}

.confirm-overlay .confirm-box.info .btn-container .btn-yes {
  color: #8b0000;
  background: #fff;
}

.app {
  padding: 84px 0 100px;
}

/* HEADER */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(60, 30, 20, 0.06);
  box-sizing: border-box;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: #8b0000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.notif--cart {
  text-decoration: none;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid var(--mobile-surface);
  border-radius: 50%;
  box-sizing: border-box;
  background: #8b0000;
  color: white;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-badge.is-hidden {
  display: none;
}

.logo {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo .logo__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.logo .logo__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efe4d8;
  color: #7a2d40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.logo .logo__avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.logo .logo__brand-name {
  font-size: 13px;
  font-weight: 700;
  color: #4a3b32;
  line-height: 1.2;
}
.logo .logo__brand-text {
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.logo .logo__brand-subtitle {
  font-size: 11px;
  color: #85776b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo .title {
  font-weight: bold;
  display: block;
}
.logo .subtitle {
  font-size: 12px;
  color: #777;
}

.bottom-nav {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 10;
}
.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #777;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bottom-nav .nav-item .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}
.bottom-nav .active {
  color: #8b0000;
  font-weight: bold;
}

/* Mobile material compatibility layer.
   Imported page styles still contain legacy fixed colors; these selectors keep
   the main interactive surfaces tied to the mobile Material tokens. */
.app {
  background: var(--mobile-background);
  color: var(--mobile-on-background);
}

.app a,
.auth-page--mobile a {
  color: var(--mobile-action);
}

.app-header {
  background: var(--mobile-surface);
  box-shadow: 0 10px 24px var(--mobile-shadow-color);
}

.page-header,
.last-order-card,
.order-card,
.product-card,
.cart-item,
.cart-empty,
.cart-summary,
.account-card,
.account-section,
.mobile-winemaker-metric-card,
.mobile-presentation-card,
.mobile-push-card,
.mobile-notification-item,
.mobile-consent-modal__dialog,
.mobile-substitution-modal__dialog,
.mobile-delivery-note-card,
.invite-qr-card,
.mobile-order-line {
  background: var(--mobile-card);
  color: var(--mobile-on-surface);
  border-color: var(--mobile-border);
  box-shadow: 0 10px 28px var(--mobile-shadow-color);
}

.mobile-logistics-card {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 239, 232, 0.92) 100%);
  border: 1px solid rgba(92, 111, 104, 0.16);
  box-shadow: 0 10px 28px rgba(34, 34, 34, 0.08);
}

.mobile-logistics-card--compact {
  margin-bottom: 14px;
}

.mobile-logistics-card__eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6f68;
}

.mobile-logistics-card strong {
  display: block;
  margin-bottom: 6px;
  color: #29443a;
}

.mobile-logistics-card p {
  margin: 0;
  color: #5b544e;
  font-size: 13px;
  line-height: 1.45;
}

.page-header p,
.last-order-card p,
.order-card p,
.product-card p,
.cart-item p,
.cart-empty p,
.account-card p,
.account-section p,
.mobile-winemaker-metric-card span,
.mobile-winemaker-metric-card small,
.mobile-presentation-card p,
.mobile-push-card p,
.mobile-notification-item p,
.mobile-consent-modal__header p,
.mobile-substitution-modal__header p,
.mobile-consent-item span,
.mobile-consent-item small,
.logo__brand-subtitle,
.logo .subtitle {
  color: var(--mobile-muted);
}

.notif,
.logo__avatar,
.mobile-catalog__variant-chip.is-active,
.mobile-notification-item__dot,
.mobile-substitution-modal__eyebrow {
  background: var(--mobile-action-soft);
  color: var(--mobile-on-action-soft);
  border-color: var(--mobile-action);
}

.app-header .notif {
  background: var(--mobile-action);
  color: var(--mobile-on-action);
  box-shadow: 0 10px 22px var(--mobile-shadow-color);
}

.notif-badge,
.mobile-catalog__badge,
.mobile-notification-item__read,
.mobile-push-card__button,
.mobile-consent-form__submit,
.cart-actions .primary,
.cart-summary .primary,
.order-actions .primary,
.app .primary,
.account-logout,
.mobile-substitution-modal__actions .primary,
.mobile-consent-form .primary,
.auth-page--mobile button[type=submit] {
  background: var(--mobile-action);
  color: var(--mobile-on-action);
  border-color: var(--mobile-action);
}

.app-header .notif-badge {
  border-color: var(--mobile-surface);
}

.app button.outlined,
.app .outlined,
.account-secondary-action,
.mobile-substitution-modal__actions .outlined {
  background: var(--mobile-card);
  color: var(--mobile-action);
  border-color: var(--mobile-border);
}

.app button:not(:disabled):focus-visible,
.auth-page--mobile button:not(:disabled):focus-visible,
.app a:focus-visible,
.auth-page--mobile a:focus-visible,
.app input:focus,
.app textarea:focus,
.app select:focus {
  outline: none;
  box-shadow: var(--mobile-focus-ring);
}

.app .material-icons,
.bottom-nav .material-icons {
  color: currentColor;
}

.cart-page__back,
.cart-page__cta,
.cart-empty .material-icons,
.cart-item__remove,
.cart-item__qty button {
  color: var(--mobile-action);
}

.cart-item__qty button,
.cart-summary .secondary {
  background: var(--mobile-card-alt);
}

.account-field span,
.order-top .date,
.delivery,
.mobile-order-line__meta,
.mobile-order-line__variant {
  color: var(--mobile-muted);
}

.bottom-nav {
  background: var(--mobile-card);
  border-top-color: var(--mobile-border);
}

.bottom-nav .nav-item {
  color: var(--mobile-nav-inactive);
  opacity: 0.72;
}

.bottom-nav .active {
  color: var(--mobile-action);
  opacity: 1;
}/*# sourceMappingURL=dashboard.css.map */