:root {
  --primary: #cc785c;
  --primary-active: #a9583e;
  --ink: #141413;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-dark: #383632;
  --surface-dark-elevated: #4a4741;
  --on-dark: #faf9f5;
  --on-dark-soft: #ded8ce;
  --teal: #5db8a6;
  --amber: #e8a55a;
  --success: #5db872;
  --error: #c64545;
  --frost: rgba(250, 249, 245, 0.82);
  --tile-radius: 18px;
  --pill: 9999px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  background: var(--surface-soft);
  scroll-behavior: smooth;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  touch-action: manipulation;
  overscroll-behavior: none;
}

button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background: var(--surface-soft);
}

.phone-frame {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  padding: max(10px, env(safe-area-inset-top)) 12px calc(104px + env(safe-area-inset-bottom));
  background: var(--surface-soft);
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin: -10px -12px 8px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: var(--frost);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-lockup img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.brand-lockup p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.brand-lockup h1 {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.icon-button,
.drag-handle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--surface-card) 72%, transparent);
  color: var(--ink);
  transition: transform 120ms ease, background 160ms ease;
}

button:active,
a:active,
.icon-upload:active {
  transform: scale(0.96);
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.alert-stack {
  display: grid;
  gap: 8px;
  margin: 0 -12px 8px;
}

.top-alert {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 0;
  animation: riseIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.top-alert strong {
  display: block;
  margin-bottom: 3px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
}

.top-alert p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.47;
}

.top-alert.amber {
  background: #fff4dc;
  border-block: 1px solid #f4cf8a;
}

.top-alert.dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.top-alert.danger {
  background: #fff1ef;
  border-block: 1px solid #e9afa5;
  color: #761f19;
}

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

.alert-actions a,
.small-action,
.primary-action,
.item-actions a,
.item-actions button,
.route-card a,
.reservation-card a,
.icon-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--pill);
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 120ms ease, background 160ms ease;
}

.alert-actions a {
  background: var(--canvas);
  color: var(--ink);
}

.brief-card,
.weather-panel,
.overview-panel,
.timeline-panel,
.route-panel,
.reservation-panel,
.notes-panel {
  margin: 0 -12px 8px;
  padding: 24px 18px;
  border: 0;
  border-radius: 0;
  background: var(--surface-soft);
}

.brief-card {
  display: grid;
  gap: 16px;
  min-height: 0;
  align-content: center;
  background: var(--surface-soft);
  text-align: left;
}

.timeline-panel .brief-card {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: var(--tile-radius);
  background: color-mix(in srgb, var(--surface-card) 46%, var(--surface-soft));
}

.brief-preview .brief-hero {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
}

.brief-preview .weather-glyph {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 24px;
}

.brief-preview .phase-strip {
  gap: 6px;
}

.brief-preview .phase-tile {
  min-height: 68px;
  padding-block: 7px;
}

.brief-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.weather-glyph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--canvas);
  font-size: 30px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.section-kicker,
.panel-title span,
.weather-day span,
.weather-date-button span,
.schedule-date-button span,
.hour-tile span,
.hour-tile em,
.brief-outfit span,
.phase-tile span,
.phase-tile em,
.digest-group span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.28;
}

.brief-card h2,
.panel-title h2 {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(23px, 6vw, 29px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.brief-card p:not(.section-kicker) {
  max-width: none;
  margin: 8px 0 0;
  color: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.brief-outfit {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: var(--tile-radius);
  background: var(--canvas);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-align: left;
}

.brief-outfit strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.34;
}

.brief-outfit span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--pill);
  background: var(--surface-dark);
  color: var(--on-dark);
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.phase-tile {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 82px;
  padding: 9px 4px;
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-align: center;
}

.phase-tile b {
  font-size: 20px;
  line-height: 1;
}

.phase-tile strong {
  font-size: 17px;
  font-weight: 650;
  line-height: 1;
}

.phase-tile em {
  color: var(--primary);
  font-style: normal;
}

.day-digest {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.digest-group {
  display: grid;
  gap: 7px;
}

.digest-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.digest-group em {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 13px;
  background: var(--canvas);
  color: var(--body);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.digest-group em.reserved {
  background: color-mix(in srgb, var(--amber) 25%, var(--canvas));
  color: var(--ink);
}

.brief-card > .day-digest:last-child {
  margin-bottom: 0;
}

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

.brief-link-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 18px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.brief-travel-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-card) 76%, var(--canvas));
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.brief-travel-card > strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.16;
}

