.itinerary-heading-actions { display: flex; align-items: center; gap: 9px; }
.itinerary-edit-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--lake); font-size: 11px; font-weight: 740; cursor: pointer; }
.itinerary-editor { width: min(100% - 24px, 760px); height: min(92dvh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(19,38,47,.28); overflow: hidden; }
.itinerary-editor[open] { display: grid; grid-template-rows: auto 1fr auto; }
.itinerary-editor::backdrop { background: rgba(7,18,22,.6); backdrop-filter: blur(3px); }
.itinerary-editor > header, .itinerary-editor > footer { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.92); }
.itinerary-editor > header { border-bottom: 1px solid var(--line); }
.itinerary-editor > footer { border-top: 1px solid var(--line); }
.itinerary-editor h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.itinerary-editor-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.itinerary-editor-body { min-height: 0; padding: 16px; overflow: auto; }
.editor-day, .editor-stay, .editor-food { padding: 18px 0; border-bottom: 1px solid var(--line); }
.editor-day:first-child { padding-top: 0; }
.editor-day-heading, .editor-stay-heading, .editor-group-heading { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-day-heading span { color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.editor-day label, .editor-stay label, .editor-food label { margin-top: 10px; display: grid; gap: 6px; }
.editor-day label > span, .editor-stay label > span, .editor-food label > span { color: var(--muted); font-size: 11px; font-weight: 720; }
.editor-day input, .editor-day select, .editor-day textarea, .editor-stay input, .editor-stay select, .editor-food input, .editor-food textarea {
  width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; font-size: 13px; outline: none;
}
.editor-day input:focus, .editor-day select:focus, .editor-day textarea:focus, .editor-stay input:focus, .editor-stay select:focus, .editor-food input:focus, .editor-food textarea:focus { border-color: var(--lake); box-shadow: 0 0 0 2px rgba(40,123,144,.1); }
.editor-schedule-list { margin-top: 14px; display: grid; gap: 8px; }
.editor-schedule-row { padding: 10px; display: grid; grid-template-columns: 78px 92px 1fr auto; gap: 7px; align-items: start; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.55); }
.editor-schedule-row textarea { resize: vertical; line-height: 1.5; }
.editor-row-actions { display: flex; gap: 2px; }
.editor-row-actions button, .editor-stay-heading button { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.editor-add, .editor-group-heading button { min-height: 38px; margin-top: 10px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--lake); font-size: 11px; font-weight: 720; cursor: pointer; }
.editor-foods, .editor-stays { padding-top: 26px; }
.editor-food textarea { resize: vertical; line-height: 1.55; }
.editor-empty { padding: 20px 0; color: var(--muted); font-size: 12px; }
.editor-group-heading h3 { margin: 0; font-size: 18px; }
.editor-group-heading button { margin: 0; }
.editor-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.itinerary-editor-actions { display: flex; gap: 8px; }
.itinerary-editor-actions button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; font-size: 12px; font-weight: 730; }
.itinerary-editor-actions .primary { border-color: var(--ink); background: var(--ink); color: white; }
.itinerary-editor-actions button:disabled { opacity: .55; cursor: wait; }
.itinerary-editor-notice { margin: 0; color: var(--muted); font-size: 11px; }
.itinerary-editor-notice.is-error { color: var(--warning); }

@media (max-width: 620px) {
  .itinerary-editor { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .editor-schedule-row { grid-template-columns: 72px 1fr auto; }
  .editor-schedule-row textarea { grid-column: 1 / -1; }
  .editor-two-columns { grid-template-columns: 1fr; }
  .itinerary-editor > footer { align-items: flex-start; flex-direction: column; }
  .itinerary-editor-actions { width: 100%; }
  .itinerary-editor-actions button { flex: 1; }
}
