:root {
  --forest-950: #0d2b25;
  --forest-900: #12372f;
  --forest-800: #173f35;
  --forest-700: #235747;
  --forest-600: #34705d;
  --sage-100: #e6eee8;
  --sage-50: #f1f5f2;
  --cream: #f6f3ec;
  --paper: #fffdfa;
  --white: #ffffff;
  --ink: #1d2b27;
  --muted: #68756f;
  --soft: #87928d;
  --line: #e4e7e2;
  --line-warm: #e9e2d7;
  --orange: #e9784b;
  --orange-dark: #c95b32;
  --orange-soft: #fff0e9;
  --lime: #dceb9f;
  --success: #2f855a;
  --warning: #b97719;
  --danger: #c64a4a;
  --sidebar: 252px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 3px 12px rgba(22, 52, 43, 0.06);
  --shadow: 0 18px 50px rgba(22, 52, 43, 0.11);
  --shadow-lg: 0 28px 80px rgba(12, 35, 29, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(233, 120, 75, 0.45);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--forest-950);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px 22px;
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.sidebar::before {
  position: absolute;
  right: -110px;
  bottom: 120px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(220, 235, 159, 0.12);
  border-radius: 50%;
  content: "";
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
  color: var(--forest-950);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -1px;
  transform: rotate(-3deg);
}

.brand-mark::after {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--forest-950);
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.brand em {
  color: var(--orange);
  font-style: normal;
}

.nav-label {
  margin: 42px 12px 12px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transform: translateX(2px);
}

.side-nav button[aria-current="page"] {
  background: rgba(220, 235, 159, 0.13);
  color: var(--lime);
}

.side-nav button[aria-current="page"]::after {
  position: absolute;
  top: 13px;
  right: -20px;
  width: 4px;
  height: 22px;
  border-radius: 9px 0 0 9px;
  background: var(--lime);
  content: "";
}

.nav-icon,
.button-icon,
.meta-icon,
.mini-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-spacer {
  flex: 1;
}

.impact-card {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.impact-card::after {
  position: absolute;
  right: -15px;
  bottom: -24px;
  color: rgba(220, 235, 159, 0.13);
  content: "✦";
  font-size: 84px;
}

.impact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.impact-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 150px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.25;
}

.impact-card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.45;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar,
.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.profile-card strong {
  display: block;
  color: var(--white);
  font-size: 12px;
}

.profile-card small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(228, 231, 226, 0.82);
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.location-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.location-button:hover {
  border-color: #cfd6d1;
  background: var(--white);
}

.location-pin {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--sage-100);
  color: var(--forest-700);
}

.location-copy {
  text-align: left;
}

.location-copy small {
  display: block;
  margin-bottom: 2px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.location-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.env-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--env), white 62%);
  border-radius: 11px;
  background: color-mix(in srgb, var(--env), white 93%);
  color: var(--env);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.env-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--env);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--env), transparent 86%);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  background: var(--white);
  color: var(--forest-700);
  transform: translateY(-1px);
}

.icon-button svg,
.location-pin svg,
.button-icon svg,
.meta-icon svg,
.mini-icon svg {
  width: 18px;
  height: 18px;
}

.top-actions .avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
}

.simulation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 31px;
  padding: 5px 20px;
  border-bottom: 1px solid #eee1ce;
  background: #fff5e6;
  color: #8f642b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.6px;
}

.simulation-banner i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d99434;
}

.content {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 30px 34px 70px;
}

.view-enter {
  animation: view-in 0.34s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  min-height: 348px;
  border-radius: 30px;
  background: var(--forest-800);
  color: var(--white);
  box-shadow: 0 16px 44px rgba(23, 63, 53, 0.13);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: -140px;
  right: -80px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255, 255, 255, 0.025), 0 0 0 116px rgba(255, 255, 255, 0.018);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 43px 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-600);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--lime);
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  content: "";
}

.hero-tagline::before {
  display: none;
}

.hero h1,
.page-heading h1,
.section-heading h2,
.modal h2,
.empty-state h2,
.dashboard-title,
.panel-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
  max-width: 650px;
  margin: 15px 0 15px;
  font-size: clamp(40px, 4vw, 61px);
  line-height: 0.98;
  letter-spacing: -2.5px;
}

