:root {
  --bg: #eef4f3;
  --ink: #10201f;
  --muted: #65726f;
  --card: rgba(255, 255, 255, 0.76);
  --line: rgba(16, 32, 31, 0.1);
  --accent: #0f8f7f;
  --accent-2: #ff7a59;
  --accent-3: #f6c445;
  --shadow: 0 24px 60px rgba(25, 44, 42, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 122, 89, 0.24), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(15, 143, 127, 0.18), transparent 26%),
    linear-gradient(145deg, #f7fbfa, var(--bg));
  overflow-x: hidden;
  overflow-y: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: block;
}

.phone-frame {
  position: relative;
  width: min(720px, 100%);
  height: 100vh;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 248, 247, 0.72)),
    url("data:image/svg+xml,%3Csvg width='140' height='140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2310201f' stroke-opacity='.045'%3E%3Cpath d='M30 12h80a8 8 0 0 1 8 8v86a12 12 0 0 1-12 12H34a12 12 0 0 1-12-12V20a8 8 0 0 1 8-8Z'/%3E%3Cpath d='M52 12v-4h36v4M44 28h52M44 44h52M44 60h52'/%3E%3C/g%3E%3C/svg%3E");
  backdrop-filter: blur(22px);
}

.phone-frame::before {
  display: none;
}

.screen-scroll {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 92px;
  padding-top: max(18px, env(safe-area-inset-top));
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.hero,
.trip-card,
.bags-strip,
.list-panel {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  padding: 4px 24px 16px;
}

.eyebrow,
.label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.trip-title-wrap {
  min-width: 0;
}

.trip-title-input {
  width: 100%;
  height: auto;
  min-height: 58px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
  text-overflow: ellipsis;
}

.trip-title-input:focus {
  border-color: transparent;
  box-shadow: none;
}

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

h2 {
  margin-bottom: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 25px rgba(31, 48, 46, 0.12);
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px) scale(1.03);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.small {
  width: 38px;
  height: 38px;
}

#addItemButton {
  width: 48px;
  height: 48px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #0c646d);
  box-shadow: 0 14px 26px rgba(15, 143, 127, 0.28);
}

#addItemButton .plus-icon {
  width: 22px;
  height: 22px;
}

.icon-button.tiny {
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.icon-button.danger {
  color: rgba(16, 32, 31, 0.45);
  background: rgba(16, 32, 31, 0.05);
}

.icon-button.danger:hover {
  color: #bf5f4a;
  background: rgba(191, 95, 74, 0.1);
}

.spark-icon,
.plus-icon,
.trash-icon,
.config-icon {
  width: 20px;
  height: 20px;
  display: block;
  position: relative;
}

.config-icon::before,
.config-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.config-icon::before {
  top: 5px;
  box-shadow: 0 8px 0 currentColor;
}

.config-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: white;
  box-shadow: 7px 8px 0 -2px white, 7px 8px 0 0 currentColor;
}

.spark-icon::before,
.spark-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.spark-icon::before {
  inset: 0 8px;
}

.spark-icon::after {
  inset: 8px 0;
}

.plus-icon::before,
.plus-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.plus-icon::before {
  inset: 8px 2px;
}

.plus-icon::after {
  inset: 2px 8px;
}

.trash-icon {
  width: 18px;
  height: 18px;
}

.trash-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  bottom: 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.trash-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 4px -2px 0 -1px currentColor;
}

.trip-card {
  margin: 0 18px;
  min-height: 180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(244, 252, 251, 0.72) 42%, rgba(244, 252, 251, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(221, 246, 241, 0.22)),
    url("assets/trip-vacation-bg.png") left center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(25, 44, 42, 0.12);
}

.trip-copy {
  width: min(320px, 66%);
  margin-left: auto;
}

.trip-copy p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 32, 31, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 520ms cubic-bezier(.2, .8, .2, 1);
}

.guide-panel,
.packs-panel {
  margin: 16px 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(25, 44, 42, 0.08);
}

.guide-panel {
  display: grid;
  gap: 12px;
}

.guide-panel #coachText {
  display: none;
}

.guide-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-panel > .primary-button {
  width: 100%;
}

.secondary-button,
.ghost-button {
  min-height: 44px;
  border-radius: 15px;
  font-weight: 900;
}

.secondary-button {
  border: 1px solid rgba(15, 143, 127, 0.18);
  color: var(--ink);
  background: rgba(236, 255, 251, 0.82);
}

