.trip-add-trigger,
.workspace-trip-detail__actions .trip-add-trigger,
.trip-add-place-fab.trip-add-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #1c5058;
  border-radius: 12px;
  background: #1c5058;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.trip-add-trigger svg { width: 20px; height: 20px; flex: none; }
.trip-add-trigger:hover { background: #28656d; }
.trip-add-trigger:disabled { opacity: .5; cursor: wait; }
.trip-add-trigger:focus-visible, .trip-add-dialog button:focus-visible { outline: 3px solid #2395a0; outline-offset: 3px; }
.workspace-trip-detail__actions { grid-template-columns: 1fr; }
.workspace-trip-day-add-trigger { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin: 3px 0 10px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--trip-accent, #9b5035); font: inherit; font-weight: 700; cursor: pointer; }
.workspace-trip-day-add-trigger svg { width: 17px; height: 17px; }
.workspace-trip-day-add-trigger:hover { background: #f1ece1; }
.trip-add-place-fab.trip-add-trigger { width: auto; height: 48px; box-shadow: 0 5px 18px #1c505830; }
.trip-add-dialog { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; margin: auto; padding: 20px; border: 1px solid #d7e3dd; border-radius: 18px; background: #fffcf6; color: #193a40; overflow: auto; box-shadow: 0 16px 48px #12363a30; }
.trip-add-dialog::backdrop { background: #132e3f55; }
.trip-add-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.trip-add-dialog__head h3 { margin: 0; font-size: 18px; }
.trip-add-dialog__head [hidden] { display: none; }
.trip-add-dialog__head [data-trip-add-close] { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: #edf4ee; color: inherit; font-size: 22px; cursor: pointer; }
.trip-add-dialog__date { display: block; margin-block-start: 2px; color: #526c70; }
.trip-add-dialog [data-trip-add-back] { margin-block-start: 8px; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: #204c54; font: inherit; cursor: pointer; }
.trip-add-dialog [data-trip-add-back][hidden] { display: none; }
.trip-add-dialog__choices { display: grid; gap: 8px; }
.trip-add-dialog__choices [data-trip-add-day] { min-height: 48px; padding: 8px 10px; gap: 8px; }
.trip-add-dialog__choices [data-trip-add-day] strong { flex: none; }
.trip-add-dialog__choices [data-trip-add-day] span { margin-inline-start: auto; }
.trip-add-dialog__choices button { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px; border: 1px solid #d7e3dd; border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trip-add-dialog__choices button:hover { border-color: #397b82; background: #eff7f3; }
.trip-add-dialog__choices svg { width: 24px; height: 24px; flex: none; color: #25646b; }
.trip-add-dialog__choices span { display: grid; gap: 5px; }
.trip-add-dialog__choices strong { font-size: 14px; }
.trip-add-dialog__choices small { font-size: 12px; line-height: 1.5; color: #526c70; }
@media (max-width: 700px) {
  .trip-add-dialog { margin: auto auto max(16px, env(safe-area-inset-bottom)); }
}

.workspace-trip-import-trigger {display:block;width:100%;min-height:48px;margin:8px 0 16px;padding:8px 12px;border:1px solid #cbd8d4;border-radius:12px;background:transparent;color:#1c6370;font:600 14px/1.4 system-ui;}
.workspace-trip-place-search__tabs {grid-template-columns:repeat(3,minmax(0,1fr));}
.workspace-trip-place-search__tabs button {min-height:44px;}

.workspace-trip-day__actions {display:flex;align-items:center;gap:4px;}
.workspace-trip-day__head .workspace-trip-day__actions button {width:48px;min-height:48px;}

#workspace-trips:has(.trip-group-actions) {
  --trip-actions-side-gutter: var(--trip-panel-side-padding, 20px);
  scroll-padding-block-end: 56px;
}
body.app-shell-nav-mode #workspace-trips.has-map-workspace { --trip-actions-side-gutter: 18px; }
.trip-actions-host:empty,
.workspace-trips:not(.is-detail) .trip-actions-host,
.workspace-trips:not([data-detail-tab="schedule"], [data-detail-tab="sub"]) .trip-actions-host,
.workspace-trips:is(.is-composing, .is-trip-map-view) .trip-actions-host,
.workspace-trip-detail[hidden] ~ .trip-actions-host { display: none; }
.workspace-trip-detail[inert] ~ .trip-actions-host { visibility: hidden; }

body #workspace-trips.is-detail:not([hidden], .is-composing, .is-trip-map-view):is([data-detail-tab="schedule"], [data-detail-tab="sub"]):has(.trip-actions-host:not(:empty)) {
  display: flex !important;
  flex-direction: column;
  overscroll-behavior-y: none;
}
body #workspace-trips.is-detail:not(.is-composing, .is-trip-map-view):is([data-detail-tab="schedule"], [data-detail-tab="sub"]):has(.trip-actions-host:not(:empty)) > .workspace-trip-detail:not([hidden]) {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}
.trip-actions-host {
  position: sticky;
  flex: 0 0 auto;
  inset-block-end: -20px;
  margin-block-start: auto;
  margin-inline: calc(-1 * var(--trip-actions-side-gutter));
  margin-block-end: -20px;
  background: #fcf3eb;
  z-index: 2;
}
.trip-group-actions {
  min-width: 0;
  padding: 2px 12px;
  border-block-start: 1px solid #dec7b9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 6px;
  color: #204c54;
}
.trip-group-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.trip-group-actions [data-workspace-plan-action="add-day"] { margin-inline-end: auto; }
.trip-group-actions button:hover:not(:disabled), .trip-group-actions button:focus-visible {
  background: #f2e4d9;
}
.trip-group-actions button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.trip-group-actions button:disabled { opacity: .5; cursor: default; }
.trip-group-actions svg { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