.hero h1 span {
  color: var(--lime);
}

.hero-copy > p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  border: 1px solid var(--forest-800);
  background: var(--forest-800);
  color: var(--white);
  box-shadow: 0 9px 20px rgba(23, 63, 53, 0.16);
}

.primary-button:hover {
  background: var(--forest-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 63, 53, 0.2);
}

.primary-button.light {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--forest-950);
  box-shadow: none;
}

.primary-button.light:hover {
  background: #e6f2b5;
}

.primary-button.full {
  width: 100%;
}

.primary-button.compact {
  min-height: 39px;
  padding: 0 14px;
  font-size: 11px;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest-700);
}

.ghost-button:hover {
  background: var(--sage-50);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 330px;
  place-items: center;
}

.visual-orbit {
  position: relative;
  width: 310px;
  height: 280px;
}

.hero-bag {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 178px;
  height: 208px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 34px 34px 46px 46px;
  background: linear-gradient(145deg, #f7e3b4, #edbc72);
  box-shadow: 0 32px 55px rgba(6, 26, 21, 0.38);
  transform: translate(-50%, -47%) rotate(4deg);
}

.hero-bag::before {
  position: absolute;
  top: -25px;
  width: 78px;
  height: 44px;
  border: 8px solid #e8bc76;
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
  content: "";
}

.hero-bag::after {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  border-top: 2px dashed rgba(92, 64, 26, 0.2);
  content: "";
}

.hero-bag .bag-print {
  width: 112px;
  height: 112px;
  overflow: visible;
  filter: drop-shadow(0 2px 0 rgba(88, 58, 22, 0.16));
  transform: rotate(-4deg);
}

.stamp-base {
  fill: var(--forest-600);
}

.stamp-ring {
  fill: none;
  stroke: var(--cream);
}

.stamp-ring.outer {
  stroke-width: 2.4px;
}

.stamp-ring.inner {
  opacity: 0.58;
  stroke-width: 1px;
}

.stamp-title,
.stamp-copy {
  fill: var(--cream);
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.stamp-title {
  font-size: 13.5px;
}

.stamp-copy {
  font-size: 9.5px;
}

.stamp-line {
  fill: none;
  opacity: 0.72;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-width: 2px;
}

.stamp-leaf {
  fill: var(--lime);
}

.orbit-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(7, 30, 24, 0.23);
  animation: float 4.5s ease-in-out infinite;
}

.orbit-bubble.one {
  top: 15px;
  left: 2px;
  width: 70px;
  height: 70px;
  font-size: 34px;
  transform: rotate(-8deg);
}

.orbit-bubble.two {
  right: 0;
  bottom: 25px;
  width: 68px;
  height: 68px;
  font-size: 33px;
  animation-delay: -1.5s;
  transform: rotate(8deg);
}

.orbit-bubble.three {
  right: 17px;
  top: 3px;
  width: 58px;
  height: 58px;
  font-size: 27px;
  animation-delay: -2.6s;
}

.orbit-bubble.four {
  bottom: 77px;
  left: -6px;
  width: 62px;
  height: 62px;
  font-size: 30px;
  animation-delay: -3.4s;
  transform: rotate(7deg);
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.impact-sticker {
  position: absolute;
  bottom: 10px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--forest-950);
  box-shadow: 0 10px 22px rgba(8, 31, 25, 0.2);
  transform: rotate(-3deg);
}

.impact-sticker b {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.impact-sticker small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.search-shell {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  width: calc(100% - 62px);
  margin: -27px auto 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 45px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--sage-50);
  color: var(--soft);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-field input::placeholder {
  color: #929d98;
}

.search-nearby {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-nearby:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.section-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading {
  margin: 0 0 18px;
}

.page-heading {
  margin-bottom: 25px;
}

.section-heading h2,
.page-heading h1 {
  margin: 5px 0 0;
  color: var(--ink);
  letter-spacing: -1px;
}

.section-heading h2 {
  font-size: 27px;
}

.page-heading h1 {
  font-size: clamp(31px, 4vw, 42px);
}

.section-heading p,
.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.result-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.category-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  border-color: #cdd5d0;
  color: var(--forest-700);
  transform: translateY(-1px);
}

.chip.active {
  border-color: var(--forest-800);
  background: var(--forest-800);
  color: var(--white);
  box-shadow: 0 7px 16px rgba(23, 63, 53, 0.13);
}

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

.bag-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.24s ease, border 0.24s ease;
}

.bag-card:hover {
  border-color: #d3d9d5;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.card-open {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-media {
  position: relative;
  display: grid;
  height: 178px;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent), white 62%));
  overflow: hidden;
}

