.sched-add-toggle-row { display: flex; align-items: stretch; gap: 8px; }
.sched-add-toggle-row > .sched-add-toggle { flex: 1; min-width: 0; width: auto; }
.sched-add-toggle[hidden] { display: none; }
.sched-tool-btn {
  flex: none;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sched-tool-btn:hover { background: var(--bg-sunken); }
.sched-tool-btn[hidden] { display: none; }
.sched-tool-btn .icon { width: 16px; height: 16px; }
.sched-tool-btn .icon-inline { margin-right: 0; }
@media (max-width: 560px) {
  .sched-tool-label { display: none; }
  .sched-tool-btn { padding: 0 11px; }
}
.sched-bookings { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--bg-sunken); }
.sched-bookings__title { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.sched-book { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: none; border-radius: var(--radius-md); background: var(--vc-soft); color: var(--vc-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sched-book:hover { filter: brightness(0.97); }
.sched-book__icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: var(--radius); background: var(--card); }
.sched-book__icon .icon { width: 15px; height: 15px; }
.sched-book__time { flex: none; font-weight: 700; }
.sched-book__text { min-width: 0; overflow-wrap: anywhere; }
.sched-book__text em { margin-left: 4px; font-style: normal; opacity: 0.8; }
.sched-book-note { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); font-size: 12.5px; line-height: 1.45; }
.sched-book-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.timeline-vmark { position: absolute; z-index: 2; pointer-events: none; }
.timeline-vmark--pin { top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--vc); }
.timeline-vmark--band { top: 0; bottom: 0; border: 1px dashed var(--vc); border-radius: 4px; background-image: repeating-linear-gradient(135deg, var(--vc-soft) 0 5px, transparent 5px 10px); opacity: 0.9; }
.timeline-vmark--v { left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--vc); opacity: 0.85; }
.dp-modal { width: 560px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.dp-modal--narrow { width: 460px; }
.dp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; background: var(--brand-soft); color: var(--brand-soft-text); }
.dp-eyebrow { display: block; min-height: 15px; font-size: 12px; font-weight: 700; opacity: 0.85; }
.dp-title { margin: 2px 0 0; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.dp-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 22px 8px; overflow-y: auto; }
.dp-options { display: flex; flex-direction: column; gap: 8px; }
.dp-group-label { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.dp-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.dp-check input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--brand); }
.dp-check input:disabled + span { color: var(--text-faint); }
.dp-sub { margin-left: 25px; }
.dp-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dp-row select { width: auto; flex: none; min-width: 84px; height: 30px; padding: 0 6px; border-radius: var(--radius-md); }
.dp-label { margin-right: 4px; color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.dp-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-summary:empty { display: none; }
.dp-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 9px 12px; border-radius: var(--radius-card); background: var(--bg-sunken); font-size: 12.5px; }
.dp-stat span { color: var(--text-muted); font-weight: 600; }
.dp-stat b { font-size: 14px; }
.dp-stat em { font-style: normal; color: var(--positive); font-weight: 700; }
.dp-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dp-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13.5px; border-bottom: 1px solid var(--border-subtle); }
.dp-item:last-child { border-bottom: none; }
.dp-item.is-moved { background: var(--brand-soft); }
.dp-num { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; }
.dp-time { flex: none; font-weight: 700; }
.dp-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dp-travel { flex: none; font-size: 11.5px; color: var(--text-muted); }
.dp-moved { flex: none; font-size: 11px; font-weight: 700; color: var(--brand-soft-text); }
.dp-warn { display: flex; flex-direction: column; gap: 6px; }
.dp-warn[hidden] { display: none; }
.dp-warn > div { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); font-size: 12.5px; line-height: 1.45; }
.dp-warn .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.dp-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.dp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px 18px; border-top: 1px solid var(--border-subtle); }
.dp-hint { flex: 1 1 180px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.dp-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 560px) {
  .dp-head, .dp-body, .dp-foot { padding-left: 16px; padding-right: 16px; }
}
.dx-help > summary,
.dx-plat > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--brand-soft-text); }
.dx-help > summary { padding: 4px 0; }
.dx-guide { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dx-plat { padding: 8px 12px; border-radius: var(--radius-card); background: var(--bg-sunken); }
.dx-plat > summary { color: var(--text); }
.dx-steps { margin: 8px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); }
.dx-success { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--accent-teal-soft); color: var(--accent-teal-soft-text); }
.dx-success .icon { width: 22px; height: 22px; flex: none; }
.dx-success div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dx-success b { font-size: 14px; }
.dx-success span { font-size: 12px; overflow-wrap: anywhere; }
#dx-form[hidden], #dx-done[hidden], #dx-hint[hidden] { display: none; }
@media (max-width: 640px) {
  .sched-daybar { padding-top: 6px; padding-bottom: 6px; }
  .sched-day-card {
    width: auto;
    flex: 0 0 auto;
    min-width: 64px;
    height: 44px;
    padding: 4px 10px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    column-gap: 4px;
    row-gap: 0;
  }
  .sched-day-card-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }
  .sched-day-card-count { font-size: 11px; line-height: 1.3; }
  .sched-day-card-count::before { content: "·"; margin-right: 3px; }
  .sched-day-card-date { order: 3; flex-basis: 100%; font-size: 11.5px; font-weight: 400; color: var(--text-muted); line-height: 1.3; }
  .sched-day-card.is-all { min-width: 0; width: auto; flex: 0 0 auto; padding: 4px 10px; flex-direction: row; gap: 4px; }
  .sched-day-card.is-all .sched-day-card-count::before { content: none; }
  .sched-day-card.active .sched-day-card-label { color: var(--brand-contrast); opacity: 1; }
  .sched-day-card.active .sched-day-card-date { color: var(--brand-contrast); opacity: 0.85; font-weight: 500; }
  #sched-add-toggle { display: none; }
  .sched-add-toggle-row { padding: 0 16px 8px; justify-content: flex-end; }
  .sched-add-toggle-row.tools-moved { display: none; }
  .sched-add-panel > .sched-search-row { padding-top: 0; }
  .sched-summary { flex-wrap: nowrap; gap: 8px; padding: 6px 16px 8px; min-height: 44px; }
  .sched-summary-date { font-size: 14px; }
  .sched-summary-date .d-long { display: none; }
  .sched-summary-item { font-size: 12.5px; }
  .sched-summary-weather { margin-left: 0; font-size: 12.5px; gap: 3px; min-width: 0; }
  .sched-summary-weather .place { display: none; }
  .sched-summary-tools { margin-left: auto; display: flex; gap: 4px; flex: none; }
  .sched-summary-tools:empty { display: none; }
  .sched-summary-tools .sched-tool-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .sched-summary-tools .sched-tool-label { display: none; }
  .timeline-strip { margin-bottom: 8px; }
  .timeline-collapsed { height: 28px; }
  .item-row:not(.editing) { flex-wrap: nowrap; padding: 10px 0 10px 2px; gap: 8px; }
  .item-row-side { flex: none; flex-direction: row; align-items: flex-start; }
  .item-row-side > .item-row-actions,
  .item-row-side > .item-order-mobile { display: none; }
  .item-row-title { font-size: 16px; line-height: 1.4; }
  .item-row-memo { margin-top: 4px; font-size: 13.5px; line-height: 1.55; }
  .sched-list .item-connector { height: 34px; }
}
.item-row-mobile-btns { display: none; }
@media (max-width: 640px) {
  .item-row-mobile-btns { display: flex; gap: 2px; margin-top: -2px; }
  .item-row-mbtn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
  }
  .item-row-mbtn .icon { width: 18px; height: 18px; }
  .item-row-mbtn:active { background: var(--bg-sunken); }
}
.item-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(14, 17, 22, 0.42);
}
.item-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: var(--card);
  box-shadow: 0 -10px 30px -8px rgba(14, 17, 22, 0.3);
  animation: item-sheet-up 0.18s ease-out;
}
@keyframes item-sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .item-sheet { animation: none; } }
.item-sheet-title {
  padding: 8px 10px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-sheet-row {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
}
.item-sheet-row .icon { width: 19px; height: 19px; color: var(--text-muted); flex: none; }
.item-sheet-row[data-act="up"] .icon { transform: rotate(180deg); }
.item-sheet-row:hover, .item-sheet-row:focus-visible { background: var(--bg-sunken); }
.item-sheet-row[disabled] { opacity: 0.4; cursor: default; }
.item-sheet-row.is-danger, .item-sheet-row.is-danger .icon { color: var(--danger); }
.item-sheet-cancel {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 640px) {
  .item-row-title { display: block; }
  .item-row-title > * { display: inline-flex; vertical-align: middle; margin-right: 6px; }
  .item-row-title > .item-row-title-text { display: inline; vertical-align: baseline; }
}
@media (max-width: 860px) {
  #tab-panel-sched.map-view .trip-col-main { flex-basis: calc(var(--sheet-ratio, 0.73) * 100%); }
}
@media (max-width: 640px) {
  .item-row:not(.editing) {
    display: grid;
    grid-template-columns: 3px 24px minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 1px;
    align-items: start;
  }
  .item-row:not(.editing) > .item-row-grip { display: none; }
  .item-row:not(.editing) > .item-row-bar { grid-column: 1; grid-row: 1 / span 2; }
  .item-row:not(.editing) > .item-row-num { grid-column: 2; grid-row: 1 / span 2; margin-top: 2px; }
  .item-row:not(.editing) > .item-row-time,
  .item-row:not(.editing) > .item-row-time-empty { grid-column: 3; grid-row: 1; margin: 0; width: auto; font-size: 12px; line-height: 1.3; }
  .item-row:not(.editing) > .item-row-time:empty { display: none; }
  .item-row:not(.editing) > .item-row-body { grid-column: 3; grid-row: 2; }
  .item-row:not(.editing) > .item-row-side { grid-column: 4; grid-row: 1 / span 2; }
}
.sched-summary .s-short { display: none; }
.sched-summary-date .d-short { display: none; }
@media (max-width: 640px) { .sched-summary-date .d-short { display: inline; } }
@media (max-width: 640px) {
  #tab-panel-sched .sched-list { padding-left: 12px; padding-right: 12px; }
  .sched-summary { padding-left: 12px; padding-right: 12px; }
  .sched-day-card:not(.is-all) {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-content: center;
    column-gap: 4px;
    min-width: 0;
    padding: 4px 9px;
  }
  .sched-day-card:not(.is-all) > .sched-day-card-label { grid-column: 1; grid-row: 1; }
  .sched-day-card:not(.is-all) > .sched-day-card-count { grid-column: 2; grid-row: 1; }
  .sched-day-card:not(.is-all) > .sched-day-card-date { grid-column: 1 / -1; grid-row: 2; }
  .sched-summary .s-long, .sched-summary-sep, .sched-summary-weather .wx-min { display: none; }
  .sched-summary .s-short { display: inline-flex; align-items: center; gap: 3px; }
  .sched-summary .s-short .icon { width: 13px; height: 13px; color: var(--text-muted); }
  .sched-summary { gap: 10px; }
  .sched-summary > .sched-summary-date,
  .sched-summary > .sched-summary-item { flex: none; white-space: nowrap; }
  .sched-summary > .sched-summary-weather { flex: 0 1 auto; overflow: hidden; white-space: nowrap; }
  .item-row:not(.editing) > .item-row-body { grid-column: 3 / -1; }
  .item-row:not(.editing) > .item-row-side { position: relative; z-index: 1; }
  .item-row:not(.editing):has(.item-row-mobile-btns) .item-row-title { padding-right: 76px; }
  .item-row.editing { padding: 10px 10px 10px 8px; gap: 8px; }
  .item-edit-form.ie { gap: 9px; }
  .ie-row { gap: 8px 12px; }
  .ie-row .ie-label, .ie-group--cats > .ie-label { display: none; }
  .item-edit-form.ie select { height: 34px; padding: 0 6px; }
  .ie .color-swatches { gap: 5px; }
  .ie .color-swatch { width: 22px; height: 22px; }
  .ie-group--cats { flex-direction: row; }
  .ie .category-chip-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .ie .category-chip {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    height: 46px;
    padding: 4px 2px;
    border-radius: var(--radius-md);
    font-size: 11.5px;
    white-space: nowrap;
  }
  .ie .category-chip .icon { margin: 0; width: 16px; height: 16px; }
  .ie-memo { padding: 7px 10px; }
  .ie-actions { margin-top: 0; }
  .edit-delete-btn .ie-del-label { display: none; }
  .btn-ghost-danger.edit-delete-btn .icon { margin-right: 0; width: 17px; height: 17px; }
  .ie-actions-main .btn { min-width: 64px; height: 36px; }
}
@media (max-width: 640px) {
  .sched-summary > .sched-summary-item.is-spent { display: none; }
  .ie-row { flex-wrap: wrap; justify-content: space-between; }
  .ie-row .ie-group { gap: 4px; }
  .item-edit-form.ie .ie-row select { width: 60px; padding: 0 4px; }
  .ie .color-swatches { gap: 4px; flex-wrap: nowrap; }
  .ie .color-swatch { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  #tab-panel-sched .sched-daybar,
  #sched-search-row-main,
  #tab-panel-sched .sched-aux { padding-left: 12px; padding-right: 12px; }
  .sched-summary-weather .wx-min { display: inline; font-size: 11.5px; color: var(--text-muted); }
  #sched-search-row-main { gap: 6px; }
  #sched-search-row-main .sched-search-btn {
    height: 44px;
    min-width: 50px;
    padding: 3px 4px 2px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
  #sched-search-row-main .sched-search-btn .btn-label { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.1; }
  #sched-search-row-main .sched-search-btn .icon { width: 18px; height: 18px; }
}
@media (max-width: 860px) {
  .mobile-action-bar { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .mobile-action-icon { flex-direction: column; gap: 2px; width: 52px; flex-basis: 52px; padding: 3px 2px 2px; }
  .mobile-action-icon .icon { width: 19px; height: 19px; }
  .mobile-action-label { font-size: 10.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
}
.mobile-action-label { display: none; }
@media (max-width: 860px) { .mobile-action-label { display: block; } }
@media (max-width: 640px) {
  .sched-summary-weather .wx-sep { display: none; }
  .sched-summary-weather .wx-min::before { content: "/"; margin: 0 1px; }
}
@media (max-width: 380px) {
  .sched-summary { gap: 7px; }
  .sched-summary-date { font-size: 13.5px; }
  .sched-summary-tools { gap: 3px; }
  .sched-summary-tools .sched-tool-btn { width: 32px; }
}
@media (max-width: 640px) {
  #sched-search-row-main { padding-bottom: 6px; }
  #sched-search-row-main .sched-search-wrap { height: 42px; }
  #sched-search-row-main .sched-search-btn { height: 42px; padding-top: 2px; padding-bottom: 1px; gap: 1px; }
  #sched-search-row-main .sched-search-btn .icon { width: 17px; height: 17px; }
}
.item-row-time-inline { display: none; }
@media (max-width: 640px) {
  .item-row:not(.editing) > .item-row-time,
  .item-row:not(.editing) > .item-row-time-empty { display: none; }
  .item-row:not(.editing) > .item-row-body { grid-row: 1; }
  .item-row:not(.editing) > .item-row-bar,
  .item-row:not(.editing) > .item-row-num,
  .item-row:not(.editing) > .item-row-side { grid-row: 1; }
  .item-row-title > .item-row-time-inline {
    display: inline-block;
    margin-right: 7px;
    font-family: var(--font-mono); font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    vertical-align: baseline;
    letter-spacing: -.02em;
  }
  .item-row-title > .item-row-time-inline.is-empty {
    padding: 0; border: 0; background: none; color: var(--text-faint); font-weight: 500; cursor: pointer;
  }
}
.sched-list .item-connector .conn-detail { display: contents; }
.sched-list .item-connector:not(.is-open) .conn-detail { display: none; }
.sched-list .item-connector:not(.is-open) { height: 26px; }
.sched-list .item-connector:not(.is-open)::before { height: 26px; }
.sched-list .item-connector .conn-dist {
  display: inline-flex; align-items: center; gap: 3px;
  min-height: 24px; padding: 0 6px; margin: 0 -6px;
  border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--text-faint); font: inherit; font-size: 12.5px; cursor: pointer;
}
.sched-list .item-connector .conn-dist:hover { color: var(--text); background: var(--bg-sunken); }
.sched-list .item-connector .conn-dist .icon { width: 13px; height: 13px; transition: transform .15s; }
.sched-list .item-connector.is-open .conn-dist .icon { transform: rotate(180deg); }
.sched-list .item-connector.is-open .conn-dist::before { content: "·"; margin-right: 4px; }
.sched-list .item-connector.is-tight .conn-dist { color: inherit; }
@media (max-width: 640px) {
  .sched-list .item-connector:not(.is-open) { height: 26px; }
}
.sched-tool-btn#sched-timeline-btn.active { color: var(--brand-fg); border-color: color-mix(in oklch, var(--brand) 45%, var(--border)); }
@media (max-width: 640px) {
  .sched-summary-tools { gap: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--card); }
  .sched-summary-tools .sched-tool-btn { width: 30px; height: 32px; border: 0; border-radius: 0; background: none; }
  .sched-summary-tools .sched-tool-btn + .sched-tool-btn { border-left: 1px solid var(--border-subtle); }
  .sched-summary-tools .sched-tool-btn .icon { width: 15px; height: 15px; }
  .sched-summary-tools #sched-timeline-btn.active { background: color-mix(in oklch, var(--brand) 10%, transparent); }
  .sched-summary { gap: 8px; }
}
#sched-timeline-btn .sched-tool-label { display: none; }
#sched-timeline-btn { padding-left: 10px; padding-right: 10px; }
.sched-add-toggle-label { white-space: nowrap; flex: none; }
.sched-add-toggle-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .sched-summary-tools #sched-timeline-btn,
  .sched-summary-tools #sched-export-btn,
  .sched-summary-tools #sched-print-btn { display: none; }
  .sched-summary-tools { border: 0; background: none; }
  .sched-summary-tools .sched-tool-btn { border: 1px solid var(--border); border-radius: var(--radius-md); width: 34px; height: 32px; }
  #tab-panel-sched:has(#sched-add-panel:not([hidden])) .sched-add-toggle-row.tools-moved { display: flex; }
}
.sched-list .day-group { position: relative; margin: 0 0 14px; }
.sched-list .day-group > .sched-summary.is-inline {
  position: sticky; top: 0; z-index: 4;
  margin: 0 0 6px; padding: 10px 2px 8px;
  background: var(--card); border-bottom: 1px solid var(--border-subtle);
}
.sched-list .day-group > .sched-summary.is-inline .sched-summary-date { font-size: 15px; font-weight: 700; }
.day-plan-btn {
  display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: auto; height: 28px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.day-plan-btn .icon { width: 14px; height: 14px; color: var(--brand-fg); }
.day-plan-btn:hover { background: var(--bg-sunken); }
@media (max-width: 640px) { .day-plan-btn { padding: 0 8px; } }
.day-empty-note { margin: 6px 0 0 38px; color: var(--text-muted); font-size: 13px; }
.sched-list .item-row.it2:not(.editing) {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; align-items: stretch;
  padding: 0; margin: 0; border: 0; background: none; position: relative;
}
.sched-list .item-connector + .item-row.it2 { border-top: 0; }
.it2-rail { position: relative; }
.it2-rail::before, .sched-list .day-group .item-connector::before {
  content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; height: auto; background: var(--border);
}
.it2-num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 26px; height: 26px; margin: 12px auto 0; border-radius: 50%;
  color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 3px var(--card);
}
.it2-card {
  min-width: 0; margin: 3px 0; padding: 10px 12px 10px 12px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.it2-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.it2-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.item-row.it2.item-row-focused .it2-card { border-color: var(--brand); background: var(--brand-soft); }
.it2-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.it2-time { flex: none; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.it2-time.is-empty { padding: 0; border: 0; background: none; color: var(--text-faint); font: inherit; font-size: 12.5px; cursor: pointer; }
.it2-head .item-row-title-icon { flex: none; display: inline-flex; color: var(--text-faint); }
.it2-head .item-row-title-icon .icon { width: 15px; height: 15px; }
.it2-head .item-row-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 700; color: var(--text); }
.it2-head .item-row-affiliate { flex: none; }
.it2-memo {
  margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sched-list .day-group .item-connector {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  height: auto; min-height: 28px; padding: 2px 0 2px 38px; border: 0; font-size: 12.5px; color: var(--text-muted);
}
.sched-list .day-group .item-connector:not(.is-open) { height: auto; }
.sched-list .day-group .item-connector .conn-dist {
  order: -1; display: inline-flex; align-items: center; gap: 4px; height: 24px; margin: 0; padding: 0 9px 0 7px;
  border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--bg-sunken); color: var(--text-secondary, var(--text-muted));
  font-size: 12px;
}
.sched-list .day-group .item-connector .conn-dist .icon { width: 14px; height: 14px; }
.sched-list .day-group .item-connector .conn-dist .icon:last-child { width: 12px; height: 12px; opacity: .7; }
.sched-list .day-group .item-connector.is-open .conn-dist { border-color: var(--brand); color: var(--brand-fg); background: var(--brand-soft); }
.sched-list .day-group .item-connector.is-open .conn-dist::before { content: none; }
.sched-list .day-group .item-connector.is-open { padding-top: 4px; padding-bottom: 6px; }
.sched-list .day-group .item-connector.is-tight .conn-dist { border-color: var(--danger); color: var(--danger); background: color-mix(in oklch, var(--danger) 8%, var(--card)); }
.sched-list .day-group .item-connector .travel-route-link { margin-left: auto; }
.sched-list .day-group .item-connector:empty { min-height: 10px; }
.item-sheet-head { display: flex; gap: 10px; align-items: flex-start; margin: -2px 0 6px; }
.item-sheet-dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; }
.item-sheet-head-text { min-width: 0; }
.item-sheet-where { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.item-sheet-memo { margin: 4px 0 0; font-size: 14px; color: var(--text); white-space: pre-wrap; }
.item-sheet-addr { margin: 4px 0 0; font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 640px) {
  #tab-panel-sched .sched-add-toggle-row { display: none; }
  #tab-panel-sched:has(#sched-add-panel:not([hidden])) .sched-add-toggle-row { display: flex; }
}
.sched-add-toggle-row #sched-plan-btn, .sched-summary-tools #sched-plan-btn { display: none; }
.sched-list .day-group > .sched-summary.is-inline { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 640px) { .sched-list .day-group > .sched-summary.is-inline { flex-wrap: nowrap; } }
.sched-list .item-row.it2 .it2-card { margin: 4px 0; }
.sched-list .day-group .item-row.it2.is-first .it2-rail::before { top: 25px; }
.arr-chip {
  flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px 0 6px;
  border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--bg-sunken);
  color: var(--text-muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.arr-chip .icon { width: 13px; height: 13px; }
.arr-chip[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-fg); }
.arr-chip.is-tight { border-color: color-mix(in oklch, var(--danger) 55%, var(--border)); color: var(--danger); background: color-mix(in oklch, var(--danger) 7%, var(--card)); }
.it2-head .item-row-title-text { flex: 0 1 auto; }
.arr-detail { display: none; }
.it2-card.is-open .arr-detail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--text-muted);
}
.arr-detail .travel-modes { order: 0; }
.arr-detail .travel-route-link { margin-left: auto; }
.arr-detail .arr-min { font-weight: 600; color: var(--text); }
.arr-warn { flex-basis: 100%; display: flex; align-items: flex-start; gap: 5px; margin: 2px 0 0; color: var(--danger); font-size: 12px; }
.arr-warn .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
@media (max-width: 640px) { .arr-detail .travel-mode-label { display: none; } }
.sched-list .item-row.it2:not(.editing) { grid-template-columns: 60px minmax(0, 1fr); column-gap: 6px; }
.it2-rail::before { left: 29px; }
.sched-list .day-group .item-row.it2.is-first .it2-rail::before { top: 28px; }
.sched-list .item-row.it2 .it2-card { margin: 2px 0; }
.it2-num { margin-top: 14px; }
.it2-col { min-width: 0; }
.it2-rail .arr-chip {
  position: absolute; z-index: 2; top: -10px; left: 50%; transform: translateX(-50%);
  height: 20px; margin: 0; padding: 0 6px 0 5px; gap: 2px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-muted);
  font-size: 10.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.it2-rail .arr-chip .icon { width: 11px; height: 11px; }
