:root {
  --ink: #20201e;
  --muted: #706c64;
  --paper: #f8f2e8;
  --paper-strong: #fffaf1;
  --line: rgba(45, 39, 31, 0.12);
  --lacquer: #ba3d2c;
  --indigo: #273e6c;
  --moss: #55745b;
  --gold: #bb8431;
  --sky: #4b8197;
  --shadow: 0 20px 70px rgba(48, 37, 25, 0.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Noto Sans TC", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(186, 61, 44, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(75, 129, 151, 0.14), transparent 28rem),
    linear-gradient(120deg, #f4eadb 0%, #fbf6ed 46%, #edf2ea 100%);
}

body.sheet-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(12px + var(--safe-top)) 14px calc(96px + var(--safe-bottom));
}

.hero {
  position: relative;
  min-height: 310px;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid rgba(32, 32, 30, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(rgba(30, 29, 25, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 29, 25, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(239, 225, 203, 0.88));
  background-size: 38px 38px, 38px 38px, 100% 100%;
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  inset: auto -18px -28px auto;
  width: 210px;
  height: 210px;
  content: "";
  border: 34px solid rgba(186, 61, 44, 0.88);
  border-radius: 50%;
}

.hero::after {
  position: absolute;
  inset: 28px auto auto -44px;
  width: 150px;
  height: 190px;
  content: "";
  border: 2px solid rgba(39, 62, 108, 0.3);
  transform: rotate(-18deg);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 22px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--lacquer);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 8em;
  font-size: clamp(3.1rem, 18vw, 6.4rem);
  line-height: 0.95;
}

.hero__dates {
  max-width: 24rem;
  margin: 16px 0 18px;
  color: #46413a;
  font-weight: 700;
  line-height: 1.5;
}

.hero__chips,
.card-tags,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__chips span,
.tag {
  border: 1px solid rgba(32, 32, 30, 0.13);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.8);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.top-tabs {
  position: sticky;
  top: calc(8px + var(--safe-top));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.84);
  box-shadow: 0 14px 36px rgba(51, 43, 33, 0.12);
  backdrop-filter: blur(18px);
}

.status-banner,
.today-panel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 12px;
  border: 1px solid rgba(32, 32, 30, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.78);
  color: #474139;
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.status-banner svg,
.today-panel svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--moss);
}

.status-banner.is-offline {
  background: #f4d5d0;
  color: #6f2a22;
}

.status-banner.is-offline svg {
  color: #8f3024;
}

.today-panel {
  justify-content: space-between;
  align-items: stretch;
}

.today-panel__copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.today-panel__copy strong {
  display: block;
  color: var(--ink);
}

.today-panel__copy span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.today-panel .mini-button {
  flex: 0 0 auto;
  margin-top: 0;
}

.tab-button {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  font-weight: 900;
}

.tab-button svg {
  width: 18px;
  height: 18px;
}

.tab-button.is-active {
  background: var(--ink);
  color: var(--paper-strong);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.day-strip {
  display: flex;
  gap: 8px;
  margin: 0 -14px 14px;
  padding: 4px 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.68);
  color: var(--ink);
  padding: 9px 12px;
  font-weight: 900;
  text-decoration: none;
}

.day-pill.is-today {
  background: var(--ink);
  color: var(--paper-strong);
}

.day-pill.is-today small {
  color: rgba(255, 250, 241, 0.72);
}

.day-pill small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.day-card,
.guide-card,
.tool-card {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.86);
  box-shadow: 0 18px 50px rgba(52, 43, 31, 0.1);
  overflow: hidden;
}

.day-card.is-today {
  border-color: rgba(186, 61, 44, 0.5);
  box-shadow: 0 18px 54px rgba(186, 61, 44, 0.14);
}

.day-head {
  padding: 18px 18px 14px;
  background:
    linear-gradient(90deg, rgba(39, 62, 108, 0.1), rgba(85, 116, 91, 0.1)),
    rgba(255, 250, 241, 0.7);
}

.day-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.day-title-row h2 {
  font-size: 1.35rem;
}

