/* ============================================================
   PLAN GRID STYLES — SortableJS drag-and-drop planner
   ============================================================ */

/* ── Plan Layout ───────────────────────────────────────────── */
.plan-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: calc(var(--nav-height) + var(--demo-banner-h));
  overflow: hidden;
}

.plan-topbar {
  position: relative;
  z-index: 10;
  padding: 0.875rem 1.5rem;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--earth-200);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-topbar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest-900);
  white-space: nowrap;
}
.plan-topbar-subtitle {
  font-size: 0.8125rem;
  color: var(--ink-400);
  white-space: nowrap;
}
.plan-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

/* Transport tips ticker */
.tips-ticker {
  background: var(--forest-800);
  color: var(--earth-100);
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}
.tips-ticker-icon { font-size: 0.9rem; flex-shrink: 0; }
.tips-ticker-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  transition: opacity var(--duration-mid) var(--ease-smooth);
}

/* Live sync indicator */
.sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--ink-400);
  white-space: nowrap;
}
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest-400);
  animation: pulse 2s infinite;
}
.sync-dot.syncing { background: var(--amber-400); animation: pulse 0.6s infinite; }
.sync-dot.error   { background: var(--terra-500); animation: none; }

/* ── Main Plan Body ────────────────────────────────────────── */
.plan-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ── Unscheduled Panel ─────────────────────────────────────── */
.unscheduled-panel {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--earth-200);
  background: var(--white);
  overflow: hidden;
}
.unscheduled-header {
  padding: 1rem 1.125rem 0.75rem;
  border-bottom: 1px solid var(--earth-150);
}
.unscheduled-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.unscheduled-count {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 2rem;
  background: var(--earth-100);
  color: var(--ink-500);
  font-size: 0.7rem;
  font-weight: 600;
}
/* Mobile-only collapse affordance — hidden on desktop, shown in the
   max-width:768px block below (desktop panel stays always-expanded). */
.unsched-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-400);
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.unsched-toggle-btn:hover { background: var(--forest-100); color: var(--forest-700); }
.unscheduled-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.625rem;
  min-height: 120px;
}
.unscheduled-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-300);
}
.unscheduled-empty .empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.4s var(--ease-out);
}
.unscheduled-empty p {
  font-size: 0.8125rem;
  color: var(--ink-300);
}

/* Scrollbar styling */
.unscheduled-list::-webkit-scrollbar { width: 4px; }
.unscheduled-list::-webkit-scrollbar-track { background: transparent; }
.unscheduled-list::-webkit-scrollbar-thumb { background: var(--earth-200); border-radius: 2px; }

/* ── Day Columns Area ──────────────────────────────────────── */
.days-area {
  flex: 1;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1rem 1rem 1rem 0;
  scroll-padding-left: 1rem;
}
/* Custom scrollbar */
.days-area::-webkit-scrollbar { height: 6px; }
.days-area::-webkit-scrollbar-track { background: var(--earth-100); border-radius: 3px; }
.days-area::-webkit-scrollbar-thumb { background: var(--earth-300); border-radius: 3px; }

/* ── Day Column ────────────────────────────────────────────── */
.day-column {
  flex-shrink: 0;
  width: 268px;
  display: flex;
  flex-direction: column;
  background: var(--earth-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--earth-200);
  margin-left: 1rem;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}
.day-column.drag-over {
  border-color: var(--forest-400);
  background: var(--forest-100);
  box-shadow: 0 0 0 2px rgba(74, 136, 88, 0.2);
}

.day-header {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--earth-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
}
.day-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-900);
  min-width: 0;
  flex: 1;
  outline: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--duration-fast);
}
.day-label:focus { border-bottom-color: var(--forest-400); }
.day-label:empty::before { content: attr(data-placeholder); color: var(--ink-300); }
.day-date {
  font-size: 0.72rem;
  color: var(--ink-300);
  white-space: nowrap;
}
.weather-badge {
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--earth-100);
  color: var(--ink-400);
}
.weather-badge.severe {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
}
.df-weather { font-size: 0.8rem; }
.weather-changed-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  margin: 0 0 0.75rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  color: #92400e;
  font-size: 0.82rem;
}
.weather-changed-banner.hidden { display: none; }
.weather-changed-banner button {
  background: none; border: none; color: inherit; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.day-item-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--earth-100);
  color: var(--ink-400);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.day-delete-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-300);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast), color var(--duration-fast);
  flex-shrink: 0;
}
.day-delete-btn:hover { background: var(--terra-100); color: var(--terra-500); }

.day-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  min-height: 160px;
}
.day-list::-webkit-scrollbar { width: 4px; }
.day-list::-webkit-scrollbar-thumb { background: var(--earth-200); border-radius: 2px; }

.day-empty-zone {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--earth-200);
  border-radius: var(--radius-md);
  margin: 0.5rem;
  color: var(--ink-300);
  font-size: 0.8125rem;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.day-column.drag-over .day-empty-zone {
  border-color: var(--forest-400);
  color: var(--forest-500);
}

