/* One clear path (core/progress.js): Describe → Check route → Photos → Look & music → Export, the same slim bar in
   the guide, every editor mode and the Export box. Uses the page's own tokens (editor.css / guide.css). Wide: five
   segments with their names. Narrow (phones, the side panel): the current step's name, then five small segments. */

.tc-path { container-type: inline-size; min-width: 0; }
.tc-inner { display: flex; flex-direction: column; min-width: 0; }
.tc-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.tc-step { min-width: 0; }
.tc-go { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; width: 100%; min-height: 40px;
  padding: 5px 2px; margin: 0; background: none; border: 0; border-radius: 9px; font: inherit; color: inherit; text-align: center; }
button.tc-go { cursor: pointer; }
button.tc-go:hover .tc-name { color: var(--ink); }
button.tc-go:hover .tc-seg { filter: brightness(1.25); }
button.tc-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tc-seg { display: block; height: 4px; border-radius: 99px; background: var(--line-2, rgba(255, 255, 255, .16)); transition: background .25s ease; }
.is-done .tc-seg { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.is-current .tc-seg { background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent); }
.tc-lbl { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; font-size: .74rem; font-weight: 600; line-height: 1.15; color: var(--muted); }
.tc-mark { flex: none; width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800; border: 1.5px solid currentColor; box-sizing: border-box; }
.tc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-done .tc-lbl { color: var(--ink-2); }
.is-done .tc-mark { border-color: transparent; background: var(--accent-soft, rgba(255, 90, 138, .16)); color: var(--accent); }
.is-current .tc-lbl { color: var(--ink); font-weight: 700; }
.is-current .tc-mark { border-color: var(--accent); background: var(--accent); color: var(--accent-ink, #fff); }
.tc-now { display: none; margin: 0; font-size: .8rem; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-now b { color: var(--ink); font-weight: 700; }

/* A bit tighter: no step numbers (done steps keep their tick). */
@container (max-width: 560px) {
  .tc-list { gap: 4px; }
  .tc-lbl { font-size: .7rem; gap: 3px; }
  .tc-mark { display: none; }
  .is-done .tc-mark { display: inline-flex; width: auto; height: auto; background: none; font-size: .7rem; }
}
/* Five names across a phone (Studio's bar along the bottom): the names whole, done shown by the segment. */
@container (max-width: 430px) {
  .tc-list { gap: 3px; }
  .tc-go { padding-left: 0; padding-right: 0; }
  .is-done .tc-mark { display: none; }
  .tc-lbl { font-size: .66rem; letter-spacing: -.01em; }
}

/* Narrow: "Photos · 3 of 5" and five small segments, on one line. Each segment can still be tapped (44 px tall). */
@container (max-width: 370px) {
  .tc-inner { flex-direction: row; align-items: center; gap: 12px; }
  .tc-now { display: block; flex: 0 1 auto; min-width: 0; }
  .tc-list { flex: 1 1 64px; min-width: 56px; max-width: 170px; margin-left: auto; gap: 4px; }
  .tc-lbl { display: none; }
  .tc-go { min-height: 20px; padding: 8px 0; }
  button.tc-go::after { content: ""; position: absolute; left: -2px; right: -2px; top: -12px; bottom: -12px; }
  .tc-seg { height: 5px; }
}

/* Very narrow (the guide's top bar on a phone): just the name and the segments. */
@container (max-width: 240px) {
  .tc-inner { gap: 8px; }
  .tc-now span { display: none; }
  .tc-list { flex-basis: 40px; min-width: 40px; gap: 3px; }
}

/* Phones (roadmap 114): the narrow bar's segments 44 px wide to a finger (in Quick's and Day by day's panel and the
   Export box); the count gives way to them, as the segments show it. The guide's top bar (narrower still) is a
   progress line only on a phone: its card has the way back. */
@media (max-width: 760px), (pointer: coarse) {
  @container (min-width: 241px) and (max-width: 370px) {
    .tc-list { flex: 0 0 216px; max-width: 216px; min-width: 0; }
    .tc-go { min-height: 44px; padding: 0; }
    button.tc-go::after { top: 0; bottom: 0; }
    .tc-now span { display: none; }
  }
}

/* The Export box: under its title. */
.dlg .tc-path, .modal-card .tc-path { padding: 0 20px; margin: -4px 0 6px; }