.card-media::before,
.card-media::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
}

.card-media::before {
  right: -30px;
  bottom: -60px;
  width: 160px;
  height: 160px;
}

.card-media::after {
  top: -35px;
  left: -25px;
  width: 90px;
  height: 90px;
}

.food-emoji {
  position: relative;
  z-index: 1;
  font-size: 72px;
  filter: drop-shadow(0 13px 12px rgba(51, 39, 22, 0.22));
  transition: transform 0.26s ease;
}

.bag-card:hover .food-emoji {
  transform: scale(1.08) rotate(-4deg);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.91);
  color: var(--forest-800);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.favorite-button {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.91);
  color: var(--forest-800);
  box-shadow: 0 6px 14px rgba(48, 40, 27, 0.11);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.favorite-button:hover {
  color: var(--orange);
  transform: scale(1.06);
}

.favorite-button[aria-pressed="true"] {
  color: var(--orange);
}

.favorite-button svg {
  width: 17px;
  height: 17px;
}

.card-content {
  padding: 15px 16px 16px;
}

.merchant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.merchant-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating {
  flex: 0 0 auto;
  color: #8a6528;
}

.bag-card h3,
.order-card h3 {
  margin: 8px 0 11px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -0.3px;
}

.pickup-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.pickup-meta .meta-icon {
  color: var(--forest-600);
}

.pickup-meta .meta-icon svg {
  width: 14px;
  height: 14px;
}

.card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.price-block del {
  display: block;
  margin-bottom: 2px;
  color: var(--soft);
  font-size: 9px;
}

.price-block strong {
  color: var(--forest-800);
  font-size: 19px;
  letter-spacing: -0.6px;
}

.stock-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.stock-label::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.empty-state {
  grid-column: 1 / -1;
  padding: 54px 24px;
  border: 1px dashed #cfd7d2;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 20px;
  background: var(--sage-100);
  color: var(--forest-600);
}

.empty-icon svg {
  width: 27px;
  height: 27px;
}

.empty-state h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 23px;
}

.empty-state p {
  margin: 0 auto 19px;
  max-width: 430px;
  font-size: 12px;
  line-height: 1.55;
}

.bottom-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(8, 27, 22, 0.68);
  backdrop-filter: blur(10px);
  animation: fade-in 0.2s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: min(540px, 100%);
  max-height: min(90vh, 780px);
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  animation: modal-in 0.26s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.91);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-visual {
  position: relative;
  display: grid;
  height: 185px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent), white 67%));
  overflow: hidden;
}

.modal-visual::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  content: "";
}

.modal-visual span {
  position: relative;
  z-index: 1;
  font-size: 88px;
  filter: drop-shadow(0 14px 13px rgba(40, 32, 20, 0.2));
}

.modal-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--forest-600);
  font-size: 10px;
  font-weight: 800;
}

.modal h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -1px;
}

.modal > p,
.modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 19px 0;
}

.info-box {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--sage-50);
}

.info-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.info-box strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
}

.modal-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 18px;
}

.modal-price .price-block strong {
  font-size: 25px;
}

.availability {
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 850;
}

.safe-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  color: var(--soft);
  font-size: 9px;
  line-height: 1.45;
}

.safe-note .mini-icon {
  color: var(--success);
}

.safe-note .mini-icon svg {
  width: 14px;
  height: 14px;
}

.success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 3px auto 20px;
  place-items: center;
  border-radius: 24px;
  background: var(--sage-100);
  color: var(--success);
}

.success-mark svg {
  width: 34px;
  height: 34px;
}

.centered {
  text-align: center;
}

