/* The thread: one running stitch from photo to palette. Used as the new-garment stepper, the workspace stations, the job progress and
   the section dividers. Also the logo mark (.mark) and the sheet corner marks. Tokens only. */
.mark { display: block; }
.mark .m-tile { fill: var(--brand); } .mark .m-bar { fill: none; stroke: var(--brand-fg); stroke-width: 24; stroke-dasharray: 34 16; }
.mark .m-stem { fill: none; stroke: var(--brand-fg); stroke-width: 24; } .mark .m-head { fill: var(--brand-fg); } .mark .m-notch { fill: #FFC1D4; }

.thread { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.thread > li { position: relative; flex: 1 1 0; display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.thread > li::before { content: ""; position: absolute; top: 13px; inset-inline: -50% 50%; height: 0; border-top: 2px dashed var(--brand); }
.thread > li:first-child::before { display: none; }
.thread > li.todo::before { border-top-color: var(--line-strong); }
.thread .st { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brand); background: var(--surface); color: var(--brand-ink); font: 700 12px var(--mono); }
.thread > li.done .st { background: var(--brand); color: var(--brand-fg); }
.thread > li.now .st { box-shadow: 0 0 0 5px var(--brand-soft); }
.thread > li.todo .st { border-color: var(--line-strong); color: var(--muted); }
.thread > li.skip .st { border-style: dashed; }
.thread .nm { overflow-wrap: anywhere; font: 700 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.thread > li.todo .nm { color: var(--muted); }
.thread .sb { font-size: 12px; color: var(--muted); line-height: 1.25; }
.thread button.st, .thread a.st { cursor: pointer; text-decoration: none; }

/* stitching = work in progress: the dashes run along the line */
.stitching { height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px); background-size: 28px 2px; animation: runstitch 0.9s linear infinite; }
@keyframes runstitch { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .stitching { animation: none; } }

/* corner marks (registration) on a drafting sheet */
.regmarks { position: relative; }
.regmarks::before, .regmarks::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 0 solid var(--chalk); opacity: .9; }
.regmarks::before { inset-inline-end: 8px; top: 8px; border-top-width: 1.5px; border-inline-end-width: 1.5px; }
.regmarks::after { inset-inline-start: 8px; bottom: 8px; border-bottom-width: 1.5px; border-inline-start-width: 1.5px; }

/* error page */
.err-page { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 14px; max-width: 560px; margin: 0 auto; padding: 24px; }
.err-page .brand .mark { width: 44px; height: 44px; }

/* shared object tiles */
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gt { position: relative; display: grid; grid-template-rows: 150px auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .12s, border-color .12s; }
a.gt:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.gt-band { direction: ltr; position: relative; display: grid; place-items: center; background: var(--c); overflow: hidden; }
.gt-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--surface) 0 6px, transparent 6px 11px); opacity: .75; }
.gt-band img { width: 100%; height: 100%; object-fit: contain; padding: 6px 6px 12px; }
.gt-ic { color: color-mix(in srgb, var(--c) 30%, #fff); mix-blend-mode: normal; } .gt-ic .i { width: 54px; height: 54px; stroke-width: 1.1; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.gt-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.gt-name { font: 700 16px var(--display); } .gt-meta { display: flex; gap: 8px; flex-wrap: wrap; font: 500 12px var(--mono); color: var(--muted); }
.gt-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gt-pick { position: absolute; top: 8px; inset-inline-start: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; display: grid; } .gt-pick input { width: 20px; height: 20px; accent-color: var(--brand); }
.gt.run { opacity: .8; }
.pjt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.pjt:hover { border-color: var(--brand); text-decoration: none; }
.pjt-ic { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px dashed var(--brand); border-radius: 2px; color: var(--brand-ink); }
@media (max-width: 560px) { .gt-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .gt { grid-template-rows: 110px auto; } }
