.journey-steps {
  clear: both;
  margin: 0 0 26px;
}
.journey-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.journey-steps li {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 5px;
  padding-right: 5px;
  color: var(--muted);
}
.journey-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 0;
  height: 1px;
  background: var(--line);
}
.journey-circle {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: var(--paper);
}
.journey-steps .complete .journey-circle,
.journey-steps .current .journey-circle {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.journey-steps .current .journey-circle { box-shadow: 0 0 0 4px var(--soft); }
.journey-steps .current { color: var(--ink); font-weight: 700; }
.journey-step-label { font-size: 13px; line-height: 1.45; }
.journey-here, .journey-badge {
  display: inline-block;
  width: fit-content;
  border-radius: 20px;
  padding: 2px 8px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}
.journey-here { font-size: 10px; }
.record .journey-badge { margin-top: 8px; }
.journey-notification { margin-bottom: 18px; }
.journey-share-panel {
  clear: both;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px;
  margin: 20px 0;
}
.journey-share-panel > p { margin: 0 0 14px; }
.journey-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.journey-link-row .field, .journey-link-row button { margin: 0; }
.journey-link-row input { min-width: 0; text-overflow: ellipsis; }
.journey-share-heading { font-size: 16px; margin: 18px 0 8px; }
.journey-share-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.journey-share-choices .journey-share-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: start;
  min-height: 60px;
  padding: 8px;
  margin: 0;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  line-height: 1.4;
}
.journey-share-choice:hover { background: var(--soft); }
.journey-share-choice strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.journey-share-choice small { display: block; color: var(--muted); font-size: 11px; }
.journey-share-icon {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  height: 24px;
  border-radius: 7px;
  background: var(--soft);
  font-weight: 700;
}
.journey-share-panel .journey-shared { width: 100%; margin: 12px 0 0; }
.journey-share-status { margin: 4px 0; font-size: 13px; color: var(--accent); }
.journey-share-status:empty { display: none; }
.journey-share-dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 22px;
}
.journey-share-dialog::backdrop { background: #162f2566; }
.journey-share-dialog textarea { width: 100%; font: inherit; resize: vertical; }
.journey-progress { padding: 12px 0; }
.journey-progress p { margin: 4px 0; }
.journey-count { color: var(--accent); font-variant-numeric: tabular-nums; }
.journey-count strong { font-size: 52px; line-height: 1.2; font-weight: 650; }
.journey-count span { font-size: 20px; color: var(--muted); }
.journey-dots { display: flex; gap: 9px; margin: 12px 0; }
.journey-dots span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.journey-dots .received { background: var(--soft); border-style: solid; color: var(--accent); }
@media (max-width: 560px) {
  .journey-steps { margin-bottom: 20px; }
  .journey-step-label { font-size: 11px; }
  .journey-share-panel { padding: 14px; }
  .journey-share-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-link-row { grid-template-columns: minmax(0, 1fr); }
}
