/* Diary, journeys, memories, gallery, wishes and atlas. */
.tiny-pig {
  width: 100px;
  margin: 0 auto 4px;
  transform: rotate(-5deg);
}
.demo-banner {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #806e70;
}
.demo-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--berry);
  border: 1px solid #dec5ca;
  border-radius: 4px;
  padding: 2px 7px;
  flex: none;
}
.demo-banner .text-btn {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
}
.postcard-caption {
  position: absolute;
  bottom: 11px;
  left: 18px;
  font-family: "Segoe Print","Bradley Hand",cursive;
  font-size: 16px;
  color: #715752;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 18px;
}
.section-title {
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -.6px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.section-head .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 7px 13px;
  white-space: nowrap;
}
.tab:hover {
  background: #f0e4df;
}
.tab.active {
  background: #fffaf7;
  border-color: var(--line);
  color: var(--berry);
}
.trip-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}
.trip-card {
  position: relative;
  background: var(--white);
  padding: 9px 9px 0;
  box-shadow: 0 3px 12px #4e373609;
  border: 1px solid #e9ded7;
  border-radius: 3px;
  min-width: 0;
}
.trip-card:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: 0 12px 25px #4e373612;
}
.trip-cover {
  width: 100%;
  height: 182px;
  object-fit: cover;
  filter: saturate(.78);
  border-radius: 1px;
}
.trip-open {
  padding: 0;
  width: 100%;
  text-align: left;
  display: block;
}
.trip-meta {
  padding: 16px 11px 17px;
}
.trip-meta h3 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -.5px;
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
.trip-place {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.trip-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid #eee4de;
  padding-top: 10px;
}
.trip-foot span:last-child {
  margin-left: auto;
}
.favorite-btn {
  position: absolute;
  right: 19px;
  top: 19px;
  width: 30px;
  height: 30px;
  background: #fffcf1ed;
  border: 1px solid #ffffff9c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #86656b;
  z-index: 3;
}
.favorite-btn.on {
  color: var(--berry);
}
.trip-label {
  position: absolute;
  top: 22px;
  left: 9px;
  background: #f3e0dd;
  padding: 3px 9px 3px 7px;
  color: var(--berry);
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  transform: rotate(-4deg);
  z-index: 2;
}
.home-bottom {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-top: 33px;
}
.note-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: repeating-linear-gradient(transparent,transparent 27px,#e5d9d54a 27px,#e5d9d54a 28px) #fcf8ef;
  padding: 23px 26px 25px;
  overflow: hidden;
}
.note-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 10px 0;
}
.note-card p {
  font-size: 12px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.85;
}
.little-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.dream-teaser {
  background: #eadecf52;
  border: 1px solid #e4d8ce;
  border-radius: 3px;
  padding: 22px 23px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  width: 100%;
}
.frog {
  width: 84px;
  flex: none;
}
.dream-teaser h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  margin: 9px 0;
}
.dream-teaser p {
  color: var(--muted);
  font-size: 11px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #a58b8f;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  margin-top: 42px;
}
.page-footer:before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}
.page-footer:after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 37px 0 29px;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: -1.3px;
  line-height: 1.12;
}
.page-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 480px;
}
.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e9e8df;
}
.map-canvas {
  height: 560px;
  width: 100%;
  z-index: 1;
  isolation: isolate;
}
.map-notice {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.7;
}
.map-fallback {
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px;
  background: repeating-linear-gradient(0deg,transparent,transparent 59px,#bec6bb44 60px),repeating-linear-gradient(90deg,transparent,transparent 59px,#bec6bb44 60px),#e9ece2;
}
.map-fallback p {
  max-width: 370px;
}
.map-marker {
  width: 34px;
  height: 34px;
  background: var(--berry);
  border: 3px solid #fff9f0;
  border-radius: 50% 50% 50% 7%;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px #4e373633;
  color: #fff;
  display: grid;
  place-items: center;
}
.map-marker.dream-pin {
  background: var(--green);
}
.leaflet-container {
  font-family: var(--sans);
  background: #e6e6dd;
}
.leaflet-tile-pane {
  filter: saturate(.35) sepia(.12);
}
.leaflet-popup-content-wrapper {
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.leaflet-popup-content {
  margin: 15px;
  font-size: 12px;
  line-height: 1.6;
}
.leaflet-popup-content strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}
.leaflet-popup-content button {
  color: var(--berry);
  padding: 5px 0;
  text-decoration: underline;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.map-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
  margin-top: 18px;
  scroll-snap-type: x proximity;
}
.place-card {
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-width: 0;
  scroll-snap-align: center;
}
.place-card>img {
  width: 53px;
  height: 53px;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
}
.place-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
}
.place-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.place-card.selected {
  border-color: #b97588;
  background: #f6e9e7;
}
.map-empty-notice {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  z-index: 400;
  background: #fffaf0ed;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  max-width: 370px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
  padding: 7px 0;
}
.trip-detail-hero {
  position: relative;
  height: 300px;
  margin: 15px 0 25px;
  border: 8px solid var(--white);
  outline: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.trip-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.77) saturate(.75);
}
.trip-detail-title {
  position: absolute;
  left: 30px;
  bottom: 23px;
  color: #fff8ed;
}
.trip-detail-title .little-label {
  color: #fff6e1d1;
}
.trip-detail-title h1 {
  font-family: var(--serif);
  font-size: 45px;
  letter-spacing: -1.1px;
  line-height: 1.1;
  margin: 10px 0;
}
.trip-detail-title p {
  font-size: 11px;
}
.detail-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.timeline {
  position: relative;
  max-width: 840px;
  margin: auto;
  padding-left: 30px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 25px;
  width: 1px;
  background: var(--line);
}
.entry-card {
  position: relative;
  margin-bottom: 28px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 3px;
}
.entry-card:before {
  content: "";
  position: absolute;
  left: -29px;
  top: 30px;
  width: 9px;
  height: 9px;
  background: #d7aab5;
  border: 3px solid var(--paper);
  outline: 1px solid #d7aab5;
  border-radius: 50%;
}
.entry-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.entry-top .entry-tools {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.entry-card h2 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.2;
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
}
.entry-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin: 12px 0 0;
}
.entry-photos {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 9px;
  margin-top: 20px;
}
.entry-photos.single {
  grid-template-columns: 1fr;
}
.entry-photos button {
  padding: 0;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #ecddd6;
}
.entry-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.entry-photos video {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  pointer-events: none;
}
.entry-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--berry);
  padding: 0;
  min-height: 44px;
  font-size: 12px;
  margin-top: 12px;
}
.moment-grid {
  columns: 3;
  column-gap: 18px;
}
.moment-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--white);
  padding: 7px;
  border: 1px solid var(--line);
  text-align: left;
  position: relative;
}
.moment-card:hover {
  transform: translateY(-3px);
}
.moment-card img {
  width: 100%;
  height: auto;
  min-height: 150px;
  max-height: 360px;
  object-fit: cover;
}
.moment-card video {
  width: 100%;
  height: auto;
  min-height: 150px;
  max-height: 360px;
  object-fit: cover;
}
.moment-card p {
  font-family: var(--serif);
  font-size: 17px;
  padding: 9px 6px 2px;
  overflow-wrap: anywhere;
}
.moment-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  padding: 0 6px 7px;
}
.moment-card .video-play {
  bottom: 60px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.filter-row select {
  max-width: 220px;
}
.dream-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 23px;
}
.dream-card {
  position: relative;
  min-height: 238px;
  padding: 25px;
  background: #f2e0df;
  border: 1px solid #e3caca;
  box-shadow: 0 3px 9px #4e373608;
  border-radius: 2px;
  transform: rotate(-1deg);
  display: flex;
  flex-direction: column;
}
.dream-card:nth-child(2n) {
  background: #e7e8dc;
  border-color: #d8d9ca;
  transform: rotate(1deg);
}
.dream-card:nth-child(3n) {
  background: #f3ead7;
  border-color: #e5d9be;
  transform: rotate(-.5deg);
}
.dream-card:before {
  content: "";
  position: absolute;
  left: calc(50% - 30px);
  top: -9px;
  width: 60px;
  height: 19px;
  background: #e8d5baa3;
  transform: rotate(-4deg);
  clip-path: polygon(1% 0,100% 3%,97% 35%,100% 61%,97% 100%,0 98%,3% 60%,0 33%);
}
.dream-card h2 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.2;
  margin: 15px 0 12px;
  overflow-wrap: anywhere;
}
.dream-card p {
  font-size: 12px;
  color: #7a6668;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dream-card .dream-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
}
.dream-card.visited {
  opacity: .65;
}
.dream-card.visited h2 {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.dream-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--berry);
}
.empty {
  border: 1px dashed #d7c6c2;
  background: #fffbf54d;
  text-align: center;
  border-radius: 7px;
  padding: 52px 25px;
  grid-column: 1/-1;
}
.empty .pig {
  width: 102px;
  margin: 0 auto 14px;
}
.empty h2 {
  font-family: var(--serif);
  font-size: 29px;
  margin-bottom: 9px;
}
.empty p {
  color: var(--muted);
  font-size: 12px;
  max-width: 380px;
  margin: 0 auto 21px;
}
.mini-map {
  height: 270px;
  border-radius: 5px;
  margin: 12px 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.picker-info {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
  background: var(--white);
}
.geocode-result {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 11px;
  text-align: left;
}
.geocode-result:hover {
  background: var(--pink);
}
.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
  padding: 5px 9px;
  border: 1px solid #d5d7c8;
  border-radius: 5px;
  margin-bottom: 10px;
  background: #eceddf;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}
.search-result h3 {
  font-family: var(--serif);
  font-size: 21px;
  overflow-wrap: anywhere;
}
.search-result p {
  font-size: 10px;
  color: var(--muted);
}
.search-result div {
  min-width: 0;
}
.offline-bar {
  font-size: 11px;
  padding: 8px 12px;
  background: #eee2c8;
  border-radius: 5px;
  margin-top: 13px;
  color: #6b5e38;
}
.checkbox {
  accent-color: var(--berry);
}
.install-hint {
  border: 1px solid var(--line);
  background: #fff9f1;
  padding: 12px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.trip-detail-hero>div:first-child:not(.trip-detail-title) {
  width: 100%;
  height: 100%;
}
.trip-detail-hero .trip-detail-title {
  height: auto;
}
.favorite-btn.heart-pop::after {
  content: '';
  position: absolute;
  inset: 1px;
  border: 2px solid #c991a4;
  border-radius: 50%;
  pointer-events: none;
}
.draft-resume {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px 18px;
  margin-top: 18px;
  border: 1px dashed #be8492;
  background: #f2e4e3;
  border-radius: 8px;
  width: 100%;
  margin: 8px 0 20px;
  text-align: left;
  min-height: 64px;
}
.draft-resume>span {
  flex: 1;
}
.draft-resume b {
  font-weight: 500;
  display: block;
  color: #7c374c;
  font-size: 14px;
}
.draft-resume small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: #756468;
}
.diary-atlas {
  position: relative;
  overflow: hidden;
  background: #e7e7db;
}
.atlas-svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.atlas-svg:active {
  cursor: grabbing;
}
.atlas-grid path {
  stroke: #c4c8b8;
  stroke-width: .5;
  fill: none;
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
}
.atlas-land {
  fill: #f7f1e5;
  stroke: #b9bdab;
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
  fill-rule: evenodd;
}
.atlas-label {
  position: absolute;
  top: 19px;
  left: 18px;
  font-size: 9px;
  letter-spacing: 1.8px;
  background: #fffaf1e6;
  color: #6e755b;
  padding: 10px 12px;
  border: 1px solid #d8d8c6;
  pointer-events: none;
}
.atlas-credit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 8px;
  color: #747967;
  background: #f7f3e8d9;
  padding: 3px;
  pointer-events: none;
}
.atlas-controls {
  position: absolute;
  top: 16px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: 0 2px 8px #33452512;
}
.atlas-controls button {
  width: 44px;
  height: 44px;
  background: #fffaf1;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #6f755f;
  line-height: 1;
}
.atlas-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.atlas-pin {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%,-90%);
  min-width: 46px;
  min-height: 48px;
  pointer-events: auto;
  z-index: 1;
  background: transparent;
}
.atlas-pin>span {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  border-radius: 19px 19px 19px 2px;
  transform: rotate(-45deg);
  color: transparent;
  background: #b66e84;
  border: 2px solid #fff6ed;
  box-shadow: 0 3px 5px #563e4933;
}
.atlas-pin>span::after {
  content: '♡';
  position: absolute;
  font-size: 19px;
  color: #fff6ef;
  transform: rotate(45deg);
  line-height: 1;
}
.atlas-pin.is-dream>span {
  background: #919c78;
}
.atlas-pin.is-dream>span::after {
  content: '✧';
}
.atlas-pin b {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px Georgia,serif;
  font-weight: 400;
  padding: 2px 5px;
  border-radius: 3px;
  background: #fcf7edd9;
  color: #514d40;
  max-width: 150px;
  white-space: nowrap;
  pointer-events: none;
}
.atlas-pin.is-selected {
  z-index: 4;
}
.atlas-pin.is-selected>span {
  transform: rotate(-45deg) scale(1.15);
}
.atlas-pin.is-selected>span::before {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid #ab77844d;
  border-radius: 50%;
}
.atlas-story {
  position: absolute;
  bottom: 24px;
  left: 18px;
  right: 18px;
  background: #fffbf5;
  border: 1px solid #dfcec5;
  padding: 19px 19px 13px;
  z-index: 6;
  box-shadow: 0 7px 28px #50463320;
  border-radius: 9px;
}
.atlas-story[hidden] {
  display: none;
}
.atlas-story h3 {
  font: 25px Georgia,serif;
  margin: 9px 0 6px;
  font-weight: 400;
  color: #65424b;
  padding-right: 20px;
  overflow-wrap: anywhere;
}
.atlas-story p {
  font-size: 12px;
  margin-bottom: 12px;
}
.atlas-story>div {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}
.atlas-story .primary-btn {
  min-height: 44px;
  font-size: 12px;
}
.atlas-story a {
  font-size: 11px;
  white-space: nowrap;
}
.atlas-peek-close {
  position: absolute;
  right: 8px;
  top: 7px;
  font-size: 24px;
}
.diary-intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 24px;
}
.diary-intro h1 {
  font: 400 clamp(30px,3vw,40px)/1.16 var(--serif);
  max-width: 24ch;
  margin: 0;
  letter-spacing: -.025em;
}
.diary-intro .intro-pig {
  width: 72px;
  flex-shrink: 0;
  transform: rotate(4deg);
}
.intro-pig svg {
  width: 100%;
}
.diary-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.diary-actions .primary-btn {
  min-height: 48px;
}
.diary-switcher {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 22px;
  gap: 24px;
}
.diary-switcher button {
  padding: 14px 0;
  min-height: 48px;
  position: relative;
  font-size: 15px;
  color: var(--muted);
}
.diary-switcher button.active {
  color: var(--berry);
  font-weight: 600;
}
.diary-switcher button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--berry);
}
.diary-switcher .count {
  font-size: 11px;
  padding-left: 6px;
  opacity: 1;
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
}
.library-heading .text-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.library-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.memories-list {
  display: grid;
  gap: 16px;
}
.memory-summary {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 9px;
  box-shadow: none;
}
.memory-summary .memory-thumb {
  width: 88px;
  height: 98px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 5px;
}
.memory-summary .memory-words {
  min-width: 0;
  flex: 1;
}
.memory-summary h3 {
  font: 400 24px/1.2 var(--serif);
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.memory-summary .meta {
  color: var(--muted);
  font-size: 11px;
}
.memory-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.memory-context {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--berry);
}
.timeline-day {
  position: relative;
}
.timeline-day-title {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 400 25px/1.2 var(--serif);
  margin: 32px 0 18px;
}
.timeline-day-title::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.timeline-day .entry-card {
  margin-bottom: 20px;
}
.trip-detail-hero .trip-detail-title h1 {
  overflow-wrap: anywhere;
}
.trip-stats {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}
.date-warning {
  color: var(--berry);
  background: #f3e6db;
  padding: 9px 12px;
  border-radius: 6px;
}
.entry-card .entry-text:empty {
  display: none;
}
.entry-reader .entry-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.entry-reader .entry-card::before {
  display: none;
}
@media (hover:hover) and (pointer:fine) {
  .trip-card:hover {
    transform: translateY(-5px) rotate(-.35deg);
    box-shadow: 0 10px 28px #72495714;
  }
  .trip-card:hover .trip-cover {
    transform: scale(1.025);
  }
  .trip-open {
    overflow: hidden;
  }
  .moment-card:hover {
    transform: translateY(-3px) rotate(.4deg);
  }
}
@media (min-width:1600px) {
  .trip-cover {
    height: 235px;
  }
  .trip-grid {
    gap: 29px;
  }
}
@media (min-width:721px) {
  .trip-grid {
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  }
  .trip-card {
    max-width: 560px;
  }
  .trip-cover {
    height: 260px;
  }
  .memories-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:1190px) {
  .trip-grid {
    gap: 16px;
  }
  .trip-cover {
    height: 158px;
  }
  .trip-meta {
    padding: 14px 7px;
  }
  .trip-meta h3 {
    font-size: 22px;
  }
  .home-bottom {
    gap: 17px;
  }
}
@media (max-width:980px) {
  .postcard-caption {
    font-size: 13px;
  }
  .trip-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .trip-grid .trip-card:last-child:nth-child(odd) {
    display: block;
  }
  .trip-cover {
    height: 190px;
  }
  .home-bottom {
    grid-template-columns: 1fr;
  }
  .dream-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .moment-grid {
    columns: 2;
  }
  .map-strip {
    grid-template-columns: 1fr 1fr;
  }
  .map-strip .place-card:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-head .right {
    margin-left: 0;
  }
  .section-head>div:first-child {
    margin-right: auto;
  }
  .map-canvas {
    height: 500px;
  }
}
@media (max-width:720px) {
  .demo-banner {
    font-size: 10px;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin-top: 14px;
    line-height: 1.5;
  }
  .demo-banner .text-btn {
    font-size: 10px;
  }
  .demo-banner .desktop-only {
    display: none;
  }
  .demo-tag {
    font-size: 8px;
    padding: 1px 5px;
    letter-spacing: .6px;
  }
  .postcard-caption {
    bottom: 7px;
    left: 14px;
    font-size: 13px;
  }
  .section-head {
    margin-bottom: 17px;
    gap: 11px;
    margin-top: 28px;
  }
  .section-title {
    font-size: 31px;
  }
  .section-subtitle {
    font-size: 12px;
  }
  .section-head .right {
    margin-left: auto;
  }
  .section-head .right .small-btn {
    font-size: 10px;
    padding: 8px 9px;
  }
  .section-head .tabs {
    margin-top: 10px;
    display: flex;
    width: 100%;
    gap: 6px;
  }
  .tab {
    min-height: 42px;
    font-size: 11px;
    padding: 9px 13px;
    white-space: nowrap;
  }
  .trip-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .trip-cover {
    height: 221px;
  }
  .trip-card {
    padding: 8px 8px 0;
  }
  .trip-meta {
    padding: 16px 13px 17px;
  }
  .trip-meta h3 {
    line-height: 1.1;
    margin: 7px 0 13px;
    font-size: 29px;
    overflow-wrap: anywhere;
  }
  .trip-place {
    font-size: 10px;
  }
  .trip-foot {
    font-size: 11px;
    line-height: 1.6;
  }
  .trip-label {
    font-size: 11px;
  }
  .home-bottom {
    margin-top: 28px;
    gap: 17px;
  }
  .note-card {
    padding: 22px;
  }
  .dream-teaser {
    padding: 22px;
    gap: 22px;
  }
  .frog {
    width: 72px;
  }
  .page-footer {
    margin-top: 32px;
    font-size: 12px;
    padding-bottom: 10px;
  }
  .page-header {
    padding: 29px 0 23px;
    align-items: flex-start;
    gap: 10px;
  }
  .page-header h1 {
    letter-spacing: -1px;
    font-size: 36px;
    overflow-wrap: anywhere;
  }
  .page-header p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
  }
  .page-header>.primary-btn {
    font-size: 11px;
    padding: 10px 12px;
    margin-top: 3px;
    min-width: 46px;
    min-height: 46px;
    flex-shrink: 0;
  }
  .page-header>.primary-btn .hide-mobile {
    display: none;
  }
  .map-canvas {
    max-height: 600px;
    height: clamp(360px,calc(100dvh - 330px),580px);
    min-height: 360px;
  }
  .map-wrap {
    border-radius: 5px;
  }
  .map-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -20px;
    margin-right: -20px;
    padding: 5px 20px 15px;
    gap: 11px;
  }
  .place-card {
    scroll-snap-align: center;
    min-width: 250px;
    min-height: 86px;
  }
  .map-notice {
    font-size: 11px;
    line-height: 1.6;
  }
  .map-empty-notice {
    font-size: 11px;
    padding: 10px;
  }
  .trip-detail-hero {
    height: 270px;
    margin-top: 12px;
    border-width: 6px;
  }
  .trip-detail-title {
    left: 16px;
    bottom: 18px;
    right: 14px;
  }
  .trip-detail-title h1 {
    font-size: 37px;
    line-height: 1.08;
  }
  .trip-detail-title p {
    font-size: 10px;
  }
  .trip-detail-title .little-label {
    font-size: 9px;
  }
  .detail-toolbar {
    margin-bottom: 25px;
    gap: 8px;
  }
  .detail-toolbar .primary-btn {
    padding: 9px 11px;
    min-height: 44px;
    font-size: 11px;
    flex: 1;
  }
  .detail-toolbar .secondary-btn {
    padding: 9px 11px;
    min-height: 44px;
    font-size: 11px;
  }
  .timeline {
    padding-left: 19px;
  }
  .timeline:before {
    left: 2px;
  }
  .entry-card {
    padding: 17px 16px;
    margin-bottom: 22px;
  }
  .entry-card:before {
    left: -23px;
    width: 7px;
    height: 7px;
  }
  .entry-top {
    gap: 6px;
    font-size: 11px;
  }
  .entry-card h2 {
    margin-top: 8px;
    font-size: 28px;
  }
  .entry-text {
    font-size: 15px;
    line-height: 1.85;
  }
  .entry-photos {
    gap: 6px;
    margin-top: 17px;
  }
  .entry-photos img {
    height: 151px;
  }
  .entry-photos video {
    height: 151px;
  }
  .entry-photos.single img {
    height: 245px;
  }
  .entry-photos.single video {
    height: 245px;
  }
  .entry-location {
    font-size: 12px;
    min-height: 44px;
  }
  .moment-grid {
    column-gap: 12px;
  }
  .moment-card {
    padding: 5px;
    margin-bottom: 12px;
  }
  .moment-card img {
    min-height: 100px;
    max-height: 250px;
  }
  .moment-card video {
    min-height: 100px;
    max-height: 250px;
  }
  .moment-card p {
    padding: 7px 3px 2px;
    line-height: 1.2;
    font-size: 20px;
  }
  .moment-card small {
    padding: 3px;
    font-size: 10px;
  }
  .filter-row {
    gap: 7px;
    flex-wrap: wrap;
  }
  .filter-row select {
    max-width: none;
    flex: 1;
    min-width: 120px;
    font-size: 16px;
    min-height: 44px;
  }
  .dream-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 4px 3px;
  }
  .dream-card {
    min-height: 210px;
    padding: 24px;
  }
  .dream-card h2 {
    font-size: 31px;
  }
  .dream-card p {
    font-size: 14px;
    line-height: 1.8;
  }
  .empty {
    padding: 40px 22px;
  }
  .empty h2 {
    font-size: 28px;
  }
  .empty p {
    font-size: 11px;
  }
  .mini-map {
    height: 240px;
  }
  .search-result h3 {
    font-size: 22px;
  }
  .search-result p {
    font-size: 12px;
  }
  .desktop-only {
    display: none !important;
  }
  .offline-bar {
    font-size: 10px;
  }
  .returning-hero {
    padding-bottom: 8px;
  }
  .demo-banner>.text-btn {
    min-height: 32px;
    white-space: nowrap;
  }
  .demo-banner .demo-tag {
    display: none;
  }
  .demo-banner>span {
    flex: 1;
    min-width: 150px;
  }
  .favorite-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
  .note-card p {
    font-size: 13px;
    line-height: 1.7;
  }
  .dream-teaser p {
    font-size: 13px;
    line-height: 1.7;
  }
  .note-card .text-btn {
    min-height: 44px;
  }
  .back-btn {
    min-height: 46px;
    font-size: 12px;
  }
  .dream-check {
    min-height: 44px;
  }
  .place-card h3 {
    font-size: 22px;
  }
  .place-card p {
    font-size: 11px;
  }
  .atlas-story h3 {
    font-size: 26px;
  }
  .diary-intro {
    padding: 20px 0;
    gap: 12px;
  }
  .diary-intro h1 {
    font-size: 33px;
    line-height: 1.12;
  }
  .diary-intro .intro-pig {
    width: 64px;
  }
  .diary-actions {
    margin-bottom: 12px;
    gap: 8px;
  }
  .diary-actions .primary-btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 13px;
  }
  .diary-actions .secondary-btn {
    padding: 12px;
    font-size: 12px;
    min-height: 48px;
  }
  .diary-switcher {
    margin-top: 10px;
    gap: 22px;
  }
  .diary-switcher button {
    font-size: 14px;
  }
  .library-heading {
    margin: 12px 0 16px;
  }
  .memory-summary {
    padding: 12px;
    gap: 12px;
  }
  .memory-summary .memory-thumb {
    width: 72px;
    height: 86px;
  }
  .memory-summary h3 {
    font-size: 22px;
  }
  .draft-resume {
    padding: 12px;
  }
  .draft-resume small {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  [data-page="map"] .page-header {
    padding: 22px 0 14px;
    align-items: flex-start;
  }
  [data-page="map"] .page-header h1 {
    font-size: 29px;
    line-height: 1.12;
    letter-spacing: -.7px;
  }
  [data-page="map"] .page-header p {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 9px;
  }
  [data-page="map"] .demo-banner {
    margin-top: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 10px;
  }
  [data-page="map"] .filter-row {
    margin-top: 8px !important;
    margin-bottom: 15px;
  }
  [data-page="map"] .map-canvas {
    height: clamp(340px, calc(100dvh - 430px), 520px);
    min-height: 340px;
  }
  [data-page="map"] .atlas-story {
    bottom: 21px;
    padding: 14px 15px 12px;
  }
  [data-page="map"] .atlas-story h3 {
    font-size: 24px;
  }
}
@media (max-width:370px) {
  .trip-cover {
    height: 193px;
  }
  .section-title {
    font-size: 26px;
  }
  .section-head .right .small-btn {
    padding: 7px;
    font-size: 9px;
  }
  .entry-top {
    flex-wrap: wrap;
  }
  .map-strip {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .atlas-story {
    left: 12px;
    right: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .atlas-story a {
    font-size: 10px;
  }
}
@media (max-width:350px) {
  .diary-intro .intro-pig {
    width: 48px;
  }
  .diary-intro h1 {
    font-size: 30px;
  }
  .diary-actions .secondary-btn {
    font-size: 11px;
    padding: 10px;
  }
  .diary-switcher {
    gap: 16px;
  }
}