.route {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.weather {
  min-width: 140px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
  text-align: right;
}

.weather-current {
  display: grid;
  gap: 2px;
}

.weather strong {
  display: block;
  font-size: 1.3rem;
}

.weather span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.weather-hours {
  display: flex;
  gap: 7px;
  max-width: 210px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.weather-hours span {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 42px;
  color: var(--ink);
  font-size: 0.72rem;
}

.weather-hours small {
  color: var(--muted);
  font-size: 0.64rem;
}

.weather-hours svg {
  width: 15px;
  height: 15px;
  color: var(--lacquer);
}

.timeline {
  padding: 6px 12px 14px;
}

.day-insights {
  display: grid;
  gap: 8px;
  padding: 12px 12px 2px;
}

.insight-card {
  border: 1px solid rgba(32, 32, 30, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  padding: 11px 12px;
}

.insight-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lacquer);
  font-size: 0.76rem;
  font-weight: 900;
}

.insight-card svg {
  width: 15px;
  height: 15px;
}

.insight-card p {
  margin: 5px 0 0;
  color: #514c44;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

.route-map {
  margin: 12px;
  border: 1px solid rgba(32, 32, 30, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.route-map__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 8px;
}

.route-map__head h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.route-map__head > span {
  border-radius: 999px;
  background: #e7f0e7;
  color: #315f3a;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.route-map__canvas {
  position: relative;
  height: 168px;
  margin: 0 12px;
  border: 1px solid rgba(32, 32, 30, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(30deg, transparent 46%, rgba(52, 83, 109, 0.16) 47%, transparent 49%),
    linear-gradient(150deg, transparent 42%, rgba(108, 140, 89, 0.14) 43%, transparent 46%),
    linear-gradient(90deg, rgba(32, 32, 30, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 32, 30, 0.06) 1px, transparent 1px),
    #f2efe6;
  background-size:
    100% 100%,
    100% 100%,
    34px 34px,
    34px 34px;
}

.route-map__path {
  position: absolute;
  inset: 28px 48px 34px 38px;
  border-left: 4px dashed rgba(186, 61, 44, 0.55);
  border-bottom: 4px dashed rgba(186, 61, 44, 0.55);
  border-radius: 0 0 0 44px;
  transform: skewX(-12deg);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fffaf1;
  border-radius: 50%;
  background: var(--lacquer);
  color: #fffaf1;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(52, 43, 31, 0.22);
}

.map-pin small {
  position: absolute;
  top: 27px;
  left: 50%;
  width: max-content;
  max-width: 110px;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: center;
}

.pin-1 {
  left: 10%;
  top: 18%;
}

.pin-2 {
  left: 31%;
  top: 56%;
}

.pin-3 {
  left: 49%;
  top: 32%;
}

.pin-4 {
  left: 65%;
  top: 62%;
}

.pin-5 {
  left: 78%;
  top: 24%;
}

.pin-6 {
  left: 86%;
  top: 58%;
}

.route-map__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 12px 12px;
  border-radius: 14px;
  background: #fffaf1;
  color: var(--indigo);
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.stop-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr 62px;
  gap: 10px;
  margin: 9px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  padding: 12px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.stop-card:focus-visible,
.stop-card:hover {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(52, 43, 31, 0.12);
}

.stop-time {
  color: var(--indigo);
  font-weight: 900;
}

.stop-main {
  min-width: 0;
}

.stop-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.stop-type svg {
  width: 14px;
  height: 14px;
}

.stop-name {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.stop-note {
  margin: 7px 0 0;
  color: #565149;
  font-size: 0.86rem;
  line-height: 1.5;
}

.stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 10px;
  border: 1px solid rgba(32, 32, 30, 0.13);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-link svg {
  width: 15px;
  height: 15px;
}

.stop-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: right;
}

.stop-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.stop-meta svg {
  width: 13px;
  height: 13px;
}

.nav-link,
.mini-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf1;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.nav-link svg,
.mini-button svg,
.icon-button svg {
  width: 15px;
  height: 15px;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  margin-top: 0;
  border-radius: 50%;
  padding: 0;
}

.tag.food {
  background: #f7d9c7;
  color: #78311e;
}

.tag.menu {
  background: #f8e6a9;
  color: #6c4b10;
}

.tag.gift {
  background: #d7eadb;
  color: #315f3a;
}

.tag.reserve {
  background: #dce6fa;
  color: #274676;
}

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

.stop-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.78);
  padding: 12px;
}

.stop-detail-grid span,
.stop-detail-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.stop-detail-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 1.05rem;
}

.point-box .info-row {
  margin-top: 8px;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag.warn {
  background: #f4d5d0;
  color: #7c241c;
}

.section-heading {
  padding: 12px 4px 14px;
}

.section-heading h2 {
  font-size: 1.45rem;
}

.guide-card,
.tool-card {
  padding: 16px;
}

.guide-card h3,
.tool-card h3 {
  font-size: 1.08rem;
}

.guide-card p,
.tool-card p {
  color: #514c44;
  line-height: 1.58;
}

.guide-detail-button {
  width: 100%;
}

.guide-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.region-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--lacquer);
  color: #fff;
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(24, 22, 18, 0.36);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 200ms ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.guide-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 21;
  display: flex;
  max-height: min(86vh, 820px);
  flex-direction: column;
  border: 1px solid rgba(32, 32, 30, 0.16);
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(248, 242, 232, 0.98)),
    var(--paper);
  box-shadow: 0 -24px 70px rgba(32, 24, 18, 0.28);
  transform: translateY(104%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guide-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 46px;
  height: 5px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: rgba(32, 32, 30, 0.18);
}

