:root {
  --action-ink: #0757bd;
  --action-soft: #edf5ff;
  --line-strong: #d7e2ef;
}
[hidden] { display: none !important }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
button, input, select, textarea { font: inherit }
.journey .field select {
  background: #fff;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
}
.journey .page-title { margin-top: 5px; overflow-wrap: anywhere }
.journey .page-sub, .journey .desc, .journey-row .atxt small { color: #506479 }
.journey .summary { overflow-wrap: anywhere }
.journey .secondary { margin-block: 8px; white-space: normal }
.journey .primary { margin-block: 8px; color: #fff; background: #1464ce }
.journey .field { min-width: 0 }
.journey .field input, .journey .field textarea { width: 100%; min-width: 0 }
.journey-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 10px 0;
}
.journey-search .field { margin: 0 }
.journey-search .secondary { margin: 0; width: auto }
.journey-fields { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
.journey-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0 }
.journey-card {
  border: 1px solid var(--line-strong);
  padding: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  border-radius: 16px;
}
.journey-photo {
  background: #e8f1ff;
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.journey > .journey-photo { aspect-ratio: 2.3 / 1; border-radius: 16px; margin: 16px 0 }
.journey-photo.food { background: #fceada }
.journey-photo.travel { background: #e2eee9 }
.journey-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1 }
.journey-photo span { font-size: 42px }
.journey-card-body { display: grid; gap: 7px; padding: 11px }
.journey-card-body small { color: #506479; font-size: .78rem; line-height: 1.35 }
.journey-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; color: var(--action-ink); font-size: .8rem; font-weight: 700 }
.journey-list { margin-top: 12px }
.journey-row { min-height: 60px; text-align: left }
.journey-row .atxt { min-width: 0; overflow-wrap: anywhere }
.journey-row .astat { color: var(--action-ink); flex-shrink: 0; max-width: 34%; white-space: normal; text-align: right }
.journey-disclosure {
  border: 1px solid var(--line-strong);
  padding: 14px;
  border-radius: 12px;
  margin: 14px 0;
  color: var(--ink);
}
.journey-disclosure summary { cursor: pointer; font-weight: 700 }
.journey-disclosure p { color: #506479; margin: 10px 0 0 }
.journey-line, .journey-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin: 10px 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
}
.journey-status { background: var(--action-soft); color: #12477f }
.journey-status .secondary { margin: 0; width: auto }
.journey-line small { display: block; color: #506479; margin-top: 4px }
.journey-stepper { display: flex; gap: 8px; align-items: center }
.journey-stepper .secondary { width: auto; margin: 0; min-width: 38px; min-height: 38px; padding: 6px 9px }
.journey-timeline { list-style: none; margin: 20px 0; padding: 0 0 0 14px; border-left: 2px solid var(--line-strong) }
.journey-timeline li { margin: 0; padding: 0 0 13px; position: relative; color: #53687b }
.journey-timeline li:last-child { padding-bottom: 0 }
.journey-timeline li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #bed0e3 }
.journey-timeline .reached { color: var(--action-ink); font-weight: 700 }
.journey-timeline .reached::before { background: var(--blue) }
.ops-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px }
.ops-toolbar .journey-search { flex: 1 1 220px }
.ops-toolbar > .primary { width: auto; min-height: 44px }
.ops-table { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; margin: 16px 0 }
.ops-table-head, .ops-table-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px }
.ops-table-head { font-size: .76rem; color: #425c75; font-weight: 700; background: #eff5fb }
.ops-table-row { border-top: 1px solid var(--line-strong); font-size: .84rem; overflow-wrap: anywhere }
.ops-link { border: 0; background: transparent; padding: 4px 0; color: var(--action-ink); text-align: left; font-weight: 700 }
.ops-status { display: inline-block; background: #e7f1ff; color: #12477f; border-radius: 8px; padding: 4px 7px; font-size: .75rem; font-weight: 700 }
.toast { max-width: calc(100% - 36px); text-align: center; pointer-events: none }
.workspace-operations { margin-block: 12px }
@media (max-width: 480px) {
  .ops-table-head, .ops-table-row { gap: 6px; padding: 10px 8px }
  .ops-table-row { font-size: .75rem }
  .ops-status { font-size: .69rem; padding: 4px }
}
@media (min-width: 768px) {
  .stage { padding: 20px }
  .app { width: 100%; max-width: 1120px; height: calc(100dvh - 40px); min-height: 0; border-radius: 24px }
  .app .statusbar { display: none }
  .app .top, .app .bottom { padding-inline: 24px }
  .app .page { width: min(100%, 920px); margin-inline: auto; padding: 24px 28px 36px }
  .app .journey-grid { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 16px }
  .app .journey > .journey-photo { max-height: 320px; aspect-ratio: 3 / 1 }
  .app .services { grid-template-columns: repeat(6,minmax(0,1fr)) }
  .app .service { min-height: 82px }
  .app .journey .map { min-height: 235px }
  .app .journey .field { max-width: 680px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}
.role-form { display: block; margin-block: 14px }
.role-form .field { margin-block: 10px }
.role-form .secondary { width: auto }

.journey .journey-card { transition: border-color .15s, box-shadow .15s }
.journey .journey-card:hover { border-color: #9abde8; box-shadow: 0 5px 12px #162d4512 }
.journey-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px }
.journey-quick-actions .secondary { width: auto; margin: 0; padding-inline: 14px; min-height: 42px }
.journey .journey-search .field { max-width: none }
.store-banner { border-radius: 18px; padding: clamp(20px, 5vw, 44px); color: white; background: #0757bd; margin: 18px 0 }
.store-banner h2 { font-size: clamp(1.6rem, 4vw, 2.7rem); margin: 8px 0; overflow-wrap: anywhere }
.store-banner p { color: inherit; margin: 0; overflow-wrap: anywhere }
.store-forest { background: #16513d }
.store-ink { background: #242c40 }
.store-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px }
.store-products article { margin: 0 }
.store-products button { width: auto }