.qr-shell {
  display: grid;
  width: 188px;
  height: 188px;
  margin: 20px auto 15px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.qr {
  width: 144px;
  height: 144px;
  border: 9px solid var(--white);
  background:
    linear-gradient(90deg, var(--forest-950) 8px, transparent 8px) 0 0 / 24px 24px,
    linear-gradient(var(--forest-950) 8px, transparent 8px) 0 0 / 24px 24px,
    repeating-conic-gradient(var(--forest-950) 0 25%, transparent 0 50%) 12px 12px / 24px 24px;
  box-shadow: 0 0 0 1px var(--line);
}

.payment-total {
  margin-bottom: 20px;
  text-align: center;
}

.payment-total small {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.payment-total strong {
  color: var(--forest-800);
  font-size: 25px;
}

.pickup-code {
  margin: 20px 0;
  padding: 19px;
  border: 1px solid #ccdba1;
  border-radius: 17px;
  background: var(--lime);
  color: var(--forest-950);
  font-size: clamp(29px, 8vw, 40px);
  font-weight: 900;
  letter-spacing: 7px;
  text-align: center;
}

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

.order-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 174px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.order-visual {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent), white 66%));
}

.order-visual span {
  font-size: 48px;
  filter: drop-shadow(0 9px 8px rgba(40, 32, 20, 0.17));
}

.order-body {
  min-width: 0;
  padding: 16px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.order-status.paid,
.order-status.picked-up {
  background: #e4f3e9;
  color: var(--success);
}

.order-status.pending {
  background: #fff3df;
  color: var(--warning);
}

.order-status.expired {
  background: #f5e7e7;
  color: var(--danger);
}

.order-card h3 {
  margin-bottom: 7px;
}

.order-card .pickup-meta {
  min-height: auto;
  margin-bottom: 10px;
}

.mini-code {
  display: inline-block;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--forest-950);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

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

.metric-card {
  position: relative;
  min-height: 137px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.metric-card.highlight {
  border-color: var(--forest-800);
  background: var(--forest-800);
  color: var(--white);
}

.metric-icon {
  display: grid;
  width: 33px;
  height: 33px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 10px;
  background: var(--sage-100);
  color: var(--forest-600);
}

.metric-card.highlight .metric-icon {
  background: rgba(255, 255, 255, 0.11);
  color: var(--lime);
}

.metric-icon svg {
  width: 17px;
  height: 17px;
}

.metric-card small {
  display: block;
  color: var(--soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.metric-card.highlight small {
  color: rgba(255, 255, 255, 0.48);
}

.metric-card b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.7px;
}

.metric-card.highlight b {
  color: var(--white);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 17px;
  margin-top: 18px;
}

.panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 22px;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: var(--sage-50);
}

.tab {
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--white);
  color: var(--forest-700);
  box-shadow: var(--shadow-sm);
}

.pickup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.pickup-input {
  width: 100%;
  min-height: 51px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage-50);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 7px;
  outline: 0;
}

.pickup-input:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(52, 112, 93, 0.1);
}

.pickup-form .primary-button {
  min-height: 51px;
  border: 0;
}

.activity-list {
  display: grid;
  gap: 2px;
}

.activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--orange-soft);
  font-size: 17px;
}

.activity-row strong {
  display: block;
  font-size: 11px;
}

.activity-row small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 9px;
}

.activity-row > b {
  color: var(--forest-700);
  font-size: 11px;
}

.environment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 21px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.summary-icon {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--env), white 88%);
  color: var(--env);
}

.summary-icon svg {
  width: 20px;
  height: 20px;
}

.summary-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.service-list {
  display: grid;
  gap: 9px;
}

.service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.service-status {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
}

.service-status.healthy {
  background: #e4f3e9;
  color: var(--success);
}

.service-status.degraded {
  background: #fff3df;
  color: var(--warning);
}

.service-status.down {
  background: #f7e5e5;
  color: var(--danger);
}

.service-status svg {
  width: 18px;
  height: 18px;
}

.service-row strong {
  display: block;
  font-size: 12px;
}

.service-row small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 9px;
}

.service-row select {
  min-height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--sage-100);
  color: var(--forest-700);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.environment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.environment-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.environment-links a::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.loading-shell {
  display: grid;
  gap: 18px;
}

.skeleton {
  position: relative;
  border-radius: 20px;
  background: #e8e9e4;
  overflow: hidden;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.25s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 180;
  display: flex;
  align-items: center;
  max-width: min(360px, calc(100vw - 32px));
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--forest-950);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 1260px) {
  .bag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  }

  .visual-orbit {
    transform: scale(0.88);
  }
}

