:root {
  --surface: #fcf8fa;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --slate: #475569;
  --blue: #3b82f6;
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --danger: #ba1a1a;
  --soft-blue: #d0e1fb;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--text);
  color: white;
  font-weight: 800;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.topbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.main {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 24px;
}

.auth-main {
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 430px);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
  padding: 22px;
  color: white;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.hero-card > * {
  position: relative;
}

.hero-card h2,
.screen-title h2 {
  margin: 0;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-card p,
.screen-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.76);
}

.screen-title {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.screen-actions,
.inline-actions,
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.screen-actions {
  justify-content: space-between;
  margin-bottom: 18px;
}

.btn,
.icon-btn,
.fab {
  min-height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:active,
.icon-btn:active,
.fab:active {
  transform: scale(0.97);
}

.btn {
  padding: 0 16px;
  color: white;
  background: var(--text);
  font-weight: 700;
}

.btn.secondary {
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
}

.btn.danger {
  background: var(--danger);
}

.btn.full {
  width: 100%;
}

.throbber {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-generate-btn {
  min-height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: white;
  background: #0f172a;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.ai-generate-btn:hover {
  background: #1e293b;
}

.ai-generate-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}

.ai-generate-btn.secondary-ai {
  min-height: 48px;
  margin-top: 6px;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  box-shadow: none;
}

.ai-generate-btn.secondary-ai:hover {
  background: #f8fafc;
}

.icon-btn {
  width: 44px;
  min-height: 44px;
  background: transparent;
  color: var(--text);
}

.icon-btn:hover {
  background: #f8fafc;
}

.fab {
  position: fixed;
  right: 22px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 18;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  background: var(--text);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 16px;
}

.trip-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.trip-card,
.activity-card,
.info-group,
.settings-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.trip-card {
  cursor: pointer;
  overflow: hidden;
}

.trip-card:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 3px;
}

.trip-art {
  min-height: 116px;
  background: #d0e1fb;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.trip-art.has-image {
  min-height: 156px;
}

.trip-art.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  left: 0;
  right: 0;
  bottom: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.42));
}

.trip-art.has-image::after {
  display: none;
}

.image-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 8px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.trip-art::before,
.trip-art::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.12) transparent transparent transparent;
  border-radius: 50%;
}

.trip-art::before {
  bottom: -34px;
  height: 92px;
}

.trip-art::after {
  bottom: -50px;
  height: 120px;
  opacity: 0.55;
}

.trip-body,
.card,
.settings-panel {
  padding: 18px;
}

.trip-image-preview {
  min-height: 150px;
  margin: 12px 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #d0e1fb;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.trip-image-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.34));
}

.trip-image-preview span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 8px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.trip-body h3,
.activity-card h3,
.info-entry h4 {
  margin: 0;
  font-size: 18px;
}

.meta,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: #38485d;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 22px;
}

.date-strip {
  position: sticky;
  top: 72px;
  z-index: 14;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 12px;
  margin: 0 -24px 18px;
  padding-left: 24px;
  padding-right: 24px;
  background: rgba(252, 248, 250, 0.94);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 68px;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 8px;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.date-chip span,
.date-chip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.date-chip strong {
  font-size: 22px;
  line-height: 1;
}

.date-chip.today {
  border-color: #bfdbfe;
}

.date-chip.active {
  color: white;
  background: var(--text);
  border-color: var(--text);
}

.date-chip.active span,
.date-chip.active em {
  color: rgba(255, 255, 255, 0.74);
}

.now-marker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 18px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.now-marker::after {
  content: "";
  height: 2px;
  flex: 1;
  background: var(--rose);
  opacity: 0.52;
}

.compact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.compact-row span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.compact-row .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.78;
  width: 18px;
  min-width: 18px;
}

.compact-btn {
  min-height: 38px;
  padding: 0 14px;
}

.compact-row .compact-btn {
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.18);
}

.compact-row .compact-btn .material-symbols-outlined {
  color: currentColor;
  opacity: 1;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.compact-row .compact-btn:hover {
  background: #e11d48;
}

.day-group > h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
}

.activity-card {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 16px 20px;
  border-left-width: 5px;
}

.activity-card.untimed-movable {
  cursor: grab;
}

.activity-card.untimed-movable::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: rgba(15, 23, 42, 0.03);
  transition: opacity 160ms ease;
}

.activity-card.untimed-movable.hold-pending::after {
  opacity: 1;
}

