/* v1.1: one day per row; only the cards inside a day scroll horizontally. */
.card-bottom { justify-content: flex-end; }
.spot-card .card-top { align-items: center; gap: 6px; margin-bottom: 8px; }
.card-top > .tag { flex: 0 0 auto; }
.card-controls { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.spot-card .icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  gap: 0;
  padding: 0;
  border: 1px solid #e1e6d9;
  border-radius: 4px;
  background: #f3f5ed;
  color: #6d8063;
  cursor: pointer;
  touch-action: manipulation;
}
.icon-action svg { width: 10px; height: 10px; flex: 0 0 10px; pointer-events: none; }
.vote-count { font-size: 8px; line-height: 1; font-variant-numeric: tabular-nums; }
.spot-card .icon-action.vote { width: 34px; min-width: 34px; flex-basis: 34px; gap: 4px; }
.move-action svg { width: 13px; height: 13px; flex-basis: 13px; }
.card-title { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.card-title .card-name { min-width: 0; flex: 1; margin-bottom: 0; }
.stop-number { flex: 0 0 auto; font-size: 10px; font-weight: 600; color: #7c8c6c; font-variant-numeric: tabular-nums; }
.board-footer { justify-content: flex-end; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.assignment-status { padding: 2px 6px; border-radius: 4px; font-size: 10px; line-height: 1.6; white-space: nowrap; }
.assignment-status.unassigned { background: #f0f0e7; color: #7d8676; }
.assignment-status.scheduled { background: #e7eee0; color: #526e46; }
.wishlist-mode .spot-card { cursor: default; }
.wishlist-mode .pool-hint { display: none; }
.pool-title h3 b { font: inherit; }
.spot-card .icon-action:hover { background: #e8eddf; }
.spot-card .icon-action.voted { color: #bf7646; background: #f8e6d8; border-color: #ecccb4; }
.spot-card .delete-button:hover { color: #b36c52; background: #f8e8df; }
.move-action { position: relative; }
.spot-card .move-action .move-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.move-action:focus-within { outline: 3px solid #e9ac75; outline-offset: 2px; }
.card-reference { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; color: #75866b; text-underline-offset: 3px; }
@media (min-width: 701px) and (max-width: 1150px) {
  .board-layout { grid-template-columns: 235px minmax(0, 1fr); }
}
.field-hint { color: #738269; font-size: 11px; font-weight: 400; line-height: 1.6; }
.duration-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.duration-group legend { font-size: 11px; margin-bottom: 8px; padding: 0; }
.duration-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.duration-fields label { min-width: 0; }
.art-caption { z-index: 2; font-size: 12px; letter-spacing: 1px; bottom: 16px; }
@media (max-width: 700px) {
  .hero .art-caption { display: block; bottom: 14px; right: 12px; font-size: 10px; letter-spacing: 0; }
  .hero-art { opacity: .6; }
  .hero-copy { padding-bottom: 46px; }
  #add-form .form-row { grid-template-columns: 1fr; gap: 0; }
}
.days {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  min-width: 0;
}
.day-row {
  min-width: 0;
  background: #eff1e9;
  border: 1px solid #dfe5d6;
  border-radius: 10px;
}
.day-heading { margin: 0; font-size: inherit; }
.day-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 88px;
  padding: 16px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 400;
}
.day-toggle:hover { background: #e9eddf; }
.day-toggle:focus-visible { outline-offset: -3px; }
.day-date-block { display: flex; flex-direction: column; gap: 5px; flex: 0 0 105px; }
.day-number { font-size: 10px; color: #708064; letter-spacing: 1.2px; }
.day-date { font-size: 22px; line-height: 1.2; font-weight: 700; }
.day-date small { font-size: 11px; font-weight: 500; margin-left: 4px; color: #738269; }
.day-overview { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 7px; }
.day-title { margin: 0; font-size: 14px; line-height: 1.5; }
.day-info { margin: 0; font-size: 11px; color: #77866c; gap: 14px; flex-wrap: wrap; }
.day-toggle-label { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; font-size: 12px; color: #64795a; }
.day-chevron { display: inline-block; font-size: 20px; line-height: 1; }
.is-collapsed .day-chevron { transform: rotate(180deg); }
.day-content { border-top: 1px solid #e0e6d7; }
.day-content[hidden] { display: none; }
.day-track-hint { padding: 12px 18px 0; font-size: 10px; color: #75836b; }
.day-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 13px;
  min-height: 0;
  padding: 12px 16px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: thin;
  scrollbar-color: #becab1 transparent;
}
.day-cards > .spot-card { flex: 0 0 235px; min-width: 0; scroll-snap-align: start; }
.day-cards:focus-visible { outline: 2px solid #9baa8b; outline-offset: -3px; }
.drag-active .day-cards { scroll-snap-type: none; }
.day-cards > .empty { flex: 1; min-height: 95px; padding: 18px; font-size: 12px; }
.day-cards .card-name { font-size: 14px; }
.day-cards .card-meta { font-size: 11px; }
.day-cards .card-note { font-size: 12px; }
.day-cards .author { font-size: 11px; }
.day-cards .tag { font-size: 10px; }
.day-cards .move-select { font-size: 11px; }
.day-cards .drop-before {
  border-top: 1px solid #e0e4d8 !important;
  border-left: 3px solid var(--orange) !important;
}
.day-end { text-align: left; margin: 0 18px 14px; font-size: 10px; color: #7c8873; }
.spot-card { touch-action: auto; }
.schedule-note { font-size: 11px; color: #75836b; line-height: 1.8; gap: 16px; }
.schedule-note span:last-child { max-width: none; }

@media (max-width: 700px) {
  main { padding-inline: 4%; }
  header { padding-inline: 4%; gap: 12px; }
  .brand { gap: 7px; letter-spacing: 0; white-space: nowrap; }
  .header-right .button { min-height: 44px; }
  .workspace-heading { align-items: center; }
  .workspace-heading > div { min-width: 0; }
  .workspace-heading h2 { line-height: 1.6; font-size: 16px; }
  .workspace-heading .button { min-height: 44px; flex-shrink: 0; }
  .toolbar { flex-wrap: wrap; gap: 0 16px; align-items: center; }
  .toolbar-actions { padding: 0 0 10px; gap: 16px; }
  .text-button { min-height: 36px; font-size: 12px; }
  .tabs { height: 48px; gap: 20px; }
  .tab { font-size: 14px; }
  .board-layout { min-width: 0; gap: 26px; }
  .wish-panel, .schedule { min-width: 0; width: 100%; }
  .pool-title .tiny { font-size: 10px; }
  .search-box { margin: 14px 0 8px; min-height: 44px; }
  .search-box input { max-width: none; font-size: 16px; }
  .filters { position: static; margin: 0 0 9px; padding: 0; background: transparent; gap: 8px; }
  .filter { min-height: 40px; min-width: 48px; font-size: 12px; }
  .pool-hint { font-size: 11px; line-height: 1.8; }
  .pool-cards { gap: 12px; overscroll-behavior-x: contain; }
  .pool-cards > .spot-card { flex-basis: 240px; }
  .pool-add { min-height: 44px; font-size: 12px; }
  .spot-card { padding: 15px 14px 10px; }
  .card-name, .day-cards .card-name { font-size: 15px; }
  .card-meta, .day-cards .card-meta { font-size: 12px; }
  .card-note, .day-cards .card-note { font-size: 13px; line-height: 1.8; }
  .author, .day-cards .author { font-size: 11px; }
  .tag, .day-cards .tag { font-size: 11px; padding: 4px 7px; }
  .vote { min-height: 44px; min-width: 48px; font-size: 13px; }
  .card-bottom { padding-top: 3px; margin-top: 9px; }
  .card-actions { gap: 8px; margin-top: 3px; }
  .move-select, .day-cards .move-select { min-height: 44px; font-size: 16px; width: 0; }
  .delete-button, .link-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 18px; }
  .schedule-note { flex-direction: column; gap: 0; font-size: 11px; }
  .schedule-note span:last-child { max-width: none; text-align: left; }
  .days { gap: 14px; }
  .day-toggle { gap: 12px; padding: 15px 12px; min-height: 88px; }
  .day-date-block { flex-basis: 81px; }
  .day-date { font-size: 21px; }
  .day-date small { display: block; margin: 6px 0 0; font-size: 11px; }
  .day-number { font-size: 9px; }
  .day-title { font-size: 14px; }
  .day-overview { gap: 5px; }
  .day-info { gap: 2px 9px; font-size: 11px; }
  .day-toggle-label { flex-direction: column-reverse; gap: 5px; font-size: 10px; }
  .day-track-hint { font-size: 11px; line-height: 1.8; padding: 10px 12px 0; }
  .day-cards { padding: 12px; gap: 12px; scroll-padding-inline: 12px; }
  .day-cards > .spot-card { flex-basis: clamp(220px, 72vw, 290px); }
  .day-cards > .empty { font-size: 12px; min-height: 106px; }
  .day-end { margin: 0 12px 13px; font-size: 11px; }
  .pool-cards .drop-before { border-top: 1px solid #e0e4d8 !important; border-left: 3px solid var(--orange) !important; }
  .board-footer { flex-wrap: wrap; font-size: 11px; line-height: 1.8; }
  .board-footer span:first-child { max-width: none; }
  .demo-note { font-size: 11px; }
  dialog { padding: 22px 18px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  form input, form select, form textarea { font-size: 16px; min-height: 44px; }
  .close { min-width: 44px; min-height: 44px; }
  .wishlist-mode .pool-cards { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  h1 { font-size: 24px; }
  .brand { font-size: 14px; }
  .header-right .button { font-size: 9px; padding-inline: 7px; }
  .day-date-block { flex-basis: 70px; }
  .day-toggle { gap: 9px; padding-inline: 10px; }
  .day-title { font-size: 13px; }
}