.guide-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.guide-sheet__header h2 {
  font-size: 1.35rem;
}

.guide-sheet__body {
  overflow-y: auto;
  padding: 16px 18px calc(22px + var(--safe-bottom));
}

.guide-sheet__intro {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  padding: 12px;
}

.guide-sheet__intro p,
.sheet-section p {
  margin: 0;
  color: #4f493f;
  font-weight: 700;
  line-height: 1.68;
}

.sheet-section {
  margin-top: 16px;
}

.sheet-section h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-family: "Zen Kaku Gothic New", "Noto Sans TC", sans-serif;
  font-size: 0.96rem;
}

.sheet-section h3 svg {
  width: 17px;
  height: 17px;
  color: var(--lacquer);
}

.sheet-section p + p {
  margin-top: 10px;
}

.sheet-steps,
.sheet-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
  color: #4f493f;
  font-weight: 800;
  line-height: 1.55;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.checklist-card {
  background:
    linear-gradient(135deg, rgba(85, 116, 91, 0.12), rgba(187, 132, 49, 0.1)),
    rgba(255, 250, 241, 0.9);
}

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

.progress-ring {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--moss) var(--progress), rgba(32, 32, 30, 0.1) 0);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.progress-ring span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-strong);
}

.checklist {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.check-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(32, 32, 30, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
}

.check-item input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--moss);
}

.check-item strong {
  display: block;
  line-height: 1.35;
}

.check-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.check-item:has(input:checked) {
  border-color: rgba(85, 116, 91, 0.34);
  background: rgba(215, 234, 219, 0.54);
}

.check-item:has(input:checked) strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(85, 116, 91, 0.5);
}

.shopping-card {
  background:
    linear-gradient(135deg, rgba(187, 132, 49, 0.13), rgba(186, 61, 44, 0.08)),
    rgba(255, 250, 241, 0.9);
}

.info-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.info-row span:first-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.budget-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.reservation-card .budget-table {
  min-width: 620px;
}

.budget-table th,
.budget-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

.budget-table th {
  color: var(--muted);
  font-size: 0.78rem;
}

.budget-table input {
  width: 100%;
  border: 1px solid rgba(32, 32, 30, 0.13);
  border-radius: 10px;
  background: #fffaf1;
  padding: 8px;
}

.budget-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.person-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.72);
  padding: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.person-total strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.budget-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.budget-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 86px;
  gap: 9px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
}

.budget-entry__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  align-self: start;
  border-radius: 14px;
  background: #23302f;
  color: #fffaf1;
}

.budget-entry__icon svg {
  width: 19px;
  height: 19px;
}

.budget-entry label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.budget-entry label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.budget-entry input,
.budget-entry select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(32, 32, 30, 0.13);
  border-radius: 12px;
  background: #fffaf1;
  padding: 8px 9px;
}

.budget-entry select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 17px,
    calc(100% - 10px) 17px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.budget-entry__item,
.budget-entry__memo {
  grid-column: 2 / -1;
}

.budget-entry__delete {
  width: 40px;
  height: 40px;
  align-self: end;
  border-color: rgba(181, 70, 45, 0.22);
  color: #a33d2d;
  background: #fff5ec;
}

.reservation-card input {
  min-width: 120px;
}

.reservation-card td:nth-child(3) input {
  min-width: 220px;
}

.total-box {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  border-radius: 14px;
  background: var(--ink);
  color: #fffaf1;
  padding: 12px;
  font-weight: 900;
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: calc(18px + var(--safe-top));
  }

  .guide-grid,
  .tool-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tool-card.budget,
  .tool-card.checklist-card,
  .tool-card.reservation-card,
  .tool-card.shopping-card {
    grid-column: 1 / -1;
  }

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

  .guide-sheet {
    right: calc((100vw - min(100vw, 760px)) / 2);
    left: calc((100vw - min(100vw, 760px)) / 2);
    border-radius: 28px;
    bottom: 18px;
  }

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

@media (max-width: 430px) {
  .today-panel {
    flex-direction: column;
  }

  .today-panel .mini-button {
    width: 100%;
  }

  .day-title-row {
    flex-direction: column;
  }

  .weather {
    width: 100%;
    text-align: left;
  }

  .weather-hours {
    max-width: 100%;
  }

  .stop-card {
    grid-template-columns: 48px 1fr;
  }

  .stop-meta {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
    text-align: left;
  }

  .stop-detail-grid {
    grid-template-columns: 1fr;
  }
}