.activity-card.reorder-dragging {
  position: fixed;
  z-index: 80;
  cursor: grabbing;
  pointer-events: none;
  transform: scale(1.01);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.activity-placeholder {
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
}

body.reorder-active {
  user-select: none;
}

.activity-card.drive,
.activity-card.freeform,
.activity-card.reservation {
  border-left-color: var(--slate);
}

.activity-card.flight {
  border-left-color: var(--blue);
}

.activity-card.visit {
  border-left-color: var(--amber);
}

.activity-card.activity {
  border-left-color: var(--blue);
}

.activity-card.stay {
  border-left-color: var(--green);
}

.activity-card.meal {
  border-left-color: var(--rose);
}

.activity-card.meal .detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-card.meal .detail {
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
}

.activity-card.meal .detail span {
  font-size: 10px;
}

.activity-card.meal .detail strong {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.2;
}

.activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.activity-heading {
  min-width: 0;
}

.activity-head .inline-actions {
  align-items: flex-start;
  flex: 0 0 auto;
}

.activity-head .icon-btn {
  width: 32px;
  min-height: 32px;
}

.activity-head .icon-btn .material-symbols-outlined {
  font-size: 21px;
}

.activity-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.activity-title .material-symbols-outlined {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  font-size: 21px;
}

.activity-title h3 {
  overflow-wrap: anywhere;
  line-height: 1.22;
}

.activity-body {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.detail {
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.detail span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.detail-compact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.detail-compact strong {
  margin-top: 0;
}

.map-nav-btn,
.url-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--text);
  border-radius: 8px;
}

.url-icon-btn {
  text-decoration: none;
}

.map-nav-btn .material-symbols-outlined,
.url-icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-height: calc(66px + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  min-height: 50px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav button.active {
  color: var(--text);
  background: #f8fafc;
}

.info-group {
  overflow: hidden;
}

.info-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.info-group-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
}

.info-entry {
  padding: 15px 16px;
  border-top: 1px solid var(--border);
}

.info-entry:first-child {
  border-top: 0;
}

.shopping-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.shopping-group {
  padding: 4px 0 10px;
}

.shopping-group h3 {
  margin: 14px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shopping-translation {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.shopping-day-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.shopping-day-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shopping-day-filter-head strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.shopping-day-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.shopping-day-options::-webkit-scrollbar {
  display: none;
}

.shopping-day-option {
  flex: 0 0 auto;
  width: 58px;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 7px;
  color: var(--text);
  background: #fbfdff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.shopping-day-option input {
  width: 16px;
  height: 16px;
}

.shopping-day-option strong {
  font-size: 18px;
  line-height: 1;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.check-row input {
  width: 20px;
  height: 20px;
}

.check-row .material-symbols-outlined {
  color: var(--rose);
  font-size: 20px;
}

.meal-detail {
  display: grid;
  gap: 18px;
}

.meal-detail h2 {
  margin-bottom: 0;
}

.meal-detail h3 {
  margin: 0 0 10px;
}

.recipe-list,
.recipe-steps {
  margin: 0;
  padding: 0;
}

.recipe-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.recipe-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recipe-list span {
  color: var(--muted);
  text-align: right;
}

.recipe-steps {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.recipe-steps li {
  line-height: 1.5;
}

.shopping-item input {
  width: 20px;
  height: 20px;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.member-row-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.member-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.member-row-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.meal-builder {
  display: grid;
  gap: 16px;
}

.meal-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.meal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.meal-section-title .material-symbols-outlined {
  color: var(--rose);
  font-size: 20px;
}

.dietary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dietary-option {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  color: var(--text);
  background: #fbfdff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.dietary-option input {
  width: 18px;
  height: 18px;
}

.dietary-option .material-symbols-outlined {
  width: 22px;
  color: var(--rose);
  font-size: 20px;
}

.meal-pref-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.meal-check-row {
  padding: 10px;
  background: #fbfdff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
}

.meal-builder .field label {
  color: var(--muted);
  font-size: 11px;
}

.meal-builder .field input,
.meal-builder .field textarea,
.meal-builder .field select {
  border-color: #dbe5ef;
  background: #fbfdff;
}

.place-field {
  position: relative;
}

.field label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.suggestions {
  display: none;
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.suggestions.open {
  display: block;
}

.suggestion {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: white;
  color: var(--text);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion:focus {
  background: #f8fafc;
}

.suggestion strong {
  overflow-wrap: anywhere;
}

.suggestion span,
.suggestion-empty {
  color: var(--muted);
  font-size: 12px;
}

.suggestion-empty {
  padding: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  background: rgba(15, 23, 42, 0.35);
}

.modal-sheet {
  max-height: 92dvh;
  overflow: auto;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 10px 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
}

.suggestion-backdrop {
  z-index: 52;
}

.suggestion-sheet {
  width: min(100%, 520px);
}

.sheet-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #cbd5e1;
}

.modal-content h2 {
  margin: 0 0 14px;
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  padding: 13px 14px;
  color: white;
  background: var(--text);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  .auth-main {
    align-items: center;
  }

  .main {
    padding: 32px;
  }

  .modal-backdrop {
    align-items: center;
  }

  .modal-sheet {
    border-radius: 8px;
  }
}

@media (max-width: 520px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .dietary-grid {
    grid-template-columns: 1fr;
  }

  .screen-actions {
    align-items: stretch;
  }

  .screen-actions .btn {
    flex: 1;
  }
}