.it2-rail .arr-chip[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-fg); }
.it2-rail .arr-chip.is-tight { border-color: color-mix(in oklch, var(--danger) 55%, var(--border)); color: var(--danger); background: color-mix(in oklch, var(--danger) 7%, var(--card)); }
.it2-col > .arr-detail { display: none; }
.item-row.it2.is-open .it2-col > .arr-detail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 12px 0 6px; padding: 6px 10px; border-radius: var(--radius-md);
  background: var(--brand-soft); font-size: 12.5px; color: var(--text-muted);
}
.item-row.it2.is-open .it2-num { margin-top: 62px; }
.it2-memo-mark { width: 22px; height: 22px; background: var(--bg-sunken); color: var(--text-muted); border: 1px solid var(--border); box-shadow: 0 0 0 3px var(--card); }
.it2-memo-mark .icon { width: 12px; height: 12px; }
.sched-list .item-row.it2.is-memo .it2-num { margin-top: 11px; }
.it2-card.it2-memo-card { padding: 8px 12px; background: var(--bg-sunken); border: 1px dashed var(--border); box-shadow: none; }
.it2-memo-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.memo-sheet-hint { margin: 0 0 8px; font-size: 12.5px; color: var(--text-muted); }
.memo-sheet-input { display: block; width: 100%; min-height: 110px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); color: var(--text); box-sizing: border-box; }
.memo-sheet-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.memo-sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 860px) {
  #tab-panel-sched.map-view.map-folded .trip-col-main { flex-basis: 100%; }
  #tab-panel-sched.map-view.map-folded .trip-col-map { flex: 0 0 0; min-height: 0; }
  #tab-panel-sched.map-view.map-fold-anim .trip-col-main,
  #tab-panel-sched.map-view.map-fold-anim .trip-col-map { transition: flex-basis .26s cubic-bezier(0.2, 0.8, 0.2, 1), flex-grow .26s cubic-bezier(0.2, 0.8, 0.2, 1); }
  #tab-panel-sched .sched-day-card:not(.is-all) { display: flex; flex-direction: row; align-items: center; gap: 4px; width: auto; flex: 0 0 auto; height: 32px; padding: 0 11px; }
  #tab-panel-sched .sched-day-card:not(.is-all) > .sched-day-card-date { order: 0; flex-basis: auto; font-size: 12px; }
  #tab-panel-sched .sched-day-card:not(.is-all) > .sched-day-card-count { order: 1; }
  #tab-panel-sched .sched-day-card-label, #tab-panel-sched .sched-day-card-date, #tab-panel-sched .sched-day-card-count { white-space: nowrap; line-height: 1; }
}
@media (max-width: 640px) {
  .sched-bookings { gap: 4px; margin: 0 0 8px; padding: 6px; border-radius: var(--radius-card); }
  .sched-bookings__title { display: none; }
  .sched-book { gap: 8px; padding: 5px 8px; font-size: 12.5px; }
  .sched-book__icon { width: 22px; height: 22px; border-radius: var(--radius-sm); }
  .sched-book__icon .icon { width: 13px; height: 13px; }
  .sched-book__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .sched-book-note { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 640px) {
  .sched-list .item-row.it2 .it2-card { margin: 1px 0; padding: 7px 11px; border-radius: var(--radius-card); }
  .it2-num { margin-top: 10px; width: 24px; height: 24px; font-size: 11.5px; }
  .sched-list .day-group .item-row.it2.is-first .it2-rail::before { top: 22px; }
  .item-row.it2.is-open .it2-num { margin-top: 58px; }
  .it2-head .item-row-title-text { font-size: 15px; }
  .it2-memo { margin-top: 1px; font-size: 12.5px; line-height: 1.4; -webkit-line-clamp: 1; }
  .it2-rail .arr-chip { top: -11px; }
  #tab-panel-sched.map-view .trip-col-main > .sheet-handle { padding: 7px 0 5px; }
  .sched-list .day-group > .sched-summary.is-inline { top: -4px; box-shadow: 0 -6px 0 var(--card); }
}
.hdr-faces { display: none; }
#members-btn.has-faces .hdr-faces { display: inline-flex; align-items: center; }
#members-btn.has-faces > .icon-inline, #members-btn.has-faces .members-count-pill { display: none; }
.hdr-face { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--card); }
.hdr-face + .hdr-face { margin-left: -7px; }
.hdr-face .icon { width: 13px; height: 13px; }
.hdr-face-more { background: var(--bg-sunken); color: var(--text-muted); font-size: 10px; }
.sched-list .item-row.it2 .it2-card { min-height: 52px; display: flex; flex-direction: column; justify-content: center; }
.it2-head { min-height: 24px; }
.it2-head .item-row-affiliate { height: 22px; }
.sched-list .day-group > .sched-summary.is-inline { top: -4px; box-shadow: 0 -6px 0 var(--card); }
@media (max-width: 640px) {
  .sched-list .item-row.it2 .it2-card { min-height: 50px; }
  .sched-list .item-row.it2 .it2-num { margin-top: 13px; }
  .sched-list .day-group .item-row.it2.is-first .it2-rail::before { top: 25px; }
}
.sched-list .item-row.it2.is-memo .it2-card { min-height: 0; }
.app-sheet.day-edit-sheet { display: flex; flex-direction: column; height: 92dvh; max-height: 92dvh; padding-bottom: 0; }
.app-sheet.day-edit-sheet > .app-sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
@media (min-width: 641px) { .app-sheet.day-edit-sheet { width: min(520px, 100%); height: min(760px, 88dvh); padding-bottom: 0; } }
.de-head { display: flex; align-items: center; gap: 8px; padding: 2px 0 10px; border-bottom: 1px solid var(--border-subtle); }
.de-x { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-muted); cursor: pointer; }
.de-x:hover { background: var(--bg-sunken); color: var(--text); }
.de-x .icon { width: 20px; height: 20px; }
.de-head-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.de-title-main { margin: 0; font-size: 17px; font-weight: 700; }
.de-head-date { font-size: 13px; color: var(--text-muted); }
.de-done { flex: none; min-width: 64px; justify-content: center; }
.de-tools { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; }
.de-hint { flex: 1; font-size: 12.5px; color: var(--text-muted); text-wrap: pretty; }
.de-list { position: relative; list-style: none; margin: 0; padding: 0 0 12px; flex: 1; min-height: 0; overflow-y: auto; }
.de-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 4px 4px 2px; border-bottom: 1px solid var(--border-subtle); background: var(--card); }
.de-row.is-selected { background: var(--brand-soft); }
.de-row { position: relative; }
.de-row.is-dragging { position: relative; z-index: 2; box-shadow: var(--shadow-md); border-radius: var(--radius-md); }
.de-check { display: grid; place-items: center; width: 34px; height: 34px; flex: none; cursor: pointer; }
.de-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.de-num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 700; }
.de-num.is-memo { background: var(--bg-sunken); color: var(--text-muted); border: 1px solid var(--border); }
.de-num.is-memo .icon { width: 12px; height: 12px; }
.de-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.de-title.is-memo { font-weight: 400; font-size: 14px; color: var(--text-muted); }
.de-time { flex: none; font-size: 12.5px; color: var(--text-muted); }
.de-handle { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-faint); cursor: grab; touch-action: none; }
.de-handle:hover, .de-handle:focus-visible { background: var(--bg-sunken); color: var(--text); }
.de-row.is-dragging .de-handle { cursor: grabbing; color: var(--brand-fg); }
.de-handle .icon { width: 18px; height: 18px; }
.de-empty { padding: 24px 4px; text-align: center; }
.de-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); }
.de-bar[hidden] { display: none; }
.de-bar-label { flex: 1 0 auto; font-size: 13px; font-weight: 600; }
.de-bar .btn { display: inline-flex; align-items: center; gap: 4px; }
.de-bar .btn .icon { width: 14px; height: 14px; }
.de-bar .de-del { color: var(--danger); }
.de-day-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 0 100%; }
.de-day-chip { height: var(--chip-h); padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.de-day-chip:hover { border-color: var(--brand); color: var(--brand-fg); }
.day-edit-btn .icon { color: var(--text-muted); }
#sched-export-btn, #sched-print-btn { display: none !important; }
.sched-list .day-group > .sched-summary.is-inline { flex-wrap: nowrap; }
.sched-list .day-group > .sched-summary.is-inline > .sched-summary-weather { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.sched-list .day-group > .sched-summary.is-inline .sched-summary-weather .place { overflow: hidden; text-overflow: ellipsis; }
.sched-list .day-group > .sched-summary.is-inline > .sched-summary-item, .sched-list .day-group > .sched-summary.is-inline > .sched-summary-date { flex: none; white-space: nowrap; }
.sched-list .day-group > .sched-summary.is-inline .sched-summary-weather .place { display: none; }
.it2-head .it2-time { width: 5ch; font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; }
.item-row.it2.is-open .it2-col > .arr-detail { min-height: 30px; margin: 5px 0 6px; padding: 2px 6px 2px 3px; gap: 4px 8px; }
.item-row.it2.is-open .it2-col > .arr-detail .travel-route-link { min-height: 24px; padding: 2px 4px 2px 8px; }
.arr-detail .arr-min { font-family: inherit; font-variant-numeric: tabular-nums; }
.item-row.it2.is-open .it2-rail .arr-chip { top: 10px; }
.item-row.it2.is-open .it2-num { margin-top: 53px; }
@media (max-width: 640px) {
  .item-row.it2.is-open .it2-num { margin-top: 50px; }
}
@media (max-width: 640px) {
  #tab-panel-sched .sched-list { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 860px) {
  .app-shell .app-header { min-height: 50px; padding-top: 4px; padding-bottom: 4px; }
  .app-shell .app-title-group .trip-title-input { height: 20px; line-height: 20px; }
  .app-shell .app-header-meta { height: 18px; margin-top: 1px; }
}
.sched-list .item-row.it2:not(.editing) { grid-template-rows: auto auto; }
.sched-list .item-row.it2:not(.editing) > .it2-col { display: contents; }
.sched-list .item-row.it2:not(.editing) > .it2-col > .arr-detail { grid-column: 2; grid-row: 1; }
.sched-list .item-row.it2:not(.editing) > .it2-col > .it2-card { grid-column: 2; grid-row: 2; }
.sched-list .item-row.it2:not(.editing) > .it2-rail { grid-column: 1; grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; }
.sched-list .item-row.it2:not(.editing) > .it2-rail > .it2-num { grid-row: 2; align-self: start; margin: 15px auto 0; }
.sched-list .item-row.it2:not(.editing):has(.it2-memo) > .it2-rail > .it2-num { margin-top: 12px; }
.sched-list .item-row.it2.is-memo:not(.editing) > .it2-rail > .it2-num { margin-top: 17px; }
@media (max-width: 640px) {
  .sched-list .item-row.it2:not(.editing) > .it2-rail > .it2-num { margin-top: 14px; }
  .sched-list .item-row.it2:not(.editing):has(.it2-memo) > .it2-rail > .it2-num { margin-top: 9px; }
  .sched-list .item-row.it2.is-memo:not(.editing) > .it2-rail > .it2-num { margin-top: 15px; }
  .sched-list .day-group .item-row.it2.is-first .it2-rail::before { top: 26px; }
}
.item-row.it2.is-open .it2-col > .arr-detail .arr-warn { flex-basis: auto; order: 1; align-items: center; margin: 0; min-height: 26px; }
.item-row.it2.is-open .it2-col > .arr-detail .arr-warn .icon { margin-top: 0; }
.item-row.it2.is-open .it2-col > .arr-detail .travel-route-link { order: 2; }
.cand-group { margin: 0 0 12px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-card); background: var(--bg-sunken); }
.cand-group[hidden] { display: none; }
.cand-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cand-head-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cand-head-text b { font-size: 15px; }
.cand-head-text span { font-size: 12px; color: var(--text-muted); }
.cand-place-btn { flex: none; gap: 5px; }
.cand-place-btn .icon { width: 14px; height: 14px; color: var(--brand-fg); }
.cand-list { display: flex; flex-direction: column; gap: 4px; }
.cand-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--card); color: var(--text); text-align: left; cursor: pointer; }
.cand-card:hover { border-color: var(--border); }
.cand-card-icon { flex: none; display: inline-flex; color: var(--text-muted); }
.cand-card-icon .icon { width: 16px; height: 16px; }
.cand-card-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-add-btn { width: 100%; margin-top: 8px; justify-content: center; }
.sched-day-card.cand-chip { border-style: dashed; }
.cand-chip-plus { display: inline-flex; }
.cand-chip-plus .icon { width: 13px; height: 13px; }
.cand-add-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--brand); border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-soft-text); font-size: 13px; font-weight: 600; }
.cand-add-banner .icon-inline { margin: 0; }
.cand-add-banner .icon { width: 15px; height: 15px; }
.cand-add-banner-text { flex: 1; min-width: 0; text-wrap: pretty; }
.cand-sheet-addr { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.cand-place-hint { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.cand-place-list { display: flex; flex-direction: column; gap: 6px; max-height: 50dvh; overflow: auto; }
.cand-place-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.cand-place-row input[type="checkbox"] { width: 18px; height: 18px; }
.cand-place-name { min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cand-place-name small { font-size: 11.5px; font-weight: 400; color: var(--text-muted); }
.cand-place-row select { width: auto; max-width: 150px; min-height: var(--ctl-h-sm); padding: 4px 8px; font-size: 13px; }
.react-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.react-badge.is-mine { background: var(--brand-soft); color: var(--brand-soft-text); }
.react-badge > span { display: inline-flex; align-items: center; gap: 2px; }
.react-badge .icon { width: 11px; height: 11px; }
.it2-head .react-badge { margin-left: auto; }
.react-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.react-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: var(--radius-card); background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.react-btn .icon { width: 16px; height: 16px; color: var(--text-muted); }
.react-btn b { min-width: 8px; font-family: var(--font-sans); color: var(--text-muted); }
.react-btn.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-soft-text); }
.react-btn.is-on .icon, .react-btn.is-on b { color: inherit; }
.react-sheet-hint { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.share-sched-col .sched-list { padding: 4px 12px 8px; }
.share-sched-col .it2-card { cursor: pointer; }
.share-sched-col .it2-card.it2-memo-card { cursor: default; }
.share-sched-col .it2-head .item-row-comment-badge { margin-left: auto; flex: none; }
.share-sched-col .it2-head .item-row-comment-badge + .react-badge { margin-left: 4px; }
.share-cand-group { margin: 10px 12px 4px; }
.share-place-time { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--brand-fg); }
.share-place-memo { margin: 0 0 12px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .share-topbar .share-topbar-btn { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: 48px; margin: 0; border: 0; border-radius: var(--radius-card); background: var(--brand); color: #fff; font-size: 15px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); }
  .share-topbar .share-topbar-btn:hover { background: var(--brand); filter: brightness(1.06); }
  .share-shell > .container { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body:has(.share-topbar-btn) .fb-launcher-btn { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body:has(.share-shell :is(input:not([type="checkbox"]):not([type="radio"]), textarea):focus) .share-topbar .share-topbar-btn { display: none; }
}
@media (min-width: 861px) { header.topbar > .share-trip-meta { margin-left: 24px; } }
.img-sheet .app-sheet-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.img-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.img-tpl { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-card); background: var(--card); color: var(--text); font-size: 13.5px; cursor: pointer; }
.img-tpl:hover { border-color: var(--text-faint); }
.img-tpl.selected { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in oklch, var(--brand) 25%, transparent); }
.img-tpl b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-swatch { flex: none; display: grid; align-content: center; gap: 3px; width: 26px; height: 32px; padding: 0 5px; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: var(--radius-sm); background: #fff; }
.img-swatch i { display: block; height: 3px; border-radius: 2px; background: #14161a; }
.img-swatch i:first-child { width: 60%; background: #2a5bd7; }
.img-swatch--magazine { background: #f6f1e7; }
.img-swatch--magazine i { background: #2b2118; }
.img-swatch--magazine i:first-child { width: 100%; height: 7px; background: #2b2118; }
.img-swatch--diary { background: #fff3d6; border: 1.5px solid #1f2430; }
.img-swatch--diary i { background: #1f2430; }
.img-swatch--diary i:first-child { background: #ff7a59; }
.img-qr { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.img-qr input { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.img-qr span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.img-qr b { font-size: 14px; }
.img-qr small { font-size: 12px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.img-preview { flex: 1 1 auto; min-height: 140px; max-height: 44dvh; overflow: auto; padding: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-sunken); text-align: center; }
.img-preview canvas { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.img-preview .muted { margin: 40px 0; }
.img-note { margin: 0; font-size: 12px; color: var(--text-muted); }
.img-sheet .memo-sheet-actions .btn { gap: 6px; }
.img-sheet .memo-sheet-actions .btn .icon { width: 16px; height: 16px; }
@media (max-width: 860px) {
  #sheet-handle { touch-action: none; user-select: none; -webkit-user-select: none; cursor: ns-resize; }
}
@media (max-width: 860px) {
  #tab-panel-sched.map-view .trip-col-main > .sheet-handle { padding: 11px 0 9px; }
}
.sched-add-close { display: none; }
@media (max-width: 860px) {
  #sched-search-row-main { gap: 5px; align-items: center; padding-bottom: 6px; }
  #sched-search-row-main .sched-search-wrap { flex: 1 1 0; min-width: 0; height: 42px; padding-left: 10px; padding-right: 8px; }
  #sched-search-row-main .sched-search-btn { flex: none; height: 42px; min-width: 46px; padding: 2px 3px 1px; }
  #sched-search-row-main > .sched-tool-btn { flex: none; width: 40px; height: 42px; min-width: 0; padding: 0; justify-content: center; border-radius: var(--radius-md); }
  #sched-search-row-main .sched-add-close { display: inline-flex; align-items: center; justify-content: center; min-width: 0; width: 30px; padding: 0; border-color: transparent; background: none; color: var(--text-muted); }
  #sched-search-row-main .sched-add-close .icon-inline { margin: 0; }
  #sched-search-row-main .sched-add-close .icon { width: 18px; height: 18px; }
  #tab-panel-sched:has(#sched-add-panel:not([hidden])) .sched-add-toggle-row.tools-in-search { display: none; }
  .nearby-places-block > .sched-search-row { gap: 5px; align-items: center; }
  .nearby-places-block > .sched-search-row .sched-search-wrap { flex: 0 0 var(--add-search-w, 46%); min-width: 0; height: 42px; padding-left: 10px; padding-right: 8px; }
  .nearby-places-block > .sched-search-row .sched-search-btn { flex: 1 1 0; height: 42px; justify-content: center; }
}
.sched-list .day-group > .sched-summary.is-inline { z-index: 6; }
@media (max-width: 860px) {
  .sched-add-panel > #sched-search-row-main { padding-top: 6px; }
  .sched-list .day-group > .sched-summary.is-inline { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 641px) {
  .it2-rail .arr-chip { top: -4px; }
  .item-row.it2.is-open .it2-col > .arr-detail { margin: 13px 0 0; }
  .item-row.it2.is-open .it2-rail .arr-chip { top: 18px; }
}
@media (max-width: 640px) {
  .item-row.it2.is-open .it2-col > .arr-detail { margin: 6px 0 5px; }
}
.item-row.it2.is-open .it2-col > .arr-detail { flex-wrap: nowrap; overflow: hidden; }
.item-row.it2.is-open .it2-col > .arr-detail > * { flex: none; }
.item-row.it2.is-open .it2-col > .arr-detail .travel-mode-label,
.item-row.it2.is-open .it2-col > .arr-detail .travel-rare { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row.it2.is-open .it2-col > .arr-detail .arr-warn { flex: 1 1 0; min-width: 0; flex-basis: 0; white-space: nowrap; overflow: hidden; }
.item-row.it2.is-open .it2-col > .arr-detail .arr-warn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row.it2.is-open .it2-col > .arr-detail .travel-route-link { margin-left: auto; white-space: nowrap; }
.sched-summary-weather.is-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 6px 3px 8px; border: 1px solid transparent; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.sched-summary-weather.is-btn:hover { border-color: var(--border); background: var(--bg-sunken); }
.sched-summary-weather.is-btn > .icon { width: 12px; height: 12px; color: var(--text-faint); }
.sched-list .day-group > .sched-summary.is-inline > .sched-summary-weather.is-btn { flex: none; overflow: visible; }
.sched-list .day-group > .sched-summary.is-inline > .day-edit-btn { margin-left: 6px; }
.sched-list .day-group > .sched-summary.is-inline > .sched-summary-weather.is-btn + .day-edit-btn { margin-left: 4px; }
.sched-list .day-group > .sched-summary.is-inline:not(:has(.sched-summary-weather)) > .day-edit-btn { margin-left: auto; }
#tab-panel-sched .sched-col { overflow: hidden; }
#tab-panel-sched .sched-col > .leg-tabs { position: relative; z-index: 3; background: var(--bg); }
#tab-panel-sched .sched-daybar { margin-top: calc(-1 * var(--bars-shift, 0px)); }
#tab-panel-sched #sched-list { overflow-anchor: none; }
#tab-panel-sched #sched-list::before { content: ""; display: block; height: var(--bars-shift, 0px); flex: none; }
#tab-panel-sched.bars-hidden .sched-daybar, #tab-panel-sched.bars-hidden .sched-add-toggle-row { visibility: hidden; }
@media (min-width: 641px) {
  .sched-list .item-row.it2:not(.editing) { row-gap: 4px; }
  .it2-rail .arr-chip { top: -8px; }
  .item-row.it2.is-open .it2-col > .arr-detail { margin: 6px 0 2px; }
  .item-row.it2.is-open .it2-rail .arr-chip { top: 11px; }
}
@media (max-width: 860px) {
  #tab-panel-sched .sched-list { padding-bottom: calc(64px + 20px + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: 84px; }
}
.sched-list .item-row.it2.is-bk .it2-num.it2-bk-mark { background: var(--bg); color: var(--vt, var(--text-muted)); box-shadow: inset 0 0 0 1.5px var(--vt, var(--text-muted)), 0 0 0 3px var(--bg); }
.it2-bk-mark .icon { width: 14px; height: 14px; }
.it2-bk-mark[data-voucher-type="flight"] { --vt: var(--k-move, #2f7bea); }
.it2-bk-mark[data-voucher-type="stay"] { --vt: var(--k-stay, #0a9e90); }
.it2-bk-mark[data-voucher-type="tour"], .it2-bk-mark[data-voucher-type="ticket"] { --vt: var(--k-see, #c98a12); }
.it2-bk-mark[data-voucher-type="transport"] { --vt: var(--k-move, #2f7bea); }
.it2-bk-mark[data-voucher-type="sim"] { --vt: var(--k-etc, #5c6b82); }
.it2-bk-mark[data-voucher-type="car"], .it2-bk-mark[data-voucher-type="etc"] { --vt: var(--k-etc, #5c6b82); }
.it2-card.it2-bk-card { background: var(--bg-sunken); border-color: transparent; box-shadow: none; }
.it2-card.it2-bk-card:hover { border-color: var(--border); box-shadow: none; }
.it2-bk-card .it2-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.it2-bk-card .it2-time { font-weight: 700; color: var(--text); flex: none; }
.it2-bk-card .item-row-title-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.it2-bk-act { flex: none; border: 0; background: none; padding: 4px 0 4px 6px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--brand-fg); cursor: pointer; white-space: nowrap; }
.sched-book-note { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; font-size: 12.5px; color: var(--danger); }
.sched-book-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.bk-time-sub { margin: -2px 0 12px; }
.bk-time-row { display: flex; gap: 8px; }
.bk-time-row label { display: inline-flex; align-items: baseline; gap: 6px; height: 48px; padding: 0 14px; border-radius: var(--radius-md); background: var(--bg-sunken); font-size: 12px; color: var(--text-muted); }
.bk-time-row select { border: 0; background: none; font: inherit; font-size: 20px; font-weight: 700; color: var(--text); height: 48px; font-variant-numeric: tabular-nums; }
.bk-time-note { margin: 10px 0 0; }
.it2-booked { flex: none; height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; background: var(--brand-soft); color: var(--brand-fg); white-space: nowrap; }
.sched-list .item-row.it2.is-memo .it2-num.it2-memo-mark { background: none; border: 0; box-shadow: none; color: var(--text-faint); }
.sched-list .item-row.it2.is-memo .it2-card.it2-memo-card { background: none; border: 0; border-radius: 0; box-shadow: inset 2px 0 0 var(--line); padding: 4px 0 4px 12px; min-height: 0; }
.sched-list .item-row.it2.is-memo .it2-card.it2-memo-card:hover { box-shadow: inset 2px 0 0 var(--text-faint); }
.it2-memo-card .it2-memo-text { color: var(--text-muted); font-size: 13.5px; }
.cand-group { background: none; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 6px 14px 8px; }
.cand-head { margin-bottom: 2px; padding: 6px 0 4px; }
.cand-head-text b { font-weight: 800; }
.cand-list { gap: 0; }
.cand-card { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; padding: 9px 0; min-height: 44px; }
.cand-card:hover { border-color: var(--border); }
.cand-place-btn { border: 0; background: none; box-shadow: none; padding: 0; font-weight: 700; color: var(--brand-fg); height: auto; }
.cand-add-btn { margin-top: 4px; border: 0; background: none; box-shadow: none; justify-content: flex-start; padding-left: 0; color: var(--text-muted); font-weight: 600; }
.sched-list .day-group .item-row.it2.after-bk .it2-rail::before { top: 0; }
.item-edit-form .ie-group:has(> .color-swatches) { display: none; }
.num-color-note { margin: -2px 0 12px; text-wrap: pretty; }
.num-color-pick { display: flex; gap: 8px; }
.num-color-pick .ui-chip { flex: 1; justify-content: center; height: 44px; font-size: 15px; }
.add-head, .add-tabs, .add-foot { display: none; }
body.add-open #sched-add-panel { display: flex; flex-direction: column; background: var(--bg); min-height: 0; }
body.add-open #sched-add-panel[hidden] { display: none; }
body.add-open #sched-add-panel .add-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; height: 54px; flex: none; }
body.add-open #sched-add-panel .add-head > b { font-size: 17px; font-weight: 800; text-align: center; }
.add-day { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 6px 0 6px 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; }
.add-day .icon { width: 16px; height: 16px; }
body.add-open #sched-add-panel .add-tabs { display: flex; flex: none; padding: 0; margin: 12px 0 0; }
body.add-open #sched-add-panel .add-foot { display: flex; align-items: center; gap: 12px; flex: none; padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); }
.add-foot p { flex: 1; margin: 0; font-size: 13.5px; color: var(--text-muted); }
.add-foot p b { color: var(--text); }
.add-foot .ui-btn { min-width: 76px; height: 44px; }
body.add-open #sched-search-row-main { flex: none; margin: 0; padding: 0; }
body.add-open #sched-search-row-main > .sched-search-btn, body.add-open #sched-search-row-main > .sched-tool-btn { display: none !important; }
body.add-open #sched-search-row-main .sched-search-wrap { flex: 1; height: 52px; border: 0; border-radius: var(--radius-md); background: var(--bg-sunken); padding: 0 14px; }
body.add-open #sched-search-row-main .sched-search-kbd { display: none; }
body.add-open #sched-aux { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; margin: 0; padding: 4px 0 8px; border: 0; background: none; }
@media (max-width: 860px) {
  body.add-open #sched-add-panel { position: fixed; inset: 0; z-index: 70; height: 100dvh; max-height: none !important; margin: 0; padding: env(safe-area-inset-top, 0px) var(--gutter) 0; }
  body.add-open #sched-aux { flex: 1 1 0 !important; max-height: none !important; height: auto !important; }
  body.add-open .nearby-places-block .sched-search-row { display: flex; gap: 8px; padding: 10px 0 4px; }
  body.add-open .nearby-places-block .sched-search-wrap { flex: 1 1 auto; width: auto !important; min-width: 0; }
  body.add-open .nearby-places-block .sched-search-btn { flex: none; width: auto !important; min-width: 64px; }
}
@media (min-width: 861px) {
  .sched-col.add-open > :not(#sched-add-panel) { display: none !important; }
  .sched-col.add-open > #sched-add-panel { flex: 1 1 auto; padding: 0 20px; }
}
body.add-open #place-results .place-result-item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 10px 0; background: none; }
body.add-open #place-results .place-result-item:hover, body.add-open #place-results .place-result-item.is-selected { background: none; }
body.add-open #place-results .place-result-item .btn { border: 0; background: none; box-shadow: none; padding: 6px 0 6px 8px; height: auto; font-size: 13px; font-weight: 700; color: var(--brand-fg); }
.de-row { background: none; border-bottom: 1px solid var(--border); padding: 4px 0; }
.de-row.is-selected { background: none; }
.de-check input[type="checkbox"], .cand-place-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: none; cursor: pointer; position: relative; flex: none; }
.de-check input[type="checkbox"]:checked, .cand-place-row input[type="checkbox"]:checked { background: var(--brand); box-shadow: none; }
.de-check input[type="checkbox"]:checked::after, .cand-place-row input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.de-done.btn { border: 0; background: none; box-shadow: none; color: var(--brand-fg); font-weight: 700; font-size: 15px; min-width: 0; padding: 0 4px; }
.cand-place-row { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 10px 0; }
.cand-place-list > .cand-place-row:last-child { border-bottom: 0; }
#day-tabs.is-cand-on .sched-day-card.cand-chip { background: var(--brand); border-color: var(--brand); border-style: solid; color: var(--brand-contrast, #fff); }
#day-tabs.is-cand-on .sched-day-card.cand-chip .sched-day-card-label, #day-tabs.is-cand-on .sched-day-card.cand-chip .sched-day-card-date { color: var(--brand-contrast, #fff); }
#day-tabs.is-cand-on .sched-day-card.active:not(.cand-chip) { background: var(--card); border-color: var(--border); color: var(--text); }
#day-tabs.is-cand-on .sched-day-card.active:not(.cand-chip) .sched-day-card-date, #day-tabs.is-cand-on .sched-day-card.active:not(.cand-chip) .sched-day-card-count { color: var(--text-muted); opacity: 1; font-weight: 500; }
.cand-fold { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 32px; }
.cand-fold > .icon { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.cand-fold .cand-head-text { flex: none; }
.cand-list[hidden] { display: none; }
.cand-group.is-folded { padding-top: 2px; padding-bottom: 2px; }
.cand-group.is-folded .cand-head { margin: 0; padding: 2px 0; }
.cand-cardw { display: flex; align-items: center; border-top: 1px solid var(--border); }
.cand-cardw > .cand-card { flex: 1; min-width: 0; border-top: 0; }
.cand-del { flex: none; width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: 50%; background: none; color: var(--text-faint); display: grid; place-items: center; cursor: pointer; }
.cand-del:hover { background: var(--bg-sunken); color: var(--text); }
.cand-del .icon { width: 16px; height: 16px; }
@media (min-width: 861px) {
  #tab-panel-sched .trip-chips--col:not([hidden]) { margin-top: calc(-1 * var(--bars-shift, 0px)); }
  #tab-panel-sched .trip-chips--col:not([hidden]) ~ .sched-daybar { margin-top: 0; }
  #tab-panel-sched.bars-hidden .trip-chips--col { visibility: hidden; }
}
@media (max-width: 860px) { .trip-chips--top { padding-top: 6px; padding-bottom: 6px; } }
@media (max-width: 640px) {
  .it2-rail .arr-chip { top: -11px; }
  .sched-list .item-row.it2:not(.editing) > .it2-rail > .it2-num { transform: translateY(2px); }
}
#day-tabs.is-cand-on .sched-day-card.active:not(.cand-chip) .sched-day-card-label { color: var(--text); }
@media (max-width: 640px) {
  .it2-rail .arr-chip { top: -9.5px; }
  .sched-list .item-row.it2:not(.is-memo) .it2-card { min-height: 52px; }
  .sched-list .item-row.it2:not(.editing) > .it2-rail > .it2-num { transform: translateY(2px); }
  .sched-list .item-row.it2:not(.editing):not(.is-open):not(.is-memo):has(.it2-memo) > .it2-rail > .it2-num { transform: translateY(10px); }
}
@media (min-width: 641px) {
  .sched-list .item-row.it2:not(.editing):not(.is-open):not(.is-memo):has(.it2-memo) > .it2-rail > .it2-num { transform: translateY(11px); }
}
.add-head + .cand-add-banner { margin: 2px 0 10px; }
@media (max-width: 640px) {
  .sched-list .item-row.it2 .it2-card { margin: 2px 0; }
  .item-row.it2.is-open .it2-col > .arr-detail { margin: 5px 0 4px; }
}
.it2-head .it2-time { flex: none; width: 38px; min-width: 38px; box-sizing: border-box; padding: 0; text-align: left; }
.it2-head .it2-time.is-blank { display: inline-block; height: 1px; }
.arr-warn .w-short { display: none; }
@media (max-width: 640px) {
  .arr-warn .w-long { display: none; }
  .arr-warn .w-short { display: inline; white-space: nowrap; }
  .arr-detail .arr-warn { flex: none; overflow: visible; }
}
.arr-warn { flex-wrap: nowrap; white-space: nowrap; min-width: 0; cursor: pointer; }
.arr-warn .w-short { display: none !important; }
.arr-warn__clip { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.arr-warn .w-long { display: inline-block !important; white-space: nowrap; will-change: transform; }
.item-row.it2.is-open .it2-col > .arr-detail .arr-warn { flex: 1 1 0; min-width: 0; overflow: hidden; align-items: center; }
.arr-warn.is-marquee .arr-warn__clip { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.arr-warn.is-marquee .w-long { animation: arrWarnMq var(--mq-t, 8s) ease-in-out infinite; }
.item-row.it2.is-open .it2-col > .arr-detail:has(.arr-warn) .arr-min { display: none; }
@media (max-width: 640px) {
  .item-row.it2.is-open .it2-col > .arr-detail:has(.arr-warn) .travel-route-link { font-size: 0; padding-left: 2px; padding-right: 2px; }
  .item-row.it2.is-open .it2-col > .arr-detail:has(.arr-warn) .travel-route-link svg { width: 16px; height: 16px; }
}
@keyframes arrWarnMq { 0%, 18% { transform: translateX(0); } 62%, 80% { transform: translateX(calc(-1 * var(--mq-d, 0px))); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .arr-warn.is-marquee .w-long { animation: none; display: inline !important; }
  .arr-warn__clip { text-overflow: ellipsis; }
  .arr-warn.is-marquee .arr-warn__clip { -webkit-mask-image: none; mask-image: none; }
}
.fb-overlay > .dp-modal { max-height: calc(100% - 24px); }
.dp-modal > .dp-body { flex: 1 1 auto; min-height: 0; }
.dp-modal > .dp-head, .dp-modal > .dp-foot { flex: none; }
#tab-panel-sched .sched-col > .leg-tabs:not(:empty) { margin-top: calc(-1 * var(--bars-shift, 0px)); z-index: auto; }
#tab-panel-sched .sched-col > .leg-tabs:not(:empty) ~ .sched-daybar { margin-top: 0; }
#tab-panel-sched.bars-hidden .sched-col > .leg-tabs { visibility: hidden; }
@media (min-width: 861px) {
  #tab-panel-sched .trip-chips--col:not([hidden]) ~ .leg-tabs:not(:empty) { margin-top: 0; }
}
.sched-daybar-prev, .sched-daybar-next { width: 28px; }
.sched-daybar-prev { padding-left: 2px; background: linear-gradient(to right, var(--card) 62%, transparent); }
.sched-daybar-next { padding-right: 2px; background: linear-gradient(to left, var(--card) 62%, transparent); }
.trip-bottom-tabbar button[hidden], .app-rail-tabs .app-rail-btn[hidden] { display: none; }
.al { max-width: 1100px; margin: 0 auto; padding-bottom: 24px; }
.al-head { display: flex; align-items: center; gap: 10px; min-height: var(--ctl-h); }
.al-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.al-cnt { flex: 1; min-width: 0; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-add { flex: none; margin-left: auto; }
.al-add .icon { width: 16px; height: 16px; }
.al-seg { padding: 12px 0 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.al-seg::-webkit-scrollbar { display: none; }
.al-seg .ui-chip { flex: none; }
.al-gh { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: 13px; color: var(--text-muted); }
.al-gh b { font-size: 15px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-gh span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-gh em { font-style: normal; font-weight: 700; color: var(--brand-fg); }
.al-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.al-c { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--bg-sunken); overflow: hidden; cursor: pointer; }
.al-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-c img:not([src]) { visibility: hidden; }
.al-empty { text-align: center; padding: 64px 12px 24px; }
.al-empty__ic .icon { width: 52px; height: 52px; color: var(--text-faint); stroke-width: 1.2; }
.al-empty h3 { margin: 12px 0 8px; font-size: 19px; font-weight: 800; }
.al-empty p { margin: 0 auto 18px; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--text-muted); word-break: keep-all; text-wrap: pretty; }
.al-empty .ui-btn .icon { width: 18px; height: 18px; }
.al-empty .al-fine { margin: 16px auto 0; font-size: 12px; color: var(--text-faint); }
#tab-panel-album.al-drop { outline: 2px dashed var(--brand); outline-offset: -8px; }
@media (min-width: 641px) { .al-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; } .al-c { border-radius: var(--radius); } }
@media (min-width: 1100px) { .al-grid { grid-template-columns: repeat(7, 1fr); } }
.al-prog { height: 6px; border-radius: 3px; background: var(--bg-sunken); overflow: hidden; }
.al-prog i { display: block; width: 0; height: 100%; background: var(--brand); transition: width 0.2s ease; }
.al-pt { margin: 8px 0 12px; font-size: 13px; color: var(--text-muted); }
.al-uprow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.al-uprow:empty { display: none; }
.al-c--done { cursor: default; }
.al-c--done .icon { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #22a565; color: #fff; stroke-width: 3; }
.al-note { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-sunken); }
.al-note[hidden] { display: none; }
.al-note p { margin: 0; font-size: 13px; line-height: 1.7; }
.al-up .ui-btn--full { margin-top: 14px; }
.al-on .icon { width: 18px; height: 18px; color: var(--brand-fg); }
.fb-overlay.al-view { padding: 0; align-items: stretch; background: #000; z-index: 1250; }
.al-view__in { flex: 1; min-width: 0; display: flex; flex-direction: column; color: #fff; }
.al-view__top { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top, 0px)) 8px 8px; }
.al-ib { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.al-ib .icon { width: 24px; height: 24px; }
.al-view__t { flex: 1; min-width: 0; text-align: center; }
.al-view__t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-view__t small { font-size: 12px; opacity: 0.7; }
.al-view__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.al-view__img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.al-view__img:not([src]) { visibility: hidden; }
.al-view__img.is-loading { filter: blur(1px); }
.al-nav { display: none; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; place-items: center; }
.al-nav[hidden] { display: none !important; }
.al-nav--l { left: 14px; } .al-nav--r { right: 14px; }
.al-view__meta { padding: 10px 18px 2px; }
.al-view__place { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 13px; font-weight: 700; color: #b9b3ff; }
.al-view__place[hidden], .al-view__cap[hidden] { display: none; }
.al-view__place .icon { width: 15px; height: 15px; }
.al-view__cap { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.al-view__acts { display: flex; padding: 10px 6px calc(16px + env(safe-area-inset-bottom, 0px)); }
.al-act { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 600; color: #fff; cursor: pointer; }
.al-act .icon { width: 22px; height: 22px; }
.al-act span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-act.is-danger { color: #ff7b7f; }
@media (min-width: 861px) {
  .fb-overlay.al-view { background: rgba(6, 8, 12, 0.94); }
  .al-view__in { display: grid; grid-template-columns: minmax(0, 1fr) 270px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "stage top" "stage side"; }
  .al-view__top { grid-area: top; flex-direction: row-reverse; padding: 16px 14px 0 22px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .al-view__top > span.al-ib { display: none; }
  .al-view__t { text-align: left; } .al-view__t b { font-size: 16px; }
  .al-view__stage { grid-area: stage; padding: 28px 72px; }
  .al-view__side { grid-area: side; display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, 0.12); padding: 14px 0 16px; }
  .al-view__meta { padding: 8px 22px; }
  .al-view__acts { margin-top: auto; flex-direction: column; padding: 0 12px; gap: 2px; }
  .al-act { flex: none; flex-direction: row; gap: 12px; padding: 10px; border-radius: var(--radius-md); font-size: 14px; }
  .al-act:hover { background: rgba(255, 255, 255, 0.1); }
  .al-nav { display: grid; }
}
.ps-mid:empty { display: none; }
.ps-photos { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.ps-photos__h { display: flex; align-items: center; }
.ps-photos__h b { flex: 1; font-size: 15px; }
.ps-photos__h b em { font-style: normal; color: var(--brand-fg); margin-left: 2px; }
.ps-photos__all { display: inline-flex; align-items: center; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text-muted); cursor: pointer; padding: 4px 0; }
.ps-photos__all .icon { width: 16px; height: 16px; }
.ps-photos__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.ps-photos__row .al-c { border-radius: var(--radius); }
.al-c--add { display: grid; place-items: center; align-content: center; gap: 2px; background: var(--bg-sunken); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text-muted); }
.al-c--add .icon { width: 22px; height: 22px; }
.al-c--add small { font-size: 11px; font-weight: 600; }
.ps-photos + .ps-info, .ps-mid + .ps-info { margin-top: 12px; }
.al-thumbs { flex: none; display: inline-flex; align-items: center; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.al-thumbs img { width: 28px; height: 28px; object-fit: cover; border-radius: 7px; margin-left: -7px; box-shadow: 0 0 0 2px var(--card); background: var(--bg-sunken); }
.al-thumbs img:first-child { margin-left: 0; }
.al-thumbs i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-left: 5px; }
@media (min-width: 861px) {
  #tab-panel-album { position: relative; }
  #tab-panel-album .al { max-width: none; margin: 0; }
  #tab-panel-album .al-title { display: none; }
  #tab-panel-album .al-head { min-height: 34px; padding-right: 160px; }
  #tab-panel-album .al-cnt { font-size: 15px; font-weight: 700; color: var(--text); }
  #tab-panel-album .al-add { position: absolute; top: 24px; right: 17px;  z-index: 2; min-height: 0; height: 34px; padding: 0 16px 0 12px; font-size: 14px; font-weight: 700; box-shadow: none; }
  #tab-panel-album .al-add .icon { width: 17px; height: 17px; }
}
.it2-tobook { flex: none; height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; background: var(--warn-bg); color: var(--warn-text); white-space: nowrap; }
#tab-panel-album .al-title { display: none; }
#tab-panel-album .al-cnt { font-size: 15px; font-weight: 700; color: var(--text); }
body.is-sample #sched-add-toggle-row { display: none !important; }
@media (min-width: 861px) {
  body.is-sample #tab-panel-sched .sched-col > .sched-daybar { margin-top: calc(-1 * var(--bars-shift, 0px)) !important; }
}
.sched-list .day-group > .sched-summary.is-inline > .sched-summary-weather { margin-left: 6px; }
.sched-list .day-group > .sched-summary.is-inline > .sched-summary-weather ~ :is(.sched-summary-tools, .day-add2-btn, .day-edit-btn) { margin-left: 0; }
.sched-list .day-group > .sched-summary.is-inline > .sched-summary-weather ~ :is(.sched-summary-tools, .day-add2-btn, .day-edit-btn):not(.sched-summary-weather ~ :is(.sched-summary-tools, .day-add2-btn, .day-edit-btn) ~ *) { margin-left: auto; }