.ghost-button {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.panel-head.compact {
  margin-bottom: 12px;
}

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

.pack-card {
  min-height: 74px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
  background: rgba(246, 249, 248, 0.9);
  transition: transform 180ms ease, background 180ms ease;
}

.pack-card:hover {
  transform: translateY(-2px);
  background: rgba(236, 255, 251, 0.88);
}

.pack-card strong {
  font-size: 14px;
}

.pack-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bags-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 18px 0;
}

.bag-card {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(25, 44, 42, 0.08);
  transition: transform 200ms ease, border 200ms ease, background 200ms ease;
}

.bag-card:hover {
  transform: translateY(-3px);
}

.bag-card.is-selected {
  border-color: rgba(15, 143, 127, 0.38);
  background: rgba(236, 255, 251, 0.86);
}

.bag-card.is-selected .bag-icon {
  animation: selectedBagFloat 2.8s ease-in-out infinite;
}

.bag-card.is-hidden {
  display: none;
}

.bag-card span:not(.bag-icon) {
  min-height: 18px;
  font-size: 13px;
  font-weight: 800;
}

.bag-card strong {
  color: var(--muted);
  font-size: 12px;
}

.bag-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  display: block;
  border-radius: 0;
  background: center / contain no-repeat;
  filter: drop-shadow(0 8px 9px rgba(25, 44, 42, 0.14));
  position: relative;
}

.bag-icon::before {
  display: none;
}

.bag-icon.cabin {
  background-image: url("assets/luggage-cabin.png");
}

.bag-icon.checked {
  background-image: url("assets/luggage-checked.png");
}

.bag-icon.personal {
  background-image: url("assets/luggage-personal.png");
}

.list-panel {
  margin: 16px 18px 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(25, 44, 42, 0.09);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 16px -16px 8px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.chip {
  flex: 0 0 auto;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.chip.is-active {
  color: white;
  border-color: transparent;
  background: var(--ink);
}

.items-list {
  display: grid;
  gap: 9px;
  min-height: 176px;
  max-height: 226px;
  overflow: auto;
  padding-right: 2px;
}

.item-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 8px 8px 10px;
  border-radius: 18px;
  background: rgba(246, 249, 248, 0.88);
  animation: rowIn 300ms ease both;
}

.item-row.is-must {
  background: linear-gradient(90deg, rgba(255, 207, 106, 0.22), rgba(246, 249, 248, 0.9));
  box-shadow: inset 3px 0 0 rgba(255, 178, 35, 0.8);
}

.item-row.is-done {
  color: rgba(16, 32, 31, 0.48);
}

.check {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 32, 31, 0.09);
  position: relative;
}

.check::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 6px;
  left: 9px;
  top: 9px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform 180ms ease;
}

.item-row.is-done .check {
  background: var(--accent);
}

.item-row.is-done .check::after {
  transform: rotate(-45deg) scale(1);
}

.item-name {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
}

.item-meta {
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.must-badge {
  padding: 3px 7px;
  border-radius: 999px;
  color: #7a4d00;
  background: rgba(255, 207, 106, 0.5);
  font-size: 10px;
  font-weight: 900;
}

.delete {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  transition: background 160ms ease, color 160ms ease;
}

.delete:hover {
  color: var(--accent-2);
  background: rgba(255, 122, 89, 0.12);
}

.empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.bottom-sheet {
  position: absolute;
  z-index: 34;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 10px 16px 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 -16px 48px rgba(25, 44, 42, 0.16);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 32px)) scale(0.98);
  transition: opacity 220ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1);
  backdrop-filter: blur(24px);
}

.bottom-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bottom-sheet.is-dragging {
  transition: none;
}

.grabber {
  display: block;
  width: 72px;
  height: 28px;
  margin: 0 auto 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  touch-action: none;
  cursor: grab;
}

.grabber::before {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  margin: 11px auto 0;
  border-radius: 999px;
  background: rgba(16, 32, 31, 0.18);
}

.grabber:active {
  cursor: grabbing;
}

.sheet-content {
  display: grid;
  gap: 14px;
}

form,
label {
  display: grid;
  gap: 8px;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(246, 249, 248, 0.9);
  padding: 0 13px;
  font-size: 16px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(15, 143, 127, 0.6);
  box-shadow: 0 0 0 4px rgba(15, 143, 127, 0.12);
}

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

.quantity-stepper.form-quantity {
  width: min(170px, 100%);
  grid-template-columns: 38px 1fr 38px;
}

.quantity-stepper.form-quantity button,
.quantity-stepper.form-quantity input {
  width: 38px;
}

.quantity-stepper.form-quantity input {
  width: 48px;
}

