:root {
  --ink: #172126;
  --muted: #64747b;
  --line: #dfe7e5;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #e76f51;
  --blue: #5aa7d7;
  --gold: #d9a441;
  --shadow: 0 18px 50px rgba(31, 47, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: clip;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #123237;
  color: #f7fbfa;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f7fbfa;
  color: var(--teal-dark);
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand small,
.trip-mini small,
.trip-mini span {
  display: block;
  color: rgba(247, 251, 250, 0.72);
}

.nav-links {
  display: grid;
  gap: 8px;
}

.nav-links a {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(247, 251, 250, 0.82);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-icon {
  width: 24px;
  text-align: center;
  font-weight: 800;
}

.trip-mini {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-logout {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

main {
  min-width: 0;
  overflow-x: clip;
}

.hero {
  min-height: 580px;
  padding: 48px clamp(20px, 5vw, 72px) 34px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #edf6f4;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo {
  width: min(100%, clamp(330px, 36vw, 560px));
  height: auto;
  display: block;
  margin-bottom: 30px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  color: #47595f;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.icon-button,
.segmented button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--teal);
  color: white;
}

.button.secondary {
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: #ffffff;
  color: var(--teal-dark);
}

.button.mini {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  background: #f4f8f7;
  color: var(--teal-dark);
  font-size: 0.88rem;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d7e5e4;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.today-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.today-card small,
.today-card span {
  color: var(--muted);
}

.dashboard-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.metric {
  min-height: 126px;
  padding: 22px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 4px;
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric strong {
  font-size: 2.1rem;
}

.content-grid,
.workspace {
  padding: 34px clamp(20px, 5vw, 72px);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.trip-card {
  min-height: 178px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.trip-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.trip-card.selected {
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: var(--shadow);
}

.trip-card h2 {
  margin: 12px 0 8px;
}

.trip-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.button.danger {
  border: 1px solid rgba(231, 111, 81, 0.42);
  color: #a63d28;
  background: #fff8f6;
}

.status,
.tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status.planning,
.tag.hotel {
  background: #dff4ef;
  color: var(--teal-dark);
}

.status.draft,
.tag.tour {
  background: #fff0d4;
  color: #7a4d00;
}

.status.done,
.tag.flight {
  background: #dceefa;
  color: #24516c;
}

.trip-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eceb;
}

.trip-progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}

.workspace {
  border-top: 1px solid var(--line);
  max-width: 100%;
  overflow-x: clip;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
  min-width: 0;
}

.section-heading.compact {
  align-items: start;
}

.day-nav {
  max-width: min(100%, 820px);
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.day-nav .icon-button {
  width: 44px;
  height: 64px;
  border: 1px solid var(--line);
  background: white;
  font-size: 1.8rem;
  color: var(--teal-dark);
}

.day-nav .icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.segmented {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.segmented button {
  min-width: 86px;
  min-height: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  flex: 0 0 auto;
}

.segmented button span {
  display: block;
  line-height: 1.05;
}

.segmented button small {
  display: block;
  margin-top: 0;
  font-size: 0.72rem;
  line-height: 1.05;
  color: inherit;
}

.segmented button.active {
  background: var(--ink);
  color: white;
}

.timeline {
  display: grid;
  gap: 14px;
}

.day-photos {
  margin-top: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.day-photos-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.day-photos-head h3 {
  margin: 0 0 4px;
}

.day-photos-head small {
  color: var(--muted);
}

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

.photo-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #edf3f1;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card .icon-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
}

.photo-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.photo-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-left: 4px solid var(--teal);
}

.timeline-item small,
.reservation small,
.place small,
.budget-row small,
.budget-summary small,
.notes small {
  color: var(--muted);
}

.reservation .money-line {
  margin-top: 4px;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reservation-link {
  display: inline-flex;
  margin-top: 6px;
}

.timeline-item .range-line {
  margin-top: 4px;
  color: var(--teal-dark);
  font-weight: 800;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.file-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: #eef4f3;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.file-pill a {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-pill button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.timeline-item strong,
.reservation strong,
.place strong {
  display: block;
}

.timeline-kind {
  min-width: 88px;
  text-align: right;
  color: var(--muted);
  font-weight: 800;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: start;
}

.reservation-list,
.place-list,
.budget-bars,
.checklist,
.notes {
  display: grid;
  gap: 12px;
}

.reservation,
.place {
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef4f3;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.icon-button.filled {
  background: var(--teal);
  color: #fff;
}

.quick-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.quick-form label {
  font-weight: 800;
}

.file-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.file-field input {
  height: auto;
  padding: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

.note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8f7;
}

.map-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(33deg, transparent 46%, rgba(15, 118, 110, 0.18) 47%, transparent 50%),
    linear-gradient(127deg, transparent 42%, rgba(90, 167, 215, 0.22) 43%, transparent 47%),
    radial-gradient(circle at 25% 22%, rgba(231, 111, 81, 0.18), transparent 18%),
    #f5faf9;
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(31, 47, 52, 0.18);
}

.p1 { left: 22%; top: 26%; }
.p2 { left: 58%; top: 38%; background: var(--teal); }
.p3 { left: 38%; top: 66%; background: var(--blue); }
.p4 { left: 74%; top: 62%; background: var(--gold); }

.map-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.map-card small {
  display: block;
  color: var(--muted);
}

.budget-row {
  padding: 16px;
}

.budget-total-card {
  margin-bottom: 12px;
  padding: 20px;
  display: grid;
  gap: 6px;
}

.budget-total-card span,
.budget-total-card small {
  color: var(--muted);
}

.budget-total-card strong {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
}

.budget-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e7eeee;
  overflow: hidden;
}

.bar span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--teal));
}

.budget-summary {
  min-height: 320px;
  padding: 22px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 8px;
}

.budget-summary strong {
  font-size: 2.35rem;
}

.donut {
  width: 150px;
  height: 150px;
  margin-top: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--teal) 0 72%, #e7eeee 72% 100%);
}

.donut span {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 1.45rem;
  font-weight: 900;
}

.add-task {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.check-item {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.check-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.check-item.done label {
  color: var(--muted);
  text-decoration: line-through;
}

.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;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trip-mini {
    display: none;
  }

  .hero,
  .two-col,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .sidebar {
    gap: 16px;
  }

  .brand {
    grid-template-columns: 58px 1fr;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

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

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-panel,
  .hero-panel img {
    min-height: 300px;
  }

  .dashboard-band {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented,
  .segmented button {
    width: 100%;
  }

  .day-nav {
    max-width: 100%;
  }

  .segmented button {
    min-width: 84px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-kind {
    text-align: left;
  }

  .reservation,
  .place {
    grid-template-columns: 1fr auto;
  }

  .reservation .tag,
  .place .tag {
    grid-column: 1 / -1;
  }

  .reservation .button.mini {
    grid-column: 1 / 2;
  }

  .day-photos-head,
  .photo-upload {
    display: grid;
    grid-template-columns: 1fr;
  }

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

}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
  background: #edf6f4;
}

.auth-art {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.auth-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 50, 55, 0.78), rgba(18, 50, 55, 0.16));
}

.auth-copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 6vw, 78px);
  bottom: clamp(24px, 8vw, 88px);
  max-width: 720px;
  color: #fff;
}

.auth-copy span {
  font-weight: 900;
  text-transform: uppercase;
}

.auth-copy p {
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.auth-card {
  align-self: center;
  margin: 28px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: grid;
  place-items: center;
  margin-bottom: 36px;
}

.auth-logo img {
  width: min(360px, 88%);
  height: auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8f7;
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.auth-tabs button.active {
  background: var(--ink);
  color: #fff;
}

.auth-form,
.trip-editor,
.inline-add {
  display: grid;
  gap: 12px;
}

.auth-form label,
.trip-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--teal-dark);
}

.form-message.error {
  color: #a63d28;
}

.trip-editor-band {
  padding: 18px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.trip-editor {
  grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 1fr) 150px 150px auto;
  align-items: end;
}

.share-panel {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
}

.share-panel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.share-panel .form-actions,
.share-panel input[readonly] {
  grid-column: 1 / -1;
}

.share-options {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.share-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.share-options label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #33454a;
  font-weight: 800;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
}

.inline-add {
  grid-template-columns: 130px 130px 120px 1fr 1fr auto auto auto;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  max-width: 100%;
  overflow-x: auto;
}

.inline-check {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.note button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.notes-form {
  margin-top: 14px;
}

.video-dialog {
  width: min(920px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.video-dialog::backdrop {
  background: rgba(18, 33, 38, 0.55);
}

.video-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.video-dialog h2 {
  margin: 0;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #172126;
}

.video-stage img,
.video-dialog video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: #172126;
}

.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  display: grid;
  gap: 4px;
  color: #fff;
  background: linear-gradient(0deg, rgba(18, 33, 38, 0.82), rgba(18, 33, 38, 0));
}

.video-caption small {
  color: rgba(255, 255, 255, 0.78);
}

.file-field.compact {
  font-size: 0.9rem;
}

.suggestions-band {
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #f6faf9;
}

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

.suggestion-card {
  min-height: 132px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.suggestion-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.suggestion-card .button {
  width: fit-content;
}

.suggestion-card.complete {
  grid-column: 1 / -1;
  min-height: 90px;
}

@media (max-width: 980px) {
  .auth-screen,
  .trip-editor,
  .share-panel,
  .suggestion-list {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 380px;
  }
}

.public-body {
  background: #f7faf8;
}

.public-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.public-hero {
  padding: clamp(28px, 6vw, 64px) 0 30px;
  border-bottom: 1px solid var(--line);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 34px;
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 1.8rem;
}

.public-brand img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.print-header {
  display: none;
}

.print-header-inner {
  display: none;
}

.public-hero h1 {
  max-width: 920px;
  margin-bottom: 12px;
}

.public-hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.public-section {
  padding: 28px 0;
}

.public-days,
.public-list {
  display: grid;
  gap: 12px;
}

.public-photo-days {
  display: grid;
  gap: 16px;
}

.public-day,
.public-list-item {
  padding: 18px;
}

.public-photo-day {
  padding: 18px;
}

.public-day h3 {
  margin: 0 0 14px;
}

.public-photo-day h3 {
  margin: 0 0 14px;
}

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

.public-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #edf3f1;
}

.public-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.public-items {
  display: grid;
  gap: 10px;
}

.public-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.public-item.no-time {
  grid-template-columns: 1fr;
}

.public-item small,
.public-list-item small,
.muted {
  display: block;
  color: var(--muted);
}

.public-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 760px) {
  .public-grid,
  .public-item {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .inline-add {
    grid-template-columns: 1fr;
  }
}

@media print {
  .public-body {
    background: #fff;
  }

  .public-page {
    width: 100%;
    padding: 0;
    display: table;
  }

  .reservation-link {
    display: none;
  }

  .print-header {
    display: table-header-group;
  }

  .print-header-inner {
    height: 104px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .print-header-inner img {
    width: 182px;
    height: 84px;
    object-fit: contain;
  }

  .print-header-inner div {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .print-header-inner strong {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .print-header-inner span {
    color: var(--muted);
    font-size: 0.9rem;
  }

  .public-hero,
  .public-section {
    padding: 20px 0 14px;
  }

  .public-hero {
    padding-top: 58px;
  }

  .public-brand {
    margin-bottom: 24px;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    color: var(--coral);
    font-size: 2.8rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
  }

  .public-brand img {
    display: none;
  }

  .card {
    box-shadow: none;
    break-inside: avoid;
  }
}