.brief-link-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.brief-link-card p {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.35;
}

.brief-link-card.dark {
  background: color-mix(in srgb, var(--surface-dark) 13%, var(--canvas));
}

.brief-link-card.amber {
  background: #fff4dc;
}

.brief-link-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 6px;
}

.brief-link-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.weather-date-button,
.schedule-date-button {
  min-height: 44px;
  padding: 8px 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  background: var(--canvas);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  white-space: normal;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.weather-date-button.active,
.schedule-date-button.active {
  border-color: transparent;
  background: var(--surface-dark);
  color: var(--on-dark);
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.compact-title {
  margin-bottom: 16px;
}

.weather-panel,
.timeline-panel,
.notes-panel {
  background: var(--surface-soft);
}

.overview-panel,
.route-panel {
  background: var(--surface-soft);
}

.weather-date-row,
.schedule-date-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.weather-date-button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 94px;
  padding: 11px 8px;
  border-radius: 18px;
  text-align: center;
}

.weather-date-button strong {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: currentColor;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
}

.weather-date-button b {
  font-size: 24px;
  line-height: 1;
}

.weather-date-button em {
  color: var(--primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.weather-date-button.active em {
  color: var(--amber);
}

.schedule-date-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.schedule-date-button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 56px;
  border-radius: var(--pill);
  text-align: center;
}

.schedule-date-button small {
  color: currentColor;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.78;
  line-height: 1.1;
}

.hourly-strip {
  display: flex;
  gap: 10px;
  margin: 0 -20px;
  padding: 0 20px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.hourly-strip::-webkit-scrollbar {
  display: none;
}

.hour-tile {
  display: grid;
  justify-items: center;
  flex: 0 0 76px;
  gap: 2px;
  min-height: 104px;
  padding: 12px 8px;
  border-radius: var(--tile-radius);
  background: var(--surface-soft);
  scroll-snap-align: start;
}

.hour-tile strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
}

.hour-tile b {
  font-size: 24px;
  line-height: 1;
}

.hour-tile em {
  color: var(--primary);
  font-style: normal;
}

.overview-grid {
  display: grid;
  gap: 12px;
}

.overview-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 104px;
  padding: 19px;
  border: 1px solid var(--hairline);
  border-radius: var(--tile-radius);
  background: var(--canvas);
  color: var(--ink);
  text-align: left;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease;
}

.overview-card.active {
  border-color: transparent;
  background: var(--surface-dark);
  color: var(--on-dark);
}

.overview-card span,
.overview-card em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.overview-card.active span,
.overview-card.active em {
  color: var(--on-dark-soft);
}

.overview-card strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
}

.small-action {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
}

.small-action.muted {
  background: var(--surface-card);
  color: var(--ink);
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px minmax(44px, 58px) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--tile-radius);
  background: var(--canvas);
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease;
}

.timeline-item.dragging {
  transform: scale(1.018);
  border-color: var(--primary);
  background: var(--surface-soft);
}

.drag-handle {
  background: var(--surface-soft);
}

.tile-meal {
  background: color-mix(in srgb, var(--primary) 15%, var(--canvas));
}

.tile-other {
  background: color-mix(in srgb, var(--teal) 12%, var(--canvas));
}

.tile-lodging {
  background: color-mix(in srgb, var(--success) 13%, var(--canvas));
}

.status-planned_same_day_check,
.status-planned_flexible {
  border-color: color-mix(in srgb, var(--amber) 38%, var(--hairline));
}

.time-block {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  word-break: keep-all;
}

.item-body {
  min-width: 0;
}

.item-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.item-head h3 {
  flex: 1 1 150px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.27;
}

