:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-soft: #f3eee6;
  --border: #e6dfd3;
  --text: #1c2420;
  --muted: #5d6963;
  --primary: #1f4e3d;
  --primary-hover: #173c2f;
  --primary-soft: #e6f1ec;
  --accent: #d96b27;
  --accent-soft: #fdf0e7;
  --offer: #147a4b;
  --offer-bg: #e5f7ee;
  --danger: #b83232;
  --danger-bg: #fdecec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(28, 36, 32, 0.06);
  --shadow-lg: 0 12px 34px rgba(28, 36, 32, 0.16);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  min-height: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header & Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none !important;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid #cce0d7;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  line-height: 1.3;
}

.version-badge:hover {
  background: var(--primary);
  color: #fff;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
  text-decoration: none;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none !important;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  flex-shrink: 0;
}

.avatar-sm {
  width: 22px;
  height: 22px;
  font-size: 0.65rem;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

/* Main Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 14px 96px;
}

/* Mobile Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 12px;
  text-decoration: none !important;
}

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

.bottom-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Cards & Typography */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 14px;
}

h1, h2, h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

h1 {
  font-size: 1.45rem;
  font-weight: 800;
}

h2 {
  font-size: 1.12rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.84rem;
}

.tiny {
  font-size: 0.75rem;
}

/* Alerts */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.alert-ok {
  background: var(--offer-bg);
  color: var(--offer);
  border: 1px solid #bde8d1;
}

.alert-err {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f4c2c2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
  text-decoration: none !important;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #bf5a1c;
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.btn-soft:hover {
  background: #eae2d5;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #f4c2c2;
}

.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* Form Controls */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 5px;
  color: var(--text);
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d5ccbe;
  background: #fff;
  color: var(--text);
  font-size: 0.96rem;
  font-family: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(31, 78, 61, 0.25);
  border-color: var(--primary);
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row input {
  flex: 1;
}

/* Segmented Controls */
.segmented {
  display: inline-flex;
  background: var(--surface-soft);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  gap: 4px;
}

.segmented a, .segmented button {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none !important;
}

.segmented a.active, .segmented button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Hero Summary Bar */
.hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--text);
}

.pill-green {
  background: var(--offer-bg);
  color: var(--offer);
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Upcoming 14-day Cards (Mobile-friendly primary view) */
.day-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.day-card:hover {
  border-color: var(--primary);
}

.day-card.today {
  border-color: var(--accent);
  border-width: 2px;
}

.day-card.free {
  background: #fdfcf9;
  border-style: dashed;
}

.day-thumb {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.day-body {
  flex: 1;
  min-width: 0;
}

.day-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.day-title {
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--muted);
}

.cook-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--text);
}

/* Monthly Calendar Grid */
.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 0;
  text-transform: uppercase;
}

.cal-cell {
  min-height: 82px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.cal-cell.out {
  opacity: 0.42;
  background: var(--surface-soft);
}

.cal-cell.today {
  border: 2px solid var(--accent);
}

.cal-cell.booked {
  background: #fff;
}

.cal-cell:hover {
  border-color: var(--primary);
}

.cal-day-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
}

.cal-cell.today .cal-day-num {
  color: var(--accent);
}

