/* Warm 熊抱哥 presentation layer. Keep layout and behavior in app.css. */
.theme-hug {
  --hug-bg: #fff0f3;
  --hug-bg-soft: #fff8ed;
  --hug-surface: #fffdf8;
  --hug-surface-pink: #fff4f6;
  --hug-primary: #e56879;
  --hug-primary-strong: #ca4465;
  --hug-primary-dark: #a83d58;
  --hug-primary-hover: #c94b61;
  --hug-primary-soft: #ffdce3;
  --hug-accent: #ce5268;
  --hug-text: #4c3034;
  --hug-muted: #85656a;
  --hug-border: #f0c6ce;
  --hug-border-strong: #e78b9a;
  --hug-warning-bg: #fff0cf;
  --hug-success: #6f9277;
  --hug-warning: #a9682e;
  --hug-danger: #aa4252;
  --hug-shadow: 0 13px 32px rgba(173, 73, 94, 0.14), 0 2px 7px rgba(116, 62, 70, 0.06);
  --ink: var(--hug-text);
  --muted: var(--hug-muted);
  --paper: var(--hug-bg);
  --surface: var(--hug-surface);
  --forest: var(--hug-primary);
  --accent: var(--hug-accent);
  --sand: #f4e5d5;
  --line: var(--hug-border);
  --shadow: var(--hug-shadow);
  --radius: 18px;
  color: var(--hug-text);
  background-color: var(--hug-bg);
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.84) 0 5px, transparent 6px),
    radial-gradient(circle at 92% 28%, rgba(232, 117, 137, 0.10) 0 7px, transparent 8px),
    linear-gradient(145deg, #fff5f6 0%, var(--hug-bg) 48%, #ffedf1 100%);
  background-attachment: fixed;
}