/* ── Trip Item Card ────────────────────────────────────────── */
.trip-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--earth-150);
  margin-bottom: 0.375rem;
  cursor: default;
  transition:
    background var(--duration-fast),
    box-shadow var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast);
  position: relative;
  overflow: visible;
}
.trip-item:last-child { margin-bottom: 0; }
.trip-item:hover { border-color: var(--earth-200); box-shadow: var(--shadow-xs); }

.drag-handle {
  color: var(--ink-200);
  font-size: 1rem;
  cursor: grab;
  flex-shrink: 0;
  line-height: 1;
  padding: 2px;
  transition: color var(--duration-fast);
  touch-action: none;
}
.drag-handle:hover { color: var(--ink-400); }
.drag-handle:active { cursor: grabbing; }

.trip-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 0.55rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--earth-100);
}

.trip-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trip-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.25;
  /* show up to two lines of the name instead of a single truncated letter */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.trip-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: center;
}
.trip-item-duration {
  font-size: 0.7rem;
  color: var(--ink-400);
}
.trip-item-type-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1.5px 6px;
  border-radius: 3px;
  background: var(--earth-100);
  color: var(--stone-600);
  text-transform: uppercase;
}
.trip-item-type-badge.hotel {
  background: var(--forest-100);
  color: var(--forest-700);
}

/* Compact 2×2 button grid pinned to the right, so the name + tag get the room */
.trip-item-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  flex-shrink: 0;
  align-self: center;
}
.item-action-btn {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-300);
  font-size: 0.72rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.item-action-btn:hover { background: var(--earth-100); color: var(--ink-600); }
.item-action-btn.remove:hover { background: var(--terra-100); color: var(--terra-500); }
/* Monochrome circled-"i" info affordance (matches the theme, no blue emoji) */
.item-action-btn.info-btn {
  font-family: var(--font-display, Georgia, serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.74rem;
}
.item-action-btn.info-btn::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border: 1.3px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}
.item-action-btn.info-btn { position: relative; }
.item-action-btn.info-btn:hover { background: var(--forest-100); color: var(--forest-700); }

/* ── Leg connector chip (board) ───────────────────────────────
   Slim pill between consecutive tiles; click opens the shared
   .df-mode-picker/.df-mode-btn segmented control (styles in plan.html). */
.leg-chip {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0;
  position: relative;
}
.leg-chip-btn {
  border: 1px solid var(--earth-150);
  background: var(--earth-50);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  color: var(--ink-400);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.leg-chip-btn:hover { background: var(--forest-100); border-color: var(--forest-200); color: var(--forest-700); }
.leg-chip-picker {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(22,40,25,0.18));
  padding: 4px;
  z-index: 20;
}

/* Notes popover */
.notes-popover {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--white);
  border: 1.5px solid var(--earth-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  animation: fadeUp 0.15s var(--ease-out);
}
.notes-textarea {
  width: 100%;
  height: 72px;
  resize: none;
  border: 1.5px solid var(--earth-200);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.625rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-700);
  outline: none;
  background: var(--earth-50);
}
.notes-textarea:focus { border-color: var(--forest-400); }

/* SortableJS state classes */
.item-ghost {
  opacity: 0.4;
  background: var(--forest-100) !important;
  border-color: var(--forest-300) !important;
}
.item-chosen {
  box-shadow: var(--shadow-lg) !important;
  z-index: 20;
}
.item-drag {
  opacity: 0 !important;
}

/* ── Add Day Button ────────────────────────────────────────── */
.add-day-col {
  flex-shrink: 0;
  width: 200px;
  margin-left: 1rem;
  display: flex;
  align-items: flex-start;
  padding-top: 1rem;
}
.add-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 120px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--earth-300);
  background: transparent;
  cursor: pointer;
  color: var(--ink-300);
  font-size: 0.8125rem;
  font-weight: 500;
  transition:
    border-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth),
    background var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-spring);
}
.add-day-btn:hover {
  border-color: var(--forest-400);
  color: var(--forest-600);
  background: var(--forest-100);
  transform: translateY(-2px);
}
.add-day-icon {
  font-size: 1.75rem;
  line-height: 1;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.add-day-btn:hover .add-day-icon { transform: scale(1.2) rotate(90deg); }

/* ── Floating quick-look card (hover / ℹ️ button) ───────────── */
/* Container box styling is also set inline in plan.html so it renders
   correctly even if this stylesheet is cached stale — keep them in sync. */
#tile-popover { -webkit-font-smoothing: antialiased; }

.tpop-photo-wrap { position: relative; }
.tpop-photo {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
  background: var(--earth-100);
}
/* Placeholder strip for flights / rentals / notes / photoless items —
   a soft cream band with the emoji, never a solid color block */
.tpop-strip {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--earth-50), var(--earth-100));
  border-bottom: 1px solid var(--earth-150);
}
.tpop-strip-emoji { font-size: 1.9rem; line-height: 1; }
.tpop-chip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 2rem;
  background: rgba(250, 246, 240, 0.92);
  color: var(--forest-700);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.tpop-chip.solid { position: static; background: var(--forest-100); }