.cal-mini-img {
  width: 100%;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.cal-mini-dish {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.cal-mini-cook {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  padding: 1px 5px;
  border-radius: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-free-plus {
  margin-top: auto;
  text-align: center;
  font-size: 0.75rem;
  color: #b5aa9a;
  font-weight: 700;
}

.cal-cell.has-trip {
  border-color: #e6a976;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 42%);
}

.cal-mini-trip {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-mini-trip:hover {
  background: #bf5a1c;
}

.cal-trip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #ebb68f;
  background: var(--accent-soft);
  color: #a64b13;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.cal-trip-pill:hover {
  background: #fbe3d0;
}

/* Store Comparison Grid */
.store-manage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.store-add-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-add-form select {
  min-height: 36px;
  padding: 5px 10px;
  font-size: 0.85rem;
  width: auto;
  min-width: 185px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-decoration: none !important;
  color: var(--text);
  position: relative;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.store-card.selected {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(31, 78, 61, 0.14);
}

.store-card.cheapest::after {
  content: "BILLIGST I ÉN";
  position: absolute;
  top: -10px;
  right: 8px;
  background: var(--offer);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.store-card.split-card {
  background: linear-gradient(135deg, #eef7f2 0%, #ffffff 100%);
  border-color: #9ed3b8;
}

.store-card.split-card.selected {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(31, 78, 61, 0.2);
}

.route-box {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #c5e3d3;
  border-radius: 12px;
}

.route-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.route-node {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
}

.route-arrow {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.stop-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 8px 10px;
  background: var(--surface-soft);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.78rem;
  align-self: flex-start;
}

.store-total {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
}

/* Shopping List Items */
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary-soft);
}

.shop-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 10px;
  border-bottom: 1px solid var(--surface-soft);
  border-radius: 10px;
}

.shop-item:last-child {
  border-bottom: none;
}

.shop-item.checked {
  opacity: 0.52;
  background: #faf9f6;
}

.shop-item.checked .shop-name {
  text-decoration: line-through;
}

.shop-checkbox {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.shop-main {
  flex: 1;
  min-width: 0;
}

.shop-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.shop-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.shop-qty {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 7px;
  border-radius: 6px;
}

.shop-offer-box {
  margin-top: 5px;
  padding: 6px 9px;
  background: var(--offer-bg);
  border: 1px solid #bfead3;
  border-radius: 9px;
  font-size: 0.8rem;
  color: #0e5936;
}

.shop-price-col {
  text-align: right;
  flex-shrink: 0;
  min-width: 72px;
}

.shop-price {
  font-weight: 800;
  font-size: 0.96rem;
}

.shop-price.offer {
  color: var(--offer);
}

.shop-strike {
  font-size: 0.74rem;
  text-decoration: line-through;
  color: var(--muted);
}

/* Modal / Bottom Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 21, 0.56);
  backdrop-filter: blur(3px);
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-box {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.preview-box.visible {
  display: flex;
}

.preview-box img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.stepper button {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: var(--surface);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
}

.stepper input {
  width: 54px;
  min-height: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 800;
  padding: 4px;
}

/* Auth Pages */
.auth-wrap {
  max-width: 420px;
  margin: 28px auto;
}

.auth-hero {
  text-align: center;
  margin-bottom: 18px;
}

.auth-hero img {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

/* Recipe Library Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.recipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.recipe-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--surface-soft);
}

.recipe-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Color Swatches */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch-opt {
  position: relative;
}

.swatch-opt input {
  position: absolute;
  opacity: 0;
}

.swatch-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  cursor: pointer;
  border: 3px solid transparent;
}

.swatch-opt input:checked + .swatch-dot {
  border-color: var(--text);
  transform: scale(1.08);
}

.extra-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}

.extra-form-grid .extra-name-col {
  grid-column: 1 / -1;
}

.extra-form-grid .extra-btn-col {
  grid-column: 1 / -1;
}

/* Indkøbstur-banner */
.trip-banner {
  background: linear-gradient(135deg, #fdf3ea 0%, #ffffff 100%);
  border: 1.5px solid #efc6a4;
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.trip-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f0dfd0;
}

.trip-item:first-of-type {
  border-top: none;
  padding-top: 2px;
}

/* Kokkehue-rating (0–5) */
.hat-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.hat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #b8aea0;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
}

.hat-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

.hat-btn svg {
  width: 20px;
  height: 20px;
}

.hat-btn.filled {
  background: var(--accent-soft);
  border-color: #ebb68f;
  color: var(--accent);
}

.hat-zero-btn {
  width: auto;
  padding: 0 9px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
}

.hat-zero-btn.active-zero {
  background: var(--danger-bg);
  border-color: #f0b5b5;
  color: var(--danger);
}

.hat-summary {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-left: 4px;
}

.recipe-hero-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.instructions-box {
  white-space: pre-line;
  line-height: 1.65;
  font-size: 0.96rem;
  background: var(--surface-soft);
  padding: 14px 16px;
  border-radius: 12px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-heading {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 8px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.step-card.done {
  opacity: 0.48;
  background: #f5f3ef;
}

.step-card.done .step-text {
  text-decoration: line-through;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-card.done .step-num {
  background: var(--offer);
}

.step-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* "Hvad skal jeg lave?"-forslagsboks */
.suggest-box {
  background: linear-gradient(135deg, #eef6f2 0%, #faf7f2 100%);
  border: 1.5px solid #cfe3d9;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}

.suggest-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cat-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.suggest-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.toggle-pill input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}

.suggest-result {
  margin-top: 12px;
  background: var(--surface);
  border: 1.5px solid #b8dccb;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.suggest-result img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.checked-drawer {
  margin-top: 16px;
  border-top: 1.5px dashed var(--border);
  padding-top: 10px;
}

.checked-drawer summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 4px;
  user-select: none;
}

.pantry-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.pantry-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid #cfe3d9;
  border-radius: 12px;
  padding: 10px;
}

.pantry-card img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.staple-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.staple-chip {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.staple-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.staple-chip.on-list {
  background: var(--offer-bg);
  border-color: #9ad9b8;
  color: var(--offer);
}

input[type="email"],
input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d5ccbe;
  background: #fff;
  color: var(--text);
  font-size: 0.96rem;
  font-family: inherit;
}

/* Desktop Breakpoint */
@media (min-width: 768px) {
  .extra-form-grid {
    grid-template-columns: 2fr 0.7fr 0.8fr auto;
  }
  .extra-form-grid .extra-name-col,
  .extra-form-grid .extra-btn-col {
    grid-column: auto;
  }
  .desktop-nav {
    display: flex;
  }
  .bottom-nav {
    display: none;
  }
  .container {
    padding: 24px 20px 48px;
  }
  .day-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .cal-cell {
    min-height: 118px;
    padding: 7px;
  }
  .cal-mini-img {
    height: 54px;
  }
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .modal-sheet {
    border-radius: 22px;
    padding: 24px;
  }
  .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .store-card {
    padding: 16px;
  }
  .store-total {
    font-size: 1.55rem;
  }
}


/* Ret-knap direkte på ekstra/dagligvarer i indkøbslisten */
.btn-edit-extra {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.12s, border-color 0.12s;
}
.btn-edit-extra:hover {
  background: #e7f6ee;
  border-color: var(--primary);
}
.amount-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.amount-stepper-row input {
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.unit-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.unit-quick-chip {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.unit-quick-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}


/* v1.12.0 UI-forsimpling: kompakt toolbar, slank hurtig-tilføj, sticky restpris & mobil priskort-bånd */
.compact-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
}
.compact-trip-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}
.compact-trip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.quick-add-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.badge-save {
  display: inline-block;
  background: #1c7c4a;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 3px;
}
.sticky-shop-bar {
  position: sticky;
  top: 62px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #b8e4cc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(24, 54, 42, 0.08);
}
.sticky-shop-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-shop-price {
  font-weight: 900;
  font-size: 0.98rem;
  color: var(--primary);
  white-space: nowrap;
}
@media (max-width: 680px) {
  .store-grid.store-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .store-grid.store-strip .store-card {
    flex: 0 0 162px;
    scroll-snap-align: start;
  }
  .sticky-shop-bar {
    top: 56px;
  }
}