.primary-button {
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: linear-gradient(120deg, var(--accent), #0c646d);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 143, 127, 0.22);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.pack-modal {
  position: absolute;
  z-index: 32;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 14px;
  background: rgba(238, 244, 243, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  backdrop-filter: blur(18px);
}

.pack-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pack-preview-card {
  width: min(420px, 100%);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 10px;
  max-height: min(92vh, 760px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(25, 44, 42, 0.18);
  animation: sheetIn 320ms cubic-bezier(.2, .8, .2, 1) both;
}

.pack-preview-card h2 {
  font-size: 26px;
  line-height: 1.08;
}

.pack-preview-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.pack-progress {
  display: grid;
  gap: 7px;
}

.pack-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pack-progress > div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 32, 31, 0.08);
}

.pack-progress > div span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width 320ms ease;
}

.pack-items-list,
.pack-preview-actions {
  display: grid;
  gap: 9px;
}

.pack-items-list {
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 2px;
}

.pack-preview-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(246, 249, 248, 0.88);
  text-transform: none;
}

.pack-preview-item:not(.has-stepper):not(.is-disabled) {
  grid-template-columns: 22px minmax(0, 1fr);
}

.pack-preview-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.pack-preview-item > span:not(.quantity-stepper) {
  min-width: 0;
}

.pack-preview-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.12;
}

.existing-badge {
  flex: 0 0 auto;
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(15, 143, 127, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.pack-preview-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pack-preview-item.is-disabled {
  opacity: 0.64;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 25px 30px 25px;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(16, 32, 31, 0.06);
}

.quantity-stepper button,
.quantity-stepper input {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  text-align: center;
}

.quantity-stepper input {
  width: 30px;
  padding: 0;
  appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(16, 32, 31, 0.9);
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.onboarding {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(246, 251, 250, 0.54), rgba(238, 244, 243, 0.96)),
    rgba(246, 251, 250, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  backdrop-filter: blur(18px);
}

.onboarding.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.onboarding-card {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(25, 44, 42, 0.18);
  animation: sheetIn 440ms cubic-bezier(.2, .8, .2, 1) both;
}

.onboarding-card h2 {
  font-size: 25px;
  line-height: 1.04;
}

.onboarding-fields {
  display: grid;
  gap: 10px;
}

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

.context-grid {
  align-items: end;
}

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

.field-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.person-toggle {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(246, 249, 248, 0.9);
}

.person-toggle button {
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  touch-action: manipulation;
}

.person-toggle button.is-selected {
  color: var(--ink);
  background: white;
  box-shadow: 0 8px 18px rgba(31, 48, 46, 0.08);
}

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

.onboarding-bag {
  position: relative;
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(246, 249, 248, 0.88);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
  touch-action: manipulation;
  cursor: pointer;
  text-transform: none;
}

.onboarding-bag .bag-icon,
.onboarding-bag strong {
  pointer-events: none;
}

.onboarding-bag strong {
  font-size: 13px;
}

.onboarding-bag .bag-icon {
  width: 68px;
  height: 68px;
}

.onboarding-bag.is-selected {
  border-color: rgba(15, 143, 127, 0.45);
  background: rgba(226, 252, 247, 0.92);
  transform: translateY(-3px);
}

.onboarding-bag.is-selected .bag-icon {
  animation: selectedBagFloat 2.8s ease-in-out infinite;
}

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

@keyframes floaty {
  50% {
    transform: translateY(8px) scale(1.05);
  }
}

@keyframes drift {
  50% {
    transform: translateX(10px);
  }
}

@keyframes bagBounce {
  50% {
    transform: translateY(-7px) rotate(-1deg);
  }
}

@keyframes selectedBagFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: drop-shadow(0 8px 9px rgba(25, 44, 42, 0.14));
  }

  50% {
    transform: translateY(-8px) rotate(-1.5deg) scale(1.04);
    filter: drop-shadow(0 14px 14px rgba(15, 143, 127, 0.2));
  }
}

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

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
  }

  .trip-title-input {
    font-size: 36px;
  }

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

  .trip-copy {
    width: min(310px, 68%);
  }

  .items-list {
    max-height: 206px;
  }

  .guide-actions,
  .packs-grid {
    grid-template-columns: 1fr;
  }

  .onboarding {
    align-items: center;
    padding: 16px 12px;
  }

  .onboarding-card {
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .onboarding-bag {
    min-height: 96px;
  }

  .onboarding-bag .bag-icon {
    width: 58px;
    height: 58px;
  }
}