@media (max-width: 1040px) {
  :root {
    --sidebar: 86px;
  }

  .sidebar {
    align-items: center;
    padding-inline: 13px;
  }

  .brand-copy,
  .nav-label,
  .side-nav .nav-copy,
  .impact-card,
  .profile-copy {
    display: none;
  }

  .side-nav {
    width: 100%;
    margin-top: 36px;
  }

  .side-nav button {
    justify-content: center;
    padding: 0;
  }

  .side-nav button[aria-current="page"]::after {
    right: -13px;
  }

  .sidebar-spacer {
    flex: 1;
  }

  .profile-card {
    padding-inline: 0;
  }

  .hero-copy {
    padding-left: 38px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 870px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 40px 40px 20px;
  }

  .hero-visual {
    min-height: 225px;
  }

  .visual-orbit {
    margin-top: -28px;
    transform: scale(0.72);
  }

  .bag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .environment-summary,
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background: #f8f6f1;
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    height: 66px;
    padding: 0 16px;
    background: rgba(248, 246, 241, 0.92);
  }

  .mobile-brand {
    display: flex;
    font-size: 25px;
  }

  .mobile-brand .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 16px;
  }

  .location-button {
    display: none;
  }

  .top-actions .env-pill {
    min-height: 35px;
  }

  .top-actions .icon-button {
    display: none;
  }

  .top-actions .avatar {
    width: 35px;
    height: 35px;
  }

  .simulation-banner {
    min-height: 27px;
    font-size: 8px;
  }

  .content {
    padding: 18px 15px calc(102px + env(safe-area-inset-bottom));
  }

  .hero {
    min-height: 0;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 31px 25px 18px;
  }

  .hero h1 {
    margin-top: 12px;
    font-size: clamp(37px, 12vw, 52px);
  }

  .hero-copy > p {
    font-size: 12px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .secondary-button {
    display: none;
  }

  .hero-visual {
    min-height: 180px;
  }

  .visual-orbit {
    margin-top: -52px;
    margin-bottom: -38px;
    transform: scale(0.61);
  }

  .search-shell {
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
    margin-top: -18px;
    margin-bottom: 24px;
    padding: 8px;
    border-radius: 16px;
  }

  .search-field {
    min-height: 42px;
  }

  .search-nearby {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }

  .search-nearby .button-copy {
    display: none;
  }

  .section-heading,
  .page-heading {
    align-items: start;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .category-row {
    margin-right: -15px;
    padding-right: 15px;
  }

  .bag-grid,
  .order-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .bag-card {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    border-radius: 18px;
  }

  .card-open {
    display: contents;
  }

  .card-media {
    height: auto;
    min-height: 178px;
  }

  .food-emoji {
    font-size: 55px;
  }

  .discount-badge {
    top: 9px;
    left: 9px;
  }

  .favorite-button {
    top: 8px;
    right: auto;
    left: 83px;
  }

  .card-content {
    min-width: 0;
    padding: 14px;
  }

  .bag-card h3 {
    font-size: 16px;
  }

  .stock-label {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 19px;
    background: rgba(13, 43, 37, 0.96);
    box-shadow: 0 18px 45px rgba(8, 30, 24, 0.27);
    backdrop-filter: blur(16px);
  }

  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 3px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: rgba(255, 255, 255, 0.46);
    font-size: 8px;
    font-weight: 750;
    cursor: pointer;
  }

  .bottom-nav button[aria-current="page"] {
    background: rgba(220, 235, 159, 0.12);
    color: var(--lime);
  }

  .bottom-nav svg {
    width: 19px;
    height: 19px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 91vh;
    padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 25px 25px 0 0;
  }

  .modal-visual {
    height: 160px;
  }

  .modal h2 {
    font-size: 27px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 125px;
    padding: 16px;
  }

  .metric-card b {
    font-size: 20px;
  }

  .panel {
    padding: 18px;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .pickup-form {
    grid-template-columns: 1fr;
  }

  .environment-summary {
    gap: 9px;
  }

  .summary-card {
    padding: 14px;
  }

  .service-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .service-row select,
  .locked-badge {
    grid-column: 1 / -1;
    width: 100%;
  }

  .locked-badge {
    justify-content: center;
  }

  #toast {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 16px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
