/* Okinawa, Us — CR-00. One shared, mobile-first visual system. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #707078;
  --accent: #007aff;
  --sea: #eaf4fa;
  --line: #e7e8ed;
  --success: #18856f;
  --sand: #fff5e5;
  --coral: #d47562;
  --radius: 22px;
  --app-height: 100dvh;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: #e9ebef;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Thonburi", system-ui,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
  background: transparent;
  padding: 0;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #007aff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
button,
a,
span,
strong,
small {
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 650;
}
h1 {
  font-size: 1.875rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.0625rem;
}
p {
  margin: 0.75rem 0;
}
small {
  font-size: 0.8125rem;
}
strong,
b {
  font-weight: 600;
}
svg {
  display: block;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.muted,
.caption {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}
.caption {
  text-align: center;
  margin: 1.25rem 0;
}
.eyebrow,
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.075em;
  font-weight: 600;
}
.eyebrow {
  color: #81818a;
}
.spaced {
  margin-top: 12px;
}
.shell {
  width: 100%;
  max-width: 1000px;
  height: var(--app-height, 100dvh);
  min-height: 0;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  background: var(--bg);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  background: #f5f5f7ee;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.brand-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6faac7;
}
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  max-width: 44%;
  padding: 8px 10px;
  border-radius: 16px;
  background: #eaf2fb;
  color: #41749c;
  font-size: 0.6875rem;
  text-align: center;
  line-height: 1.5;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
main {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 20px 32px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 20px 0 30px;
}
main:focus {
  outline: none;
}
nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  background: #ffffffed;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid #e0e3e9;
  min-width: 0;
}
nav button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px;
  border-radius: 16px;
  color: #7c8591;
  font-size: 0.6875rem;
  line-height: 1.4;
  text-align: center;
}
nav button.active {
  background: #eaf2ff;
  color: #007aff;
}
nav .icon {
  width: 23px;
  height: 23px;
}
#toast {
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 6px 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #29313b;
  color: white;
  font-size: 0.8125rem;
  min-width: 0;
}
#toast.visible {
  display: flex;
  animation: appear 0.18s ease-out;
}
#toast-text {
  min-width: 0;
}
#undo {
  min-height: 44px;
  min-width: 64px;
  padding: 4px 8px;
  color: #a8d5ff;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  min-width: 0;
}
.page-title > div {
  min-width: 0;
}
.page-title h1 {
  margin-bottom: 5px;
}
.page-title p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}
.info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.75rem;
  max-width: 120px;
  text-align: center;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 2px;
  color: #0071e3;
  font-size: 0.875rem;
  line-height: 1.5;
}
.icon-action {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e7f0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 17px;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #006ce2;
}
.secondary {
  background: #eef2f7;
  color: #4c6a8b;
}
.danger {
  background: #fff0ed;
  color: #ae4c43;
}
.wide {
  width: 100%;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.actions > * {
  flex: 1 1 120px;
  min-width: 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 16px;
  min-width: 0;
}
.section-head > div {
  min-width: 0;
}
.section-head h2 {
  font-size: 1.25rem;
}
.section-head .muted {
  margin: 4px 0 0;
}
.section-head > .text-btn {
  flex-shrink: 0;
}
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  min-width: 0;
}
.surface > .section-head {
  margin: 0 0 6px;
}
.notice {
  padding: 16px;
  border-radius: 16px;
  margin: 16px 0;
  background: var(--sand);
  color: #86612b;
  font-size: 0.875rem;
  line-height: 1.8;
}
.notice strong {
  display: block;
}
.empty,
.album-empty {
  padding: 32px 20px;
  border-radius: 20px;
  background: #eceff4;
  color: #727f90;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 8px;
}
.credits-link {
  display: block;
  margin: 24px auto 0;
  padding: 10px;
  min-height: 44px;
  color: #7f8893;
  font-size: 0.75rem;
  text-align: center;
}
.day-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 20px;
  min-width: 0;
}
.day {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-height: 92px;
  padding: 10px 4px;
  border: 1px solid #e2e5eb;
  background: #fff;
  border-radius: 18px;
  color: #797d87;
}
.day small {
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.day strong {
  font-size: 1.625rem;
  font-weight: 650;
  line-height: 1.1;
}
.day span {
  font-size: 0.75rem;
  line-height: 1.4;
}
.day.active {
  color: white;
  background: #007aff;
  border-color: #007aff;
}
.next-stop {
  position: relative;
  padding: 23px;
  border-radius: 24px;
  background: linear-gradient(120deg, #e1effa, #edf4fa);
  border: 1px solid #dce9f4;
  margin-bottom: 16px;
}
.next-stop .kicker {
  color: #5982a1;
}
.next-stop h2 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  margin: 12px 0 7px;
}
.next-stop p {
  font-size: 0.8125rem;
  color: #6e8499;
  margin: 0;
}
.next-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.next-actions > .primary {
  flex: 1;
}
.next-actions > .icon-action {
  background: #ffffffa0;
}
.day-complete {
  padding: 26px 20px;
  text-align: center;
  background: #edf5f0;
  border-radius: 24px;
  margin-bottom: 16px;
}
.day-complete > .icon {
  width: 32px;
  height: 32px;
  color: var(--success);
  margin-bottom: 12px;
}
.day-complete h2 {
  font-size: 1.375rem;
}
.day-complete p {
  color: #6a8173;
  font-size: 0.875rem;
}
.plan-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}
.shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 11px 8px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #577088;
  font-size: 0.875rem;
}
.shortcut .icon {
  width: 19px;
  height: 19px;
}
.daily-plan > .section-head {
  margin-top: 0;
}
.schedule-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 0 20px;
  color: #5b7b92;
  text-align: left;
}
.schedule-summary > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.schedule-summary strong,
.schedule-summary small {
  display: block;
}
.schedule-summary strong {
  font-size: 0.8125rem;
  font-weight: 500;
}
.schedule-summary small {
  font-size: 0.75rem;
  color: #858d98;
  margin-top: 2px;
}
.schedule-summary.attention {
  color: #aa722c;
}
.timeline {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.stop {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 17px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: background 0.18s ease;
}
.stop.done {
  background: #f0f6f2;
}
.stop.parked {
  background: #eef0f4;
  color: #7a818c;
}
.stop-art {
  width: 64px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #edf3f8;
  color: #7195b2;
}
.stop-art .icon {
  width: 27px;
  height: 27px;
}
.stop-art.has-photo {
  padding: 0;
}
.place-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stop-main {
  min-width: 0;
}
.time {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #65829a;
  display: block;
}
.stop h3 {
  font-size: 0.9375rem;
  margin: 4px 0 7px;
  line-height: 1.55;
  letter-spacing: -0.025em;
}
.inline-button {
  min-height: 44px;
  color: inherit;
  text-align: left;
  max-width: 100%;
  font-weight: 600;
  line-height: inherit;
}
.stop-description {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #737a84;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 4px;
}
.stop-actions > span {
  font-size: 0.75rem;
  color: #84909e;
}
.stop-actions .text-btn {
  width: 44px;
  min-width: 44px;
  color: #8a9cb2;
}
.stop-actions .icon {
  width: 18px;
  height: 18px;
}
.tick {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1.5px solid #d3dce7;
  border-radius: 50%;
  color: #afbdcc;
  transition:
    background 0.2s,
    transform 0.2s;
}
.tick .icon {
  width: 18px;
  height: 18px;
}
.tick.selected {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  animation: tick 0.22s ease;
}
.disclosure {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  color: #7e8793;
  font-size: 0.875rem;
  text-align: left;
}
.disclosure span:last-child {
  margin-left: auto;
  color: #0071e3;
}
.disclosure .icon {
  width: 18px;
  height: 18px;
  color: var(--success);
}
.add-row {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px;
  margin: 16px 0 0;
  border: 1px dashed #cdd9e7;
  border-radius: 16px;
  color: #0071e3;
  font-size: 0.9375rem;
}
.arrange-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 8px;
  transition:
    transform 0.2s,
    border 0.2s;
}
.arrange-card strong {
  font-size: 0.9375rem;
  line-height: 1.6;
}
.arrange-card small {
  display: block;
  font-size: 0.75rem;
  color: #7e8b9a;
}
.drag-handle {
  touch-action: none;
  width: 44px;
  min-height: 64px;
  display: grid;
  place-items: center;
  color: #9aaac0;
  cursor: grab;
}
.arrange-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.arrange-actions button {
  min-height: 44px;
  color: #0071e3;
  font-size: 0.8125rem;
}
.arrange-arrows {
  display: grid;
  align-content: start;
  gap: 4px;
}
.arrange-arrows button {
  width: 44px;
  min-height: 44px;
  background: #f0f4fa;
  border-radius: 12px;
  color: #6083a5;
  font-size: 1rem;
}
.arrange-card.dragging {
  opacity: 0.55;
}
.arrange-card.drop-target {
  border: 2px solid #007aff;
  background: #eff5ff;
}
.move-days {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.trip-inspiration {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 4px;
}
.trip-inspiration > summary,
.manage-place > summary {
  min-height: 52px;
  padding: 14px 2px;
  font-size: 0.875rem;
  color: #66809a;
  cursor: pointer;
}
.carousel-wrap {
  margin: 10px 0 4px;
  min-width: 0;
}
.trip-carousel {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 155px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
  overscroll-behavior-x: contain;
}
.trip-carousel::-webkit-scrollbar {
  display: none;
}
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  text-align: left;
  background: #e7eff5;
  border-radius: 0;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #14374a88);
}
.carousel-slide > span {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 1;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
}
.carousel-dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.carousel-dots button:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 8px;
  background: #c4cad3;
}
.carousel-dots button.active:after {
  width: 15px;
  background: #007aff;
}
.map-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  margin: 0 0 20px;
  background: #e8e9ef;
  border-radius: 13px;
}
.map-tabs button {
  min-height: 44px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 10px;
  color: #777e88;
  font-size: 0.875rem;
  line-height: 1.4;
}
.map-tabs button.active {
  background: #fff;
  color: #252c35;
  box-shadow: 0 1px 5px #1420360d;
}
.map-frame {
  position: relative;
  min-width: 0;
  height: clamp(250px, calc(var(--app-height, 100dvh) - 320px), 470px);
  overflow: hidden;
  border: 1px solid #dbe5ed;
  border-radius: 22px;
  background: #dfeff6;
}
#trip-map {
  width: 100%;
  height: 100%;
  background: #dfeff6;
  font-family: inherit;
  z-index: 1;
}
.map-mode {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 400;
  max-width: calc(100% - 90px);
  font-size: 0.6875rem;
  padding: 7px 10px;
  border-radius: 20px;
  background: #fffffff0;
  color: #5d7d93;
  pointer-events: none;
}
.map-loading {
  padding: 80px 20px;
  text-align: center;
  font-size: 0.875rem;
  color: #7894aa;
}
.map-marker {
  background: transparent;
}
.map-marker > span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  min-height: 44px;
  padding: 5px;
  border: 3px solid white;
  border-radius: 50%;
  background: #007aff;
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  box-shadow: 0 2px 8px #274d7555;
}
.map-key {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0;
}
.map-key button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
}
.map-key button > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eaf2ff;
  color: #007aff;
  font-size: 0.75rem;
}
.map-name {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
}
.map-key .icon {
  width: 17px;
  height: 17px;
  color: #8ca3b8;
}
.map-key button[aria-pressed="true"] {
  background: #eaf2ff;
  border-color: #a9cef9;
}
.selected-place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #eaf2ff;
  border-radius: 16px;
  margin: 14px 0;
}
.selected-place > span {
  min-width: 0;
}
.selected-place strong {
  font-size: 0.875rem;
}
.selected-place small {
  display: block;
  color: #75899d;
  font-size: 0.75rem;
}
.selected-place .secondary {
  font-size: 0.75rem;
  padding: 10px;
  flex-shrink: 0;
}
.leaflet-container,
.leaflet-tooltip {
  font-family: inherit !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  max-width: 100%;
  line-height: 1.5 !important;
}
.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  color: #46718f !important;
}
.leaflet-tooltip {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 20px #142c4422;
  font-size: 13px;
  max-width: 240px;
  white-space: normal;
}
.route-infographic {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #eaf6fa;
  border: 1px solid #dce9ee;
}
.route-map-title {
  position: absolute;
  left: 24px;
  top: 23px;
  z-index: 1;
  display: grid;
  gap: 5px;
  color: #4f8198;
  pointer-events: none;
}
.route-map-title > span {
  font-size: 1.125rem;
  letter-spacing: 0.17em;
  font-weight: 650;
}
.route-map-title small {
  font-size: 0.6875rem;
  color: #6c98aa;
}
.whole-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
}
.whole-map a {
  cursor: pointer;
}
.route-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 8px 16px 20px;
  font-size: 0.75rem;
  color: #6c8694;
}
.route-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.route-legend i {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
}
.journey-bookends {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}
.journey-bookends > span {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.journey-bookends small {
  display: block;
  color: #8b96a2;
  font-size: 0.6875rem;
}
.journey-bookends > .icon {
  color: #a3b2c1;
}
.route-days {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.route-day {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 0;
}
.route-day-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.route-day-heading > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--day-color);
  color: #fff;
  border-radius: 15px;
  font-size: 1.375rem;
  font-weight: 600;
}
.route-day-heading h2 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.route-day-heading p {
  font-size: 0.75rem;
  color: #83909d;
  margin: 4px 0 0;
}
.route-day ol {
  list-style: none;
  padding: 0 0 0 14px;
  margin: 24px 0 0;
}
.route-day li {
  position: relative;
  border-left: 1px solid #e4e8ed;
  padding: 0 0 20px 26px;
}
.route-day li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.route-day li:before {
  content: attr(data-number);
  position: absolute;
  left: -12px;
  top: 2px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: white;
  border: 1px solid var(--day-color);
  border-radius: 50%;
  font-size: 0.625rem;
  color: var(--day-color);
}
.route-day li.done:before {
  background: var(--day-color);
  color: white;
}
.route-day li.parked {
  opacity: 0.55;
}
.route-day li button {
  display: grid;
  gap: 3px;
  min-height: 48px;
  width: 100%;
  text-align: left;
}
.route-time {
  color: var(--day-color);
  font-size: 0.6875rem;
}
.route-day li strong {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}
.route-day li small {
  font-size: 0.75rem;
  color: #8a95a3;
}
.balance {
  padding: 27px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
}
.balance .kicker {
  color: #6a7e95;
  font-size: 0.875rem;
  letter-spacing: 0;
}
.balance h2 {
  font-size: 2.5rem;
  font-weight: 650;
  letter-spacing: -0.055em;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.balance p {
  font-size: 0.8125rem;
  color: #85919f;
  margin: 0 0 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 20px 0;
}
.stat {
  padding: 16px 6px;
  border-radius: 15px;
  background: #edf0f5;
  text-align: center;
  min-width: 0;
}
.stat small {
  display: block;
  color: #87919f;
  font-size: 0.6875rem;
}
.stat strong {
  display: block;
  font-size: 1rem;
  margin-top: 5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.expense-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.expense {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(55px, auto);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 17px 14px;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  min-width: 0;
}
.expense:last-child {
  border-bottom: 0;
}
.person {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5eefb;
  color: #6283ad;
  font-size: 0.8125rem;
  font-weight: 600;
}
.person.mild {
  background: #f4e9d9;
  color: #af8f67;
}
.expense strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}
.expense small {
  display: block;
  font-size: 0.75rem;
  color: #8c96a4;
  margin-top: 4px;
}
.expense .sum {
  font-size: 0.875rem;
  text-align: right;
  max-width: 110px;
  font-variant-numeric: tabular-nums;
}
.money-tabs {
  margin-bottom: 20px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  width: 100%;
  padding: 16px 0;
  text-align: left;
  border-bottom: 1px solid #edf0f3;
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-row > span {
  min-width: 0;
  flex: 1;
}
.settings-row strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
}
.settings-row small {
  display: block;
  font-size: 0.8125rem;
  color: #8a94a2;
  margin-top: 4px;
  white-space: pre-line;
}
.settings-row > .icon {
  width: 19px;
  height: 19px;
  color: #9daec1;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 56px;
  padding: 10px 0;
  text-align: left;
  font-size: 0.9375rem;
}
.check-indicator {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1.5px solid #d1dbe6;
  border-radius: 50%;
}
.check-indicator.selected {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.check-indicator .icon {
  width: 17px;
  height: 17px;
}
.storage-summary {
  padding: 20px;
  background: #edf4fb;
  border-radius: 18px;
}
.storage-summary p,
.offline-list p {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #687d93;
}
.schedule-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.schedule-list button {
  display: grid;
  gap: 8px;
  min-width: 0;
  background: #f4f6fa;
  border-radius: 15px;
  padding: 16px;
  text-align: left;
}
.schedule-list strong {
  font-size: 0.9375rem;
}
.schedule-list small {
  display: block;
  font-size: 0.75rem;
  color: #7c8d9f;
  line-height: 1.8;
  margin-top: 5px;
}
.schedule-list button > span:last-of-type {
  font-size: 0.875rem;
  color: #5481a6;
}
.schedule-list em {
  font-size: 0.8125rem;
  color: #b17830;
  font-style: normal;
}
.offline-list {
  padding: 4px 0 16px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 8px 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.check-option input {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  accent-color: #007aff;
}
.check-option span {
  min-width: 0;
}
.recap-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.food-filters {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 0 10px;
  scrollbar-width: none;
}
.food-filters::-webkit-scrollbar {
  display: none;
}
.pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 24px;
  background: #edf1f6;
  color: #688098;
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
}
.pill.active {
  background: #007aff;
  color: #fff;
}
.food-count {
  text-align: left;
  margin-top: 12px;
}
.food-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.food-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border-radius: 14px;
  background: #eef4fa;
  color: #7797b5;
}
.food-icon .icon {
  width: 20px;
  height: 20px;
}
.food-row strong {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
}
.food-row small {
  display: block;
  font-size: 0.75rem;
  color: #8292a3;
  margin-top: 4px;
}
.food-row p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #7a838e;
  margin: 7px 0 0;
}
.food-row > .icon {
  width: 18px;
  height: 18px;
  color: #acb9c7;
  margin-top: 10px;
}
.tag {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 8px;
  background: #edf3fa;
  color: #7e93aa;
  font-size: 0.6875rem;
  line-height: 1.5;
  margin-top: 8px;
}
.tag.added {
  background: #edf5ef;
  color: #5b8a6d;
}
.idea-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0;
}
.idea {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 0;
}
.idea-art {
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  flex-shrink: 0;
  background: #edf4fa;
  color: #789db8;
  border-radius: 15px;
}
.idea-body {
  min-width: 0;
  flex: 1;
}
.idea h3 {
  font-size: 1rem;
  margin: 10px 0;
}
.idea p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #7a8696;
}
.idea .actions {
  margin: 14px 0 0;
}
.idea .actions > * {
  font-size: 0.8125rem;
  min-height: 44px;
  padding: 10px;
}
.source {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  color: #0071e3;
  text-decoration: underline;
  font-size: 0.8125rem;
}
.album-hero {
  position: relative;
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 24px;
  background: #e4eff5;
  margin-bottom: 24px;
}
.album-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-hero:after {
  content: "";
  position: absolute;
  inset: 15% 0 0;
  background: linear-gradient(transparent, #142c3a9e);
}
.album-hero > div {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 20px;
  z-index: 1;
  color: white;
}
.album-hero span {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}
.album-hero h2 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.album-hero p {
  font-size: 0.8125rem;
  margin: 0;
  color: #e2edf5;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.memory-card {
  min-width: 0;
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}
.memory-card > img,
.memory-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ede6ef;
  color: #ad8aac;
}
.memory-cover .icon {
  width: 35px;
  height: 35px;
}
.memory-card > span:last-child {
  display: grid;
  gap: 6px;
  padding: 13px;
}
.memory-card small {
  font-size: 0.6875rem;
  color: #9a8e9a;
  line-height: 1.6;
}
.memory-card strong {
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 500;
}
.album-empty {
  background: #f0ebf2;
  color: #9a839d;
  margin: 20px 0;
}
.album-empty > .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}
.album-empty h3 {
  font-size: 1.25rem;
}
.album-empty p {
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.memory-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(var(--app-height, 100dvh) - 230px);
  object-fit: contain;
  border-radius: 16px;
  background: #f2f4f7;
}
.memory-text {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.9;
  margin: 20px 0;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 0.8125rem;
  color: #8c95a2;
}
.gallery-controls .secondary {
  min-width: 56px;
}
.draft-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.draft-photos > div {
  position: relative;
  min-width: 0;
}
.draft-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.draft-photos button {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #233242c9;
  color: #fff;
  font-size: 1.5rem;
  border: 1px solid #ffffff77;
}
dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 540px);
  max-width: 100%;
  max-height: calc(
    var(--app-height, 100dvh) - max(16px, env(safe-area-inset-top))
  );
  padding: 0;
  border: 0;
  border-top: 1px solid #e5e8ef;
  border-radius: 26px 26px 0 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 -10px 80px #1e314333;
  overflow: hidden;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog.full-sheet {
  height: calc(var(--app-height, 100dvh) - max(12px, env(safe-area-inset-top)));
}
dialog::backdrop {
  background: #172c415e;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 20px 8px;
  flex-shrink: 0;
}
.sheet-head .eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}
.close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef1f6;
  color: #7e8fa1;
  font-size: 1.5rem;
  line-height: 1;
}
#sheet-content {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px calc(28px + env(safe-area-inset-bottom));
  scroll-padding: 20px 0 150px;
}
#sheet-content > h2 {
  font-size: 1.5rem;
  margin: 8px 0 12px;
  line-height: 1.5;
}
#sheet-content > p.muted {
  font-size: 0.8125rem;
  margin: 0 0 20px;
}
.field {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  min-width: 0;
}
.field label {
  font-size: 0.8125rem;
  color: #8190a1;
  line-height: 1.6;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #dfe5ed;
  border-radius: 13px;
  background: #f7f9fc;
  color: #293c51;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
  font-family: inherit;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input[type="time"],
.field input[type="date"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid .field {
  margin: 8px 0;
}
.form-sheet #sheet-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 0;
}
.form-sheet #sheet-content > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.form-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 4px 20px 24px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.form-scroll > h2 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 8px 0 12px;
}
.form-actions {
  display: grid;
  gap: 10px;
  flex-shrink: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  margin: 0;
  background: #fff;
  z-index: 3;
  border-top: 1px solid #edf0f4;
}
.preview {
  padding: 18px;
  background: #edf5ff;
  border-radius: 16px;
  white-space: pre-line;
  line-height: 1.9;
  color: #5d7b99;
  font-size: 0.875rem;
}
#expense-form > .field:first-child input {
  font-size: 2rem;
  letter-spacing: -0.035em;
  font-weight: 500;
  min-height: 80px;
  background: white;
}
.place-figure {
  margin: 20px 0;
}
.detail-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 19px;
}
.place-figure figcaption {
  font-size: 0.6875rem;
  line-height: 1.8;
  color: #8c97a4;
  margin-top: 9px;
}
.place-figure figcaption a {
  text-decoration: underline;
}
.place-description {
  font-size: 1rem;
  line-height: 1.95;
  color: #4e5c6e;
}
.place-highlights {
  padding-left: 20px;
  font-size: 0.875rem;
  color: #7a8a9b;
  line-height: 1.9;
}
.place-facts {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.place-facts > span {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 0.8125rem;
  color: #8b98a6;
  line-height: 1.7;
}
.place-facts .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.jp {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: #f4f6fa;
  border-radius: 16px;
  text-align: center;
  font-size: 1.125rem;
}
.copy-address {
  width: 100%;
  padding: 16px 0;
  text-align: left;
  color: #728ba6;
  font-size: 0.8125rem;
  line-height: 1.9;
  user-select: text;
}
.place-note {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 0.875rem;
  color: #8692a1;
}
.manage-place {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.full-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.credit-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.credit-item strong {
  font-size: 0.875rem;
}
.credit-item p {
  font-size: 0.8125rem;
  color: #8a96a5;
}
.reorder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 700px) {
  main {
    padding: 32px 36px 44px;
  }
  header {
    padding-left: 36px;
    padding-right: 36px;
  }
  nav {
    padding-left: calc((100% - 560px) / 2);
    padding-right: calc((100% - 560px) / 2);
  }
  .page-title,
  .day-tabs,
  .next-stop,
  .day-complete,
  .plan-shortcuts,
  .daily-plan,
  .trip-inspiration,
  .bottom-links,
  .surface,
  .balance,
  .stats,
  .expense-list,
  .album-hero,
  .album-day,
  .route-infographic {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  .route-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-infographic {
    max-width: 600px;
  }
  .map-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .album-hero {
    aspect-ratio: 2;
  }
  .album-hero h2 {
    font-size: 2.5rem;
  }
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trip-carousel {
    height: 220px;
  }
  .stop {
    grid-template-columns: 80px minmax(0, 1fr) 44px;
    padding: 20px;
  }
  .stop-art {
    width: 80px;
    height: 95px;
  }
  .stop h3 {
    font-size: 1.0625rem;
  }
  dialog {
    bottom: 16px;
    border-radius: 26px;
    max-height: calc(var(--app-height, 100dvh) - 32px);
  }
  dialog.full-sheet {
    height: calc(var(--app-height, 100dvh) - 32px);
  }
}
@media (max-width: 350px) {
  header {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }
  main {
    padding: 20px 14px 28px;
  }
  .page-title {
    gap: 8px;
  }
  .page-title h1 {
    font-size: 1.625rem;
  }
  .info-btn {
    font-size: 0.6875rem;
    max-width: 90px;
  }
  .info-btn .icon {
    width: 18px;
    height: 18px;
  }
  .day {
    border-radius: 15px;
    min-height: 86px;
  }
  .day small {
    font-size: 0.5625rem;
  }
  .stop {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 9px;
    padding: 14px 10px;
  }
  .stop-art {
    width: 44px;
    height: 64px;
    border-radius: 11px;
  }
  .stop h3 {
    font-size: 0.875rem;
  }
  .next-stop {
    padding: 20px;
  }
  .next-stop h2 {
    font-size: 1.25rem;
  }
  .shortcut {
    font-size: 0.8125rem;
    padding: 10px 5px;
  }
  .stat strong {
    font-size: 0.875rem;
  }
  .expense {
    grid-template-columns: 30px minmax(0, 1fr) minmax(40px, auto);
    gap: 8px;
    padding: 15px 10px;
  }
  .person {
    width: 30px;
    height: 30px;
  }
  .expense .sum {
    font-size: 0.8125rem;
    max-width: 85px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .food-row {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 9px;
  }
  .food-icon {
    width: 32px;
    height: 40px;
  }
  .food-row > .icon {
    width: 16px;
  }
  .album-grid {
    gap: 8px;
  }
  .memory-card > span:last-child {
    padding: 10px;
  }
  .album-hero h2 {
    font-size: 1.75rem;
  }
  .route-day {
    padding: 16px;
  }
  .selected-place {
    flex-wrap: wrap;
  }
  .draft-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .surface {
    padding: 16px;
  }
}
@media (max-height: 500px) {
  header {
    min-height: 48px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  main {
    padding-top: 16px;
  }
  nav button {
    min-height: 48px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .map-frame {
    height: 250px;
  }
  .sheet-head {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .status {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tick {
  0% {
    transform: scale(0.94);
  }
  70% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