.tpop-body { padding: 0.8rem 0.95rem 0.95rem; }
.tpop-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-900);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.tpop-stars { color: #d99a2b; font-size: 0.78rem; margin-bottom: 0.35rem; }
.tpop-desc {
  font-size: 0.8125rem;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpop-match { font-size: 0.75rem; color: var(--forest-600); font-style: italic; margin-bottom: 0.5rem; }
.tpop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  font-size: 0.74rem;
  color: var(--ink-500);
}
.tpop-meta span { white-space: nowrap; }
.tpop-note {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--terra-600);
  font-style: italic;
}
.tpop-travel {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--earth-200);
  font-size: 0.74rem;
  color: var(--forest-700);
}

/* Pinned-popover action footer (Book/Reserve/Search + Website/Map) —
   pinned state only, never shown on the hover popover. */
.tpop-footer {
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--earth-150);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tpop-book-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 2rem;
  background: var(--terra-500);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tpop-book-btn:hover { background: var(--terra-600); transform: translateY(-1px); }
.tpop-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 2rem;
  background: transparent;
  color: var(--forest-700);
  border: 1.5px solid var(--earth-200);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tpop-link:hover { background: var(--forest-100); transform: translateY(-1px); }

/* ── Extra tile badges ──────────────────────────────────────── */
.trip-item-type-badge.note   { background: #fdf3d8; color: #8a6d1d; }
.trip-item-type-badge.rental { background: #e3ecf7; color: #2c5d8f; }
.trip-item-type-badge.flight { background: #e8e3f7; color: #5b4a9e; }

/* ── Day header expand button ───────────────────────────────── */
.day-expand-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-300);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast), color var(--duration-fast);
  flex-shrink: 0;
}
.day-expand-btn:hover { background: var(--forest-100); color: var(--forest-700); }

/* ── Day focus view (arrange one day with full-size cards) ──── */
#day-focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(22, 40, 25, 0.5);
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 1.25rem;
}
#day-focus-overlay.open { display: flex; }
#day-focus {
  background: var(--earth-50);
  border-radius: var(--radius-lg);
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(22, 40, 25, 0.4);
}
.df-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--forest-800);
  color: white;
}
.df-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.df-date { opacity: 0.7; font-size: 0.85rem; flex: 1; }
.df-nav-btn, .df-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.df-nav-btn:hover, .df-close:hover { background: rgba(255, 255, 255, 0.25); }
.df-nav-btn:disabled { opacity: 0.35; cursor: default; }
.df-hint { padding: 0.5rem 1.25rem; font-size: 0.75rem; color: var(--ink-400); border-bottom: 1px solid var(--earth-200); background: var(--white); }
.df-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }
.df-anchor { font-size: 0.8125rem; color: var(--ink-400); padding: 0.25rem 0 0.625rem; }
.df-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
}
.df-card .df-drag { cursor: grab; color: var(--ink-200); font-size: 1.1rem; align-self: center; touch-action: none; }
.df-thumb {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--earth-100);
}
.df-info { flex: 1; min-width: 0; }
.df-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--forest-900); margin-bottom: 0.2rem; }
.df-desc { font-size: 0.8125rem; color: var(--ink-500); line-height: 1.45; margin-bottom: 0.375rem; }
.df-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--ink-400); margin-bottom: 0.375rem; }
.df-notes {
  width: 100%;
  border: 1px solid var(--earth-150);
  border-radius: var(--radius-sm);
  background: var(--earth-50);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-600, #444);
  padding: 0.375rem 0.5rem;
  resize: vertical;
  min-height: 30px;
  outline: none;
}
.df-notes:focus { border-color: var(--forest-400); background: var(--white); }
.df-actions { display: flex; flex-direction: column; gap: 4px; align-items: center; flex-shrink: 0; }
.df-move-select {
  margin-top: 2px;
  font-size: 1rem; /* ≥16px or iOS zooms on focus */
  padding: 2px 4px;
  border: 1px solid var(--earth-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-500);
  max-width: 92px;
  cursor: pointer;
}
.df-travel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0 0.375rem 1.5rem;
  font-size: 0.75rem;
  color: var(--ink-300);
}
.df-empty {
  text-align: center;
  color: var(--ink-300);
  padding: 3rem 1rem;
  border: 2px dashed var(--earth-200);
  border-radius: var(--radius-lg);
}

/* ── Mobile Plan ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .plan-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
  }
  .plan-topbar-title {
    font-size: 1.1rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .plan-topbar-subtitle { display: none; }
  .plan-topbar-actions {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .plan-topbar-actions .btn {
    flex-shrink: 0;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }

  .plan-body { flex-direction: column; }
  .unscheduled-panel {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--earth-200);
    flex-direction: column;
  }
  .unscheduled-header {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .unsched-toggle-btn { display: flex; }
  .unscheduled-panel.collapsed .unscheduled-list { display: none; }
  .days-area {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 0.5rem;
  }
  .day-column { width: 240px; }
}