/* V1 theme variants share the Bear layout and swap only design tokens/colors. */
html[data-theme="ocean"] .theme-hug {
  --hug-primary: #2387a2;
  --hug-primary-dark: #17647a;
  --hug-border: #bfe1e8;
  --hug-border-strong: #79bdcc;
  --hug-muted: #54747b;
  --hug-surface: #fbfeff;
  --hug-text: #24434a;
  background: linear-gradient(180deg, #eef9fb 0, #f8fcfc 42%, #edf7f8 100%);
}
html[data-theme="ocean"] .theme-hug .site-header,
html[data-theme="ocean"] .theme-hug .mobile-travel-bar { border-color: #bfe1e8; background: rgba(246, 253, 254, .96); }
html[data-theme="ocean"] .theme-hug .brand-mark,
html[data-theme="ocean"] .theme-hug .primary-button,
html[data-theme="ocean"] .theme-hug .mobile-travel-action.is-prominent { background: #2387a2; }
html[data-theme="ocean"] .theme-hug .date-chip.is-active,
html[data-theme="ocean"] .theme-hug .mobile-travel-action.is-active { color: #17647a; border-color: #79bdcc; background: #e1f5f8; }
html[data-theme="ocean"] .theme-hug .date-chip.is-active strong,
html[data-theme="ocean"] .theme-hug .date-chip.is-active .day-weather-preview,
html[data-theme="ocean"] .theme-hug .date-chip.is-active .day-weather-location { color: #17647a; }
html[data-theme="ocean"] .theme-hug .timeline-item.is-next-stop .timeline-card { border-color: #55aabe; box-shadow: 0 10px 25px rgba(35, 135, 162, .16); }
html[data-theme="ocean"] .theme-hug .next-stop-badge { color: #17647a; background: #d9f1f5; }

.theme-hug :focus-visible {
  outline: 3px solid rgba(201, 86, 105, 0.34);
  outline-offset: 3px;
}

.theme-hug .site-header {
  position: relative;
  z-index: 20;
  height: 68px;
  background: rgba(255, 249, 246, 0.96);
  border-bottom: 2px solid var(--hug-border);
  box-shadow: 0 5px 22px rgba(178, 77, 98, 0.12);
}
.theme-hug .brand { color: #68483f; }
.theme-hug .brand-mark {
  color: #fffaf5;
  background: linear-gradient(145deg, #f18a98, var(--hug-primary-strong));
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 4px 12px rgba(217, 103, 88, 0.24);
}
.theme-hug .header-nav a { padding: 8px 7px; border-radius: 9px; }
.theme-hug .header-nav a:hover { color: var(--hug-primary-hover); background: var(--hug-primary-soft); }
.theme-hug .header-nav .is-active { color: var(--hug-primary-dark); background: var(--hug-primary-soft); box-shadow: inset 0 0 0 1px #f2b3bf; }

.theme-hug .page-heading h1,
.theme-hug .trip-hero h1,
.theme-hug .detail-main h1 { color: #4f3832; }
.theme-hug .eyebrow, .theme-hug .item-type { color: var(--hug-accent); }
.theme-hug .back-link:hover, .theme-hug .text-link:hover { color: var(--hug-primary-hover); }

/* Reusable future image slots. A background-image can be supplied later per semantic class. */
.theme-hug .hug-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid #efb7c1;
  border-radius: 10px;
  color: #9b4d43;
  background-color: #ffe4e9;
  background-image: var(--hug-icon-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 92%;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}
.theme-hug .hug-icon-sm { width: 28px; height: 28px; }
.theme-hug .hug-icon-md { width: 36px; height: 36px; border-radius: 12px; }
.theme-hug .hug-icon-lg { width: 48px; height: 48px; border-radius: 16px; font-size: 0.8rem; box-shadow: 0 6px 14px rgba(190, 74, 95, 0.16); }
.theme-hug .hug-heading { display: flex; align-items: center; gap: 12px; }
.theme-hug .hug-heading h1 { margin-block: 4px 6px; }

.theme-hug .hug-mascot {
  display: block;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 54%, rgba(0, 0, 0, .86) 69%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 54%, rgba(0, 0, 0, .86) 69%, transparent 100%);
}
.theme-hug .hug-mascot-hero { width: 182px; height: 182px; }
.theme-hug .hug-mascot-section { width: 104px; height: 104px; }
.theme-hug .hug-mascot-decorative { width: 64px; height: 64px; }

/* Presentation-only semantic mapping, mirrored from images/hug-icons/mapping.json. */
.theme-hug .bear-preparation { --hug-icon-image: url("../images/hug-icons/bear-preparation.webp"); }
.theme-hug .bear-wallet, .theme-hug .bear-expense { --hug-icon-image: url("../images/hug-icons/bear-wallet.webp"); }
.theme-hug .bear-hotel { --hug-icon-image: url("../images/hug-icons/bear-hotel.webp"); }
.theme-hug .bear-food, .theme-hug .bear-restaurant { --hug-icon-image: url("../images/hug-icons/bear-food.webp"); }
.theme-hug .bear-camera, .theme-hug .bear-attraction { --hug-icon-image: url("../images/hug-icons/bear-attraction.webp"); }
.theme-hug .bear-shopping { --hug-icon-image: url("../images/hug-icons/bear-shopping.webp"); }
.theme-hug .bear-car, .theme-hug .bear-rental_car, .theme-hug .bear-transport { --hug-icon-image: url("../images/hug-icons/bear-car.webp"); }
.theme-hug .bear-flight { --hug-icon-image: url("../images/hug-icons/bear-flight.webp"); }
.theme-hug .bear-reminder, .theme-hug .bear-note { --hug-icon-image: url("../images/hug-icons/bear-reminder.webp"); }
.theme-hug .bear-completed { --hug-icon-image: url("../images/hug-icons/bear-completed.webp"); }
.theme-hug .bear-progress, .theme-hug .bear-in_progress { --hug-icon-image: url("../images/hug-icons/bear-progress.webp"); }
.theme-hug .bear-review { --hug-icon-image: url("../images/hug-icons/bear-review.webp"); }
.theme-hug .bear-issue { --hug-icon-image: url("../images/hug-icons/bear-issue.webp"); }
.theme-hug .bear-favorite { --hug-icon-image: url("../images/hug-icons/bear-favorite.webp"); }
.theme-hug .icon-place, .theme-hug .bear-place { --hug-icon-image: url("../images/hug-icons/icon-place.webp"); }
.theme-hug .icon-checklist, .theme-hug .bear-checklist { --hug-icon-image: url("../images/hug-icons/icon-checklist.webp"); }
.theme-hug .icon-ticket, .theme-hug .bear-ticket { --hug-icon-image: url("../images/hug-icons/icon-ticket.webp"); }
.theme-hug .icon-passport, .theme-hug .bear-passport { --hug-icon-image: url("../images/hug-icons/icon-passport.webp"); }
.theme-hug .icon-card, .theme-hug .bear-payment_card { --hug-icon-image: url("../images/hug-icons/icon-card.webp"); }
.theme-hug .icon-luggage, .theme-hug .bear-luggage { --hug-icon-image: url("../images/hug-icons/icon-luggage.webp"); }
.theme-hug .icon-note, .theme-hug .bear-notes { --hug-icon-image: url("../images/hug-icons/icon-note.webp"); }
.theme-hug .icon-album, .theme-hug .bear-album { --hug-icon-image: url("../images/hug-icons/icon-album.webp"); }
.theme-hug .icon-info, .theme-hug .bear-info { --hug-icon-image: url("../images/hug-icons/icon-info.webp"); }
.theme-hug .bear-preparation, .theme-hug .bear-wallet, .theme-hug .bear-expense,
.theme-hug .bear-hotel, .theme-hug .bear-food, .theme-hug .bear-restaurant,
.theme-hug .bear-camera, .theme-hug .bear-attraction, .theme-hug .bear-shopping,
.theme-hug .bear-car, .theme-hug .bear-rental_car, .theme-hug .bear-transport,
.theme-hug .bear-flight, .theme-hug .bear-reminder, .theme-hug .bear-note,
.theme-hug .bear-completed, .theme-hug .bear-progress, .theme-hug .bear-in_progress,
.theme-hug .bear-review, .theme-hug .bear-issue, .theme-hug .bear-favorite,
.theme-hug .icon-place, .theme-hug .bear-place, .theme-hug .icon-checklist,
.theme-hug .bear-checklist, .theme-hug .icon-ticket, .theme-hug .bear-ticket,
.theme-hug .icon-passport, .theme-hug .bear-passport, .theme-hug .icon-card,
.theme-hug .bear-payment_card, .theme-hug .icon-luggage, .theme-hug .bear-luggage,
.theme-hug .icon-note, .theme-hug .bear-notes, .theme-hug .icon-album,
.theme-hug .bear-album, .theme-hug .icon-info, .theme-hug .bear-info { font-size: 0; }
.theme-hug .category-icon[style*="--hug-icon-image"]::before { content: none; }
.theme-hug .category-icon.bear-hotel::before,
.theme-hug .category-icon.bear-restaurant::before,
.theme-hug .category-icon.bear-attraction::before,
.theme-hug .category-icon.bear-shopping::before,
.theme-hug .category-icon.bear-rental_car::before,
.theme-hug .category-icon.bear-transport::before,
.theme-hug .category-icon.bear-flight::before,
.theme-hug .category-icon.bear-note::before { content: none; }
.theme-hug .bear-wallet { background-color: #f8ddd7; }
.theme-hug .bear-preparation, .theme-hug .bear-completed { background-color: #f6e3d0; }
.theme-hug .bear-hotel { background-color: #f8dfca; }
.theme-hug .bear-food, .theme-hug .bear-restaurant { background-color: #f8d9d3; }
.theme-hug .bear-camera, .theme-hug .bear-attraction { background-color: #fae2d3; }
.theme-hug .bear-shopping { background-color: #f3dedc; }
.theme-hug .bear-car, .theme-hug .bear-rental_car,
.theme-hug .bear-flight, .theme-hug .bear-transport { background-color: #e3e8e7; }
.theme-hug .bear-note { background-color: #f7edce; }

.theme-hug .trip-card,
.theme-hug .action-card,
.theme-hug .form-card,
.theme-hug .record-card,
.theme-hug .booking-section,
.theme-hug .raw-text,
.theme-hug .linked-records,
.theme-hug .review-section,
.theme-hug .batch-item,
.theme-hug .expense-summary article,
.theme-hug .saved-card,
.theme-hug .expense-row,
.theme-hug .metadata-card,
.theme-hug .empty-state {
  border-color: var(--hug-border);
  background: var(--hug-surface);
  box-shadow: var(--hug-shadow);
}
.theme-hug .trip-card-art { background: linear-gradient(135deg, #c96f60, #dc9886 58%, #f0d4b4); }
.theme-hug .record-card, .theme-hug .action-card { transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.theme-hug .record-card:hover, .theme-hug .action-card:hover { border-color: #daa99f; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(111, 72, 61, 0.13); }
.theme-hug .record-icon, .theme-hug .action-card > span { background: var(--hug-primary); }

.theme-hug .primary-button, .theme-hug .icon-button, .theme-hug .confirm-button {
  color: #fffaf7;
  background: var(--hug-primary);
  box-shadow: 0 6px 15px rgba(190, 79, 66, 0.18);
}
.theme-hug .primary-button:hover, .theme-hug .icon-button:hover, .theme-hug .confirm-button:hover { background: var(--hug-primary-hover); }
.theme-hug .danger-button { color: var(--hug-danger); border-color: #deb8b2; background: #fff0ed; }
.theme-hug .danger-text, .theme-hug .timeline-card-actions .action-delete { color: var(--hug-danger) !important; }
.theme-hug button:not(.primary-button):not(.icon-button):not(.confirm-button):hover,
.theme-hug .timeline-card-actions a:hover { border-color: #ddb2a9; background: #fbe5df; }

.theme-hug input, .theme-hug select, .theme-hug textarea,
.theme-hug .field input, .theme-hug .field select, .theme-hug .field textarea,
.theme-hug .toolbar select, .theme-hug .review-field input,
.theme-hug .review-field select, .theme-hug .review-field textarea {
  color: var(--hug-text);
  border-color: #dfcfc7;
  background: #fffdfa;
}
.theme-hug input:focus, .theme-hug select:focus, .theme-hug textarea:focus { border-color: var(--hug-primary); }

.theme-hug .date-strip { top: 0; background: rgba(251, 244, 235, 0.94); }
.theme-hug .date-chip { border-color: var(--hug-border); box-shadow: 0 3px 10px rgba(111, 72, 61, 0.04); }
.theme-hug .date-chip.is-active { color: #ffe9e3; border-color: var(--hug-primary); background: var(--hug-primary); box-shadow: 0 8px 18px rgba(190, 79, 66, 0.22); }
.theme-hug .timeline-marker span { background: var(--category-color, var(--hug-primary)); box-shadow: 0 0 0 2px var(--category-color, var(--hug-primary)); }
.theme-hug .timeline-card { border-color: var(--category-border, var(--hug-border)); background: var(--hug-surface); box-shadow: 0 7px 20px rgba(111, 72, 61, 0.075); }
.theme-hug .timeline-card:hover { box-shadow: 0 11px 27px rgba(111, 72, 61, 0.12); }
.theme-hug .timeline-card-actions a, .theme-hug .timeline-card-actions button,
.theme-hug .checklist-admin-row button, .theme-hug .checklist-add-row button,
.theme-hug .checklist-items button { color: #794c44; border-color: var(--hug-border); background: #fff7f1; }
.theme-hug .timeline-expense-icon { color: #9b4d43; border-color: #edc6bd; background: #fff3ef; }
.theme-hug .timeline-expense-icon:hover { border-color: var(--hug-primary); background: var(--hug-primary-soft); }
.theme-hug .category-icon { border-color: transparent; }
.theme-hug .category-hotel { --category-color: #a76545; --category-bg: #f8dfca; --category-border: #edc9aa; }
.theme-hug .category-attraction { --category-color: #a75e45; --category-bg: #fae2d3; --category-border: #efc9b6; }
.theme-hug .category-restaurant { --category-color: #ad544d; --category-bg: #f8d9d3; --category-border: #edc1ba; }
.theme-hug .category-shopping { --category-color: #925d65; --category-bg: #f3dedc; --category-border: #e5c6c7; }
.theme-hug .category-rental_car, .theme-hug .category-transport, .theme-hug .category-flight { --category-color: #61777a; --category-bg: #e3e8e7; --category-border: #cbd6d4; }
.theme-hug .category-note { --category-color: #8b743e; --category-bg: #f7edce; --category-border: #eadcae; }
.theme-hug .category-activity { --category-color: #70775b; --category-bg: #e9ecdc; --category-border: #d5dac2; }

.theme-hug .trip-preparation-link { align-items: center; gap: 7px; color: #744a42; border-color: #ebc9c0; background: #fff9f4; }
.theme-hug .hero-action-icon { margin-right: 4px; vertical-align: middle; }
.theme-hug .hero-action-icon + .trip-preparation-link { margin-left: 0; vertical-align: middle; }
.theme-hug .trip-preparation-link:hover { background: var(--hug-primary-soft); }
.theme-hug .preparation-summary { max-width: 520px; padding: 14px 16px; border: 1px solid var(--hug-border); border-radius: 15px; background: var(--hug-surface); box-shadow: 0 6px 18px rgba(111, 72, 61, 0.06); }
.theme-hug .preparation-summary.is-completed { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; }
.theme-hug .preparation-summary.is-completed progress { grid-column: 1 / -1; }
.theme-hug .preparation-summary p { margin: 0 0 8px; color: var(--hug-muted); }
.theme-hug .preparation-summary progress, .theme-hug .batch-progress progress { width: 100%; height: 10px; accent-color: var(--hug-primary); }
.theme-hug .checklist-category { border-color: var(--hug-border); border-radius: 16px; background: var(--hug-surface); box-shadow: 0 5px 16px rgba(111, 72, 61, 0.055); }
.theme-hug .checklist-category > summary { background: #fffbf7; }
.theme-hug .checklist-category[open] > summary { color: #774b43; background: #fbe8e2; }
.theme-hug .checklist-toggle input { accent-color: var(--hug-primary); }
.theme-hug .checklist-item-row.is-completed { background: rgba(116, 102, 97, 0.035); }

.theme-hug .expense-summary h2 { color: #5f413a; }
.theme-hug .expense-summary article { border-top: 4px solid #e5a397; }
.theme-hug .expense-row > strong { color: #9f5047; font-variant-numeric: tabular-nums; }
.theme-hug .payment-method label { padding: 7px 11px; border: 1px solid var(--hug-border); border-radius: 999px; background: #fff8f3; }
.theme-hug .payment-method input { accent-color: var(--hug-primary); }

.theme-hug .metadata-card, .theme-hug .review-source, .theme-hug .batch-complete {
  color: var(--hug-text);
  border: 1px solid #e5c8bd;
  background: #f4ded4;
  box-shadow: var(--hug-shadow);
}
.theme-hug .metadata-card dt, .theme-hug .review-source > p:not(.eyebrow),
.theme-hug .review-source dt, .theme-hug .analysis-actions small,
.theme-hug .analysis-actions summary { color: #7b625b; }
.theme-hug .metadata-card .primary-button, .theme-hug .analysis-actions button,
.theme-hug .active-draft-link { color: #754a42; background: #fffaf6; }
.theme-hug .provenance-note { border-color: #e1cbc0; background: #f8eee6; }
.theme-hug .provenance-note > span { background: var(--hug-primary); }
.theme-hug .status-pill { color: #81573b; background: #f3ddbd; }


/* Strong mascot-led travel presentation. */
.theme-hug .timeline-shell { padding-top: 20px; }
.theme-hug .trip-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1600 / 500;
  margin: 0 0 18px;
  padding: 22px 214px 20px 22px;
  border: 2px solid var(--hug-border-strong);
  border-radius: 26px;
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 248, 246, .92) 0%,
      rgba(255, 248, 246, .76) 38%,
      rgba(255, 238, 242, .16) 64%,
      rgba(255, 238, 242, 0) 100%
    ),
    url("../images/hug-mascots/hero-tokyo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 16px 34px rgba(184, 70, 94, 0.17), inset 0 1px rgba(255,255,255,.8);
}
.theme-hug .trip-hero::before {
  content: "•• · · ••";
  position: absolute;
  z-index: -1;
  top: 48px;
  right: 38px;
  width: 126px;
  height: 76px;
  color: rgba(190, 66, 91, .30);
  border-top: 2px dotted rgba(205, 85, 109, .28);
  border-radius: 50%;
  font-size: .62rem;
  letter-spacing: .34em;
  transform: rotate(-13deg);
}
.theme-hug .trip-hero::after {
  content: "♥  ·  ✦  ••";
  position: absolute;
  z-index: -1;
  right: 25px;
  bottom: 12px;
  color: rgba(190, 66, 91, .34);
  font-size: .78rem;
  letter-spacing: .25em;
}
.theme-hug .trip-hero > .hug-mascot-hero {
  display: none;
}
.theme-hug .trip-hero .back-link { color: #8d5963; }
.theme-hug .trip-hero h1 { text-shadow: 0 1px rgba(255,255,255,.8); }
.theme-hug .trip-hero-dates { color: #79545b; font-weight: 750; }
.theme-hug .trip-route-edit { color: #744a42; border-color: #ebc9c0; background: rgba(255,249,244,.94); }
.theme-hug .trip-hero-actions a { color: #744a42; border-color: #ebc9c0; background: rgba(255,247,247,.98); box-shadow: 0 4px 12px rgba(173,68,89,.10); }
.theme-hug .trip-hero-actions a:hover { background: var(--hug-primary-soft); }
.theme-hug .hero-action-icon {
  width: 34px;
  height: 34px;
  margin: 10px 4px 0 0;
  border: 0;
  border-radius: 12px;
  background-color: #fff4f4;
  box-shadow: 0 5px 12px rgba(173, 68, 89, .15);
}
.theme-hug .trip-preparation-link {
  min-height: 40px;
  margin-top: 10px;
  padding: 8px 12px 8px 9px;
  color: #783d4b;
  border: 2px solid #ed9eab;
  border-radius: 14px;
  background: rgba(255, 251, 244, .92);
  box-shadow: 0 6px 13px rgba(174, 72, 92, .11);
}
.theme-hug .trip-preparation-link:hover { transform: translateY(-2px); border-color: var(--hug-primary-strong); background: #fff; box-shadow: 0 9px 17px rgba(174, 72, 92, .17); }
.theme-hug .trip-preparation-link:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(174, 72, 92, .14); }
.theme-hug .trip-preparation-progress { color: var(--hug-primary-dark); font-weight: 850; }

.theme-hug .date-strip { padding-block: 12px 17px; background: rgba(255, 240, 243, .92); }
.theme-hug .date-strip-mascot {
  display: none;
}
.theme-hug .date-chip {
  position: relative;
  overflow: hidden;
  padding-block: 8px 9px;
  border: 2px solid #efc2ca;
  border-radius: 18px;
  background: var(--hug-bg-soft);
  box-shadow: 0 6px 14px rgba(157, 72, 89, .09);
}
.theme-hug .date-chip span {
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.15;
}
.theme-hug .date-chip .day-tab-order { font-size: .63rem; font-weight: 750; }
.theme-hug .date-chip strong {
  color: var(--hug-text);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.theme-hug .date-chip small {
  color: var(--hug-muted);
  font-size: .65rem;
  line-height: 1.15;
  white-space: nowrap;
}
.theme-hug .date-chip .day-weather-preview { color: var(--hug-text); font-size: .66rem; font-weight: 850; }
.theme-hug .date-chip .day-weather-location { color: var(--hug-muted); font-size: .62rem; font-weight: 750; }
.theme-hug .date-chip:hover { border-color: var(--hug-border-strong); transform: translateY(-1px); }
.theme-hug .date-chip.is-active {
  border-color: #bd385a;
  background: linear-gradient(155deg, #eb7788, var(--hug-primary-strong));
  box-shadow: 0 10px 21px rgba(179, 54, 85, .28), inset 0 1px rgba(255,255,255,.28);
}
.theme-hug .date-chip.is-active strong { color: #fffaf7; }
.theme-hug .date-chip.is-active small,
.theme-hug .date-chip.is-active .day-weather-preview { color: #ffe9e3; }
html[data-theme="ocean"] .theme-hug .date-chip.is-active strong,
html[data-theme="ocean"] .theme-hug .date-chip.is-active .day-weather-preview,
html[data-theme="ocean"] .theme-hug .date-chip.is-active .day-weather-location { color: #17647a; }
.theme-hug .date-chip.is-active::after {
  content: "• ••";
  position: absolute;
  top: 1px;
  right: 4px;
  color: rgba(255,255,255,.46);
  font-size: .48rem;
  letter-spacing: -.08em;
  transform: rotate(28deg);
}

.theme-hug .timeline-warning {
  position: relative;
  min-height: 74px;
  padding: 16px 18px;
  border: 2px solid #e5a166;
  border-radius: 20px;
  color: #754522;
  background: linear-gradient(120deg, var(--hug-warning-bg), #fff7e5);
  box-shadow: 0 9px 22px rgba(168, 104, 46, .13);
}
.theme-hug .timeline-warning::before {
  display: none;
}
.theme-hug .timeline-warning a { color: #854833; border: 1px solid #e6b083; background: #fffaf1; }

.theme-hug .home-review-warning {
  margin: 0 0 24px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 2px solid #e5a166;
  border-radius: 20px;
  color: #754522;
  background: linear-gradient(120deg, var(--hug-warning-bg), #fff7e5);
  box-shadow: 0 9px 22px rgba(168, 104, 46, .13);
}
.theme-hug .home-review-warning h2,
.theme-hug .home-review-warning p { margin: 0; }
.theme-hug .home-review-warning h2 { font-size: 1rem; }
.theme-hug .home-review-warning p { margin-top: 3px; color: #86603c; font-size: .8rem; }
.theme-hug .home-review-warning > a {
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e6b083;
  border-radius: 11px;
  color: #854833;
  background: #fffaf1;
  font-size: .78rem;
  font-weight: 800;
}
.theme-hug .home-review-warning > a:hover { border-color: #d88467; background: #fff; }
.theme-hug .date-strip + .timeline-layout { padding-top: 8px; }

.theme-hug .timeline > .section-heading {
  position: relative;
  margin: 4px 0 22px;
  min-height: 88px;
  padding: 10px 62px 10px 15px;
  gap: 10px;
  border: 1px solid #efcbd1;
  border-radius: 18px;
  background: rgba(255, 250, 241, .76);
  box-shadow: 0 6px 16px rgba(158, 73, 90, .07);
}
.theme-hug .day-heading-mascot { display: none; }
.theme-hug .timeline > .section-heading::after {
  content: "• •  ✦";
  position: absolute;
  right: 66px;
  top: 18px;
  color: rgba(204, 72, 99, .42);
  font-size: .72rem;
  letter-spacing: .18em;
  white-space: nowrap;
  transform: rotate(-8deg);
}
.theme-hug .timeline-day-summary { position: relative; padding-left: 13px; }
.theme-hug .timeline-day-summary::before { content: "♥"; position: absolute; left: -3px; top: 0; color: #e47b8c; font-size: .68rem; }
.theme-hug .timeline-day-summary .eyebrow { color: var(--hug-primary-strong); }
.theme-hug .timeline-day-summary h2 { color: var(--hug-text); }
.theme-hug .icon-button { border: 3px solid #ffd9df; background: linear-gradient(145deg, #ef7c8d, var(--hug-primary-strong)); }

.theme-hug .timeline-marker::after { width: 3px; background: #f1b7c1; }
.theme-hug .timeline-marker span {
  width: 15px;
  height: 15px;
  border: 3px solid #fff8f3;
  background: var(--hug-primary-strong);
  box-shadow: 0 0 0 3px #e98293, 0 3px 8px rgba(164, 54, 79, .2);
}
.theme-hug .timeline-card {
  margin-bottom: 13px;
  padding: 14px 15px;
  border-width: 2px;
  border-radius: 21px;
  background: linear-gradient(110deg, var(--category-bg, #fff4f6) 0, var(--hug-surface) 35%);
  box-shadow: 0 11px 25px rgba(167, 72, 91, .13), inset 0 1px rgba(255,255,255,.9);
}
.theme-hug .timeline-card:hover { border-color: var(--category-color, var(--hug-primary)); transform: translateY(-1px); box-shadow: 0 15px 30px rgba(167, 72, 91, .18); }
.theme-hug .timeline-card-content { padding-right: 58px; }
.theme-hug .timeline-card-label { min-height: 38px; gap: 10px; }
.theme-hug .timeline-card .category-icon.hug-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 1px solid rgba(211, 102, 122, .30);
  border-radius: 13px;
  background-color: var(--category-bg, #ffe5e9);
  background-size: 94%;
  box-shadow: 0 5px 11px rgba(148, 65, 82, .13);
}
.theme-hug .timeline-card h3 { margin-top: 5px; font-size: 1.02rem; color: #503136; }
.theme-hug .timeline-expense-icon {
  border: 2px solid #e791a0;
  color: var(--hug-primary-dark);
  background: #ffe8ed;
  box-shadow: 0 5px 12px rgba(172, 69, 89, .13);
}
.theme-hug .timeline-expense-icon:hover { border-color: var(--hug-primary-strong); background: #ffd9e1; box-shadow: 0 8px 15px rgba(172, 69, 89, .22); }
.theme-hug .timeline-parking-icon { color: #28717c; border: 2px solid #b7dce2; background: #eefbfc; }
.theme-hug .timeline-parking-icon:hover { border-color: #55aabe; background: #ddf5f7; box-shadow: 0 8px 15px rgba(45,128,144,.18); }
.theme-hug .parking-sheet-panel { background: var(--hug-bg); }
.theme-hug .parking-result-card, .theme-hug .parking-sheet-close { border-color: var(--hug-border); background: var(--hug-surface); }
.theme-hug .parking-navigation-action { color: #fff; background: var(--hug-primary-dark); }
.theme-hug .category-hotel { --category-bg: #fff0df; --category-border: #edbc91; }
.theme-hug .category-attraction { --category-bg: #ffebe2; --category-border: #eead9b; }
.theme-hug .category-restaurant { --category-bg: #ffe8e4; --category-border: #eeaaa4; }
.theme-hug .category-shopping { --category-bg: #f9e9ec; --category-border: #dda9b2; }
.theme-hug .category-rental_car, .theme-hug .category-transport, .theme-hug .category-flight { --category-bg: #f2e9eb; --category-border: #d6bfc4; }
.theme-hug .category-activity { --category-bg: #ffedf1; --category-border: #e7b8c1; }
.theme-hug .category-note { --category-bg: #fff5d9; --category-border: #e8cf88; }

.theme-hug .preparation-heading, .theme-hug .expense-list + .empty-state { position: relative; }
.theme-hug .preparation-heading, .theme-hug .expense-heading {
  position: relative;
  max-width: 760px;
  min-height: 176px;
  padding: 22px 150px 22px 22px;
  border: 2px solid var(--hug-border-strong);
  border-radius: 25px;
  background: linear-gradient(135deg, #fffaf0, #ffe5eb);
  box-shadow: var(--hug-shadow);
}
.theme-hug .section-heading-mascot {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%) rotate(2deg);
}
.theme-hug .section-empty-message { display: flex; align-items: center; gap: 10px; color: var(--hug-muted); }
.theme-hug .section-empty-message p { margin: 0; }
.theme-hug .empty-state-mascot { margin: 0 auto 8px; }
.theme-hug .preparation-summary {
  max-width: 620px;
  padding: 18px;
  border: 2px solid var(--hug-border-strong);
  border-radius: 21px;
  background: linear-gradient(130deg, #fffaf0, var(--hug-surface-pink));
  box-shadow: var(--hug-shadow);
}
.theme-hug .preparation-summary p { color: var(--hug-primary-dark); font-size: 1rem; font-weight: 850; }
.theme-hug .preparation-summary progress, .theme-hug .batch-progress progress { height: 13px; accent-color: var(--hug-primary-strong); }
.theme-hug .checklist-category {
  border-width: 2px;
  border-color: #efc3cb;
  border-radius: 20px;
  background: var(--hug-surface);
  box-shadow: 0 8px 20px rgba(160, 70, 88, .10);
}
.theme-hug .checklist-category > summary { min-height: 56px; padding: 13px 15px; color: #643d45; background: linear-gradient(100deg, #fff9ed, #fff2f5); }
.theme-hug .checklist-category > summary::marker { color: var(--hug-primary-strong); }
.theme-hug .checklist-category > summary span:first-child::before { content: "•"; margin-right: 8px; color: var(--hug-primary); font-size: 1.2rem; }
.theme-hug .checklist-category[open] > summary { border-bottom: 1px solid var(--hug-border); background: #ffe6eb; }
.theme-hug .checklist-category > summary small { padding: 4px 8px; border-radius: 999px; color: #875661; background: rgba(255,255,255,.75); }
.theme-hug .checklist-category-body { padding: 12px 14px 14px; }
.theme-hug .checklist-item-row.is-completed { color: #807477; background: #f7f3f1; }

.theme-hug .expense-summary-grid { gap: 16px; }
.theme-hug .expense-summary article {
  border: 2px solid #edb5c0;
  border-top: 6px solid var(--hug-primary);
  border-radius: 21px;
  background: linear-gradient(145deg, #fffdf8, #fff1f4);
  box-shadow: 0 10px 24px rgba(163, 70, 88, .12);
}
.theme-hug .expense-summary h3 { color: var(--hug-primary-dark); }
.theme-hug .expense-payment-summary { row-gap: 6px; }
.theme-hug .expense-payment-parent { color: var(--hug-text); font-weight: 750; }
.theme-hug .expense-payment-card-row {
  color: var(--hug-muted);
  font-size: .7rem;
  font-weight: 500;
}
.theme-hug dt.expense-payment-card-row::before {
  content: "↳";
  position: absolute;
  left: 5px;
  color: #c88a96;
}
.theme-hug dt.expense-payment-card-row { position: relative; padding-left: 22px; }
.theme-hug .expense-history { display: grid; gap: 11px; }
.theme-hug .expense-day-group {
  overflow: hidden;
  border: 2px solid var(--hug-border);
  border-radius: 18px;
  background: var(--hug-surface);
  box-shadow: 0 7px 18px rgba(163, 70, 88, .09);
}
.theme-hug .expense-day-group > summary {
  min-height: 58px;
  padding: 11px 15px;
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  color: var(--hug-text);
  background: linear-gradient(100deg, #fffdf8, #fff3f5);
  cursor: pointer;
  list-style: none;
}
.theme-hug .expense-day-group > summary::-webkit-details-marker { display: none; }
.theme-hug .expense-day-group > summary:hover { background: linear-gradient(100deg, #fffaf1, #ffe9ed); }
.theme-hug .expense-day-group > summary time { font-size: .92rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.theme-hug .expense-day-totals { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 3px 7px; color: var(--hug-primary-dark); font-size: .79rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.theme-hug .expense-day-totals i { color: #c99aa2; font-style: normal; }
.theme-hug .expense-day-chevron { color: var(--hug-primary-strong); font-size: 1.1rem; text-align: center; transition: transform 160ms ease; }
.theme-hug .expense-day-group[open] .expense-day-chevron { transform: rotate(180deg); }
.theme-hug .expense-day-group[open] > summary { border-bottom: 1px solid var(--hug-border); }
.theme-hug .expense-day-details { padding: 2px 14px; background: #fff9f7; }
.theme-hug .expense-detail-row {
  min-height: 52px;
  padding: 9px 2px;
  display: grid;
  grid-template-columns: 58px minmax(150px, 1fr) minmax(80px, auto) minmax(105px, auto) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0d9de;
  font-size: .76rem;
}
.theme-hug .expense-detail-row:last-child { border-bottom: 0; }
.theme-hug .expense-detail-row > time { color: var(--hug-muted); font-weight: 750; font-variant-numeric: tabular-nums; }
.theme-hug .expense-detail-description { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.theme-hug .expense-detail-description strong { color: var(--hug-text); }
.theme-hug .expense-detail-description span { color: var(--hug-muted); overflow-wrap: anywhere; }
.theme-hug .expense-detail-payment { color: #74555b; }
.theme-hug .expense-detail-amount { color: var(--hug-primary-dark); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.theme-hug .expense-detail-row nav { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.theme-hug .expense-detail-row nav form { margin: 0; }
.theme-hug .expense-detail-row nav a,
.theme-hug .expense-detail-row nav button { padding: 5px 7px; border: 0; background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.theme-hug .expense-detail-row nav a { color: #754650; }
.theme-hug .expense-row, .theme-hug .saved-card, .theme-hug .expense-form {
  border: 2px solid #efc4cc;
  border-radius: 20px;
  background: linear-gradient(120deg, #fffdf8, #fff6f7);
}
.theme-hug .expense-form { gap: 15px; }
.theme-hug .expense-form .expense-context-start { padding-top: 18px; border-top: 1px solid #efd3d7; }
.theme-hug .payment-method { align-content: start; gap: 7px; }
.theme-hug .payment-method label {
  min-height: 44px;
  padding: 7px 13px;
  border: 2px solid #edbdc6;
  border-radius: 12px;
  background: #fff3f5;
  cursor: pointer;
}
.theme-hug .payment-method input { width: 15px; height: 15px; margin: 0; }
.theme-hug .payment-method label:has(input:checked) { color: #fffaf7; border-color: var(--hug-primary); background: var(--hug-primary); box-shadow: 0 4px 10px rgba(179, 65, 88, .16); }
.theme-hug .payment-method label:has(input:focus-visible) { outline: 3px solid rgba(190, 79, 66, .28); outline-offset: 2px; }

@media (min-width: 680px) {
  .theme-hug .expense-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-hug .expense-form .payment-method { grid-column: span 1; }
  .theme-hug .expense-form .expense-card-field { grid-column: span 2; }
  .theme-hug .expense-form .expense-context-start { grid-column: 1; }
  .theme-hug .expense-form .expense-context-field { padding-top: 18px; border-top: 1px solid #efd3d7; }
  .theme-hug .expense-form .full,
  .theme-hug .expense-form .form-actions { grid-column: 1 / -1; }
}

@media (max-width: 679px) {
  .theme-hug .site-header { padding-inline: 14px; }
  .theme-hug .brand > span:last-child { display: none; }
  .theme-hug .header-nav { gap: 2px; overflow: visible; }
  .theme-hug .header-nav a { padding-inline: 6px; white-space: nowrap; }
  .theme-hug .page-shell { padding-top: 24px; }
  .theme-hug .timeline-shell { padding-top: 14px; }
  .theme-hug .trip-hero { padding: 8px 76px 8px 12px; border-radius: 22px; }
  .theme-hug .trip-hero .back-link { margin-bottom: 2px; font-size: .72rem; }
  .theme-hug .trip-hero-route { font-size: .86rem; }
  .theme-hug .trip-route-edit.compact-icon-button { width: 28px; height: 28px; min-height: 28px; flex-basis: 28px; }
  .theme-hug .trip-hero h1 { margin-block: 0 1px; font-size: 1.25rem; }
  .theme-hug .trip-hero .status-pill { padding: 3px 6px; font-size: .58rem; }
  .theme-hug .trip-hero-dates { font-size: .68rem; line-height: 1.15; }
  .theme-hug .trip-hero::before { top: 50px; right: 12px; width: 88px; height: 50px; }
  .theme-hug .trip-hero > .hug-mascot-hero { top: 42px; right: 8px; width: 92px; height: 92px; opacity: .94; }
  .theme-hug .hero-action-icon { width: 30px; height: 30px; }
  .theme-hug .trip-preparation-link { min-height: 38px; padding: 7px 9px; font-size: .73rem; }
  .theme-hug .timeline-layout { padding-inline: 12px; }
  .theme-hug .timeline > .section-heading::after { display: none; }
  .theme-hug .timeline-card { padding: 12px; border-radius: 18px; }
  .theme-hug .timeline-card .category-icon.hug-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .theme-hug .timeline-warning { margin-inline: 10px; }
  .theme-hug .timeline-warning { min-height: 0; padding: 16px 18px; }
  .theme-hug .date-strip-mascot { display: none; }
  .theme-hug .home-review-warning { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .theme-hug .home-review-warning > a { grid-column: 1 / -1; justify-content: center; }
  .theme-hug .preparation-heading, .theme-hug .expense-heading { min-height: 156px; padding: 18px 94px 18px 16px; border-radius: 21px; }
  .theme-hug .section-heading-mascot { right: 10px; width: 78px; height: 78px; }
  .theme-hug .preparation-heading .hug-heading .hug-icon,
  .theme-hug .expense-heading .hug-heading .hug-icon { display: none; }
}

@media (max-width: 420px) {
  .theme-hug .trip-hero { padding-right: 80px; }
  .theme-hug .trip-hero-actions { width: calc(100% + 65px); margin-right: -65px; }
  .theme-hug .trip-hero > .hug-mascot-hero { width: 74px; height: 74px; right: 3px; opacity: .82; }
  .theme-hug .day-heading-mascot { display: none; }
  .theme-hug .preparation-heading, .theme-hug .expense-heading { padding-right: 78px; }
  .theme-hug .section-heading-mascot { width: 66px; height: 66px; right: 6px; opacity: .88; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-hug .record-card, .theme-hug .action-card { transition: none; }
}

/* Shared navigation and integrated Heroes for Trip-scoped child pages. */
.theme-hug .trip-child-nav {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.theme-hug .trip-child-nav a {
  min-height: 38px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hug-border-strong);
  border-radius: 12px;
  color: #78434e;
  background: rgba(255, 251, 247, .9);
  box-shadow: none;
  font-size: .74rem;
  font-weight: 800;
}
.theme-hug .trip-child-nav a:hover { color: var(--hug-primary-dark); border-color: var(--hug-primary-strong); background: #fff; }

.theme-hug .trip-section-hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  min-height: 190px;
  margin: 0 0 26px;
  padding: 24px 210px 22px 24px;
  border: 2px solid var(--hug-border-strong);
  border-radius: 26px;
  background-image:
    linear-gradient(90deg, rgba(255,248,246,.94) 0%, rgba(255,248,246,.80) 38%, rgba(255,238,242,.20) 64%, rgba(255,238,242,0) 100%),
    url("../images/hug-mascots/hero-tokyo.png");
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: 100% 100%, auto 112%;
  box-shadow: 0 16px 34px rgba(184, 70, 94, .17), inset 0 1px rgba(255,255,255,.8);
}
.theme-hug .trip-section-hero h1 { margin-block: 4px 7px; color: var(--hug-text); text-shadow: 0 1px rgba(255,255,255,.8); }
.theme-hug .trip-section-hero > p { max-width: 540px; color: #76575c; }
.theme-hug .trip-section-hero .heading-actions,
.theme-hug .trip-section-hero .detail-actions { position: relative; z-index: 1; }
.theme-hug .payment-cards-hero, .theme-hug .booking-detail-hero, .theme-hug .place-detail-hero { min-height: 180px; }
.theme-hug .trip-section-hero .secondary-button {
  min-height: 43px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hug-border-strong);
  border-radius: 12px;
  color: #703d48;
  background: rgba(255, 251, 247, .88);
  font-weight: 800;
}
.theme-hug .trip-section-hero .secondary-button:hover { border-color: var(--hug-primary-strong); background: #fff; }
.theme-hug .trip-section-hero .secondary-button:focus-visible { outline-color: var(--hug-primary-strong); }
.theme-hug .place-information-card {
  max-width: 760px;
  margin-top: 0;
  border: 2px solid var(--hug-border);
  border-radius: 21px;
  background: linear-gradient(135deg, var(--hug-surface), #fff7f1);
  box-shadow: 0 10px 24px rgba(163, 70, 88, .10);
}
.theme-hug .place-information-card h2 { color: var(--hug-text); }
.theme-hug .place-information-card dt { color: var(--hug-primary-dark); font-weight: 850; }
.theme-hug .place-information-card dd { color: var(--hug-text); font-size: 1rem; }
.theme-hug .place-information-card .analysis-wait-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--hug-border); color: var(--hug-muted); }

/* Premium postcard treatment for the Trips/Home grid. */
.theme-hug .trips-page-heading { margin-bottom: 22px; }
.theme-hug .trips-page-heading h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.theme-hug .trips-page-heading .eyebrow::before { content: "♥ "; color: var(--hug-primary); }
.theme-hug .trip-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 360px));
  align-items: start;
  gap: 22px;
}
.theme-hug .trip-card {
  width: 100%;
  max-width: 360px;
  border: 2px solid var(--hug-border);
  border-radius: 23px;
  background: var(--hug-surface);
  box-shadow: 0 15px 32px rgba(173, 73, 94, .15), 0 3px 8px rgba(116, 62, 70, .06);
}
.theme-hug .trip-card:hover { border-color: var(--hug-border-strong); transform: translateY(-5px); box-shadow: 0 20px 38px rgba(173, 73, 94, .20); }
.theme-hug .trip-card-art {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1600 / 500;
  padding: 0;
  align-items: flex-start;
  background: var(--hug-bg-soft);
}
.theme-hug .trip-card-art span {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  max-width: 82%;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  color: #6f3946;
  background: rgba(255, 249, 245, .86);
  box-shadow: 0 3px 10px rgba(91, 42, 51, .09);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.theme-hug .trip-card-body { padding: 19px 20px 20px; }
.theme-hug .trip-card-body h2 { margin: 0 0 8px; color: var(--hug-text); font-size: 1.22rem; }
.theme-hug .trip-card-body .trip-dates { color: var(--hug-primary-dark); font-size: .76rem; letter-spacing: .02em; text-transform: none; }
.theme-hug .trip-card-body .trip-location { margin-top: 5px; color: var(--hug-muted); font-size: .82rem; }
.theme-hug .trip-card-body .text-link { margin-top: 16px; color: var(--hug-primary-dark); }

@media (max-width: 640px) {
  .theme-hug .trip-child-nav { gap: 7px; }
  .theme-hug .trip-child-nav a { min-height: 44px; padding-inline: 10px; }
  .theme-hug .trip-section-hero {
    min-height: 176px;
    padding: 18px 96px 18px 16px;
    border-radius: 22px;
    background-position: center, right center;
    background-size: 100% 100%, auto 106%;
  }
  .theme-hug .trip-section-hero .hug-heading .hug-icon { display: none; }
  .theme-hug .trip-section-hero .preparation-summary { padding: 12px; }
  .theme-hug .trip-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .theme-hug .trip-card { max-width: none; }
  .theme-hug .expense-day-group > summary { min-height: 62px; padding: 10px 12px; grid-template-columns: auto minmax(0, 1fr) 20px; gap: 8px; }
  .theme-hug .expense-day-totals { font-size: .72rem; }
  .theme-hug .expense-day-details { padding-inline: 12px; }
  .theme-hug .expense-detail-row { padding: 12px 1px; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; }
  .theme-hug .expense-detail-row > time,
  .theme-hug .expense-detail-description { grid-column: 1 / -1; }
  .theme-hug .expense-detail-description { display: grid; gap: 1px; }
  .theme-hug .expense-detail-payment { grid-column: 1; }
  .theme-hug .expense-detail-amount { grid-column: 2; grid-row: 3; }
  .theme-hug .expense-detail-row nav { grid-column: 1 / -1; padding-top: 3px; }
  .theme-hug .expense-detail-row nav a,
  .theme-hug .expense-detail-row nav button { min-height: 38px; padding: 7px 10px; border: 1px solid var(--hug-border); border-radius: 9px; background: #fff; }
}