.item-head span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--pill);
  background: var(--canvas);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.item-body p,
.route-card p,
.reservation-card p,
.empty-text,
.note-card p {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.42;
}

.place-line {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.place-line strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.item-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  margin-top: 9px;
}

.item-actions a,
.item-actions button,
.route-card a,
.reservation-card a {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
}

.item-actions button {
  flex: 0 0 40px;
  padding: 0;
}

.add-form,
.note-composer {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: var(--tile-radius);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hairline) 72%, transparent);
}

.add-form input,
.add-form textarea,
.note-composer textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 15px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  outline: none;
}

.add-form input:focus,
.add-form textarea:focus,
.note-composer textarea:focus {
  border-color: var(--primary);
}

.add-form textarea,
.note-composer textarea {
  min-height: 94px;
  resize: vertical;
}

.primary-action {
  width: 100%;
  min-height: 48px;
  background: var(--primary);
}

.route-list,
.note-list {
  display: grid;
  gap: 12px;
}

.route-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--tile-radius);
  background: var(--canvas);
}

.route-card strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

.route-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.route-card dl div {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.route-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.route-card dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
}

.route-card a {
  border-color: transparent;
  background: var(--surface-dark);
  color: var(--on-dark);
}

.reservation-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  min-height: 124px;
  padding: 18px;
  border-radius: var(--tile-radius);
  background: var(--surface-dark);
  color: var(--on-dark);
}

.reservation-card span {
  color: var(--amber);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.reservation-card strong {
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 600;
}

.reservation-card p {
  color: var(--on-dark-soft);
}

.reservation-card a {
  min-width: 44px;
  padding: 0;
  border-color: transparent;
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

.memo-tools {
  display: grid;
  gap: 12px;
}

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

.expiry-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  background: var(--canvas);
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
}

.expiry-control input {
  accent-color: var(--primary);
  margin-right: 6px;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.icon-upload {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.preview-strip img,
.note-card img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

.preview-strip button {
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  background: var(--canvas);
}

.note-card {
  padding: 18px;
  border-radius: var(--tile-radius);
  background: var(--surface-card);
  animation: riseIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.note-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.note-card .note-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 0;
}

.note-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.note-card button {
  min-width: 44px;
  min-height: 38px;
  border: 0;
  border-radius: var(--pill);
  background: var(--canvas);
  color: var(--ink);
}

.trash-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.trash-box h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.trash-box.hidden {
  display: none;
}

.note-card.deleted {
  opacity: 0.78;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: min(calc(100vw - 24px), 406px);
  min-height: 64px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
  border-radius: 28px;
  background: var(--frost);
  backdrop-filter: saturate(180%) blur(22px);
  transform: translateX(-50%);
}

.bottom-tabs button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease;
}

.bottom-tabs button:active {
  background: var(--surface-card);
  color: var(--ink);
}

.bottom-tabs button.active {
  background: var(--surface-card);
  color: var(--ink);
}

.bottom-tabs button.active span {
  display: none;
}

.bottom-tabs button.active svg {
  width: 21px;
  height: 21px;
}

.bottom-tabs svg {
  width: 19px;
  height: 19px;
}

.enter {
  animation: riseIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 400px) {
  .phone-frame {
    padding-inline: 10px;
  }

  .topbar,
  .alert-stack,
  .brief-card,
  .weather-panel,
  .timeline-panel,
  .route-panel,
  .reservation-panel,
  .notes-panel,
  .date-tabs {
    margin-inline: -10px;
  }

  .timeline-item {
    grid-template-columns: 38px minmax(34px, 48px) minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .brief-card h2,
  .panel-title h2 {
    font-size: 24px;
  }

  .weather-date-row {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: 7px;
  }

  .weather-date-button {
    min-height: 90px;
    padding-inline: 6px;
  }

  .route-card dl {
    grid-template-columns: 1fr;
  }

  .reservation-card {
    grid-template-columns: 1fr 44px;
  }

  .reservation-card span {
    grid-column: 1 / -1;
  }
}

@media (min-width: 700px) {
  body {
    padding: 0;
  }

  .phone-frame {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}
