/* Custom suit tracker (Moe 2026-10-26, real version 2026-10-31): the customer's page and the staff side. Builds on wed.css (cards, tabs, ledger). */
/* The customer's progress, step by step */
.t-steps { list-style: none; display: grid; counter-reset: st; }
.t-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding-bottom: 22px; }
.t-steps li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.t-steps li:last-child { padding-bottom: 0; }
.t-steps li:last-child::before { display: none; }
.t-steps li.done::before { background: var(--ivory); }
.t-steps .dot { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--taupe); display: grid; place-items: center; font-size: .75rem; color: var(--taupe); background: var(--ink); position: relative; z-index: 1; }
.t-steps li.done .dot { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.t-steps li.now .dot { border: 2px solid var(--ivory); color: var(--ivory); box-shadow: 0 0 0 5px rgba(255, 255, 255, .08); }
.t-steps b { font-weight: 600; font-size: 1.02rem; color: var(--ivory); line-height: 28px; }
.t-steps li.next b { color: var(--taupe); font-weight: 500; }
.t-steps .when { font-size: .85rem; color: var(--taupe); }
.t-steps li.now .when { color: var(--bone); }

.t-update { display: grid; gap: 8px; border-left: 2px solid var(--ox); padding: 4px 0 4px 14px; }
.t-update p { color: var(--ivory); font-size: 1rem; }
.t-update span { font-size: .84rem; color: var(--taupe); }
.t-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 18px; }
.t-sizes div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.t-sizes em { font-style: normal; font-family: var(--caps); font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); }
.t-sizes b { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.t-sizes small { font-size: .82rem; color: var(--taupe); }
.t-sizes input, .t-sizes select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory); font: inherit; font-weight: 600; padding: 4px 0 6px; border-radius: 0; }
.t-sizes select option { background: var(--ink); }
.t-sizes input:focus, .t-sizes select:focus { outline: none; border-bottom-color: var(--ivory); }
.t-past { list-style: none; display: grid; border-top: 1px solid var(--line); }
.t-past li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.t-past b { font-weight: 600; overflow-wrap: anywhere; }
.t-past span { font-size: .85rem; color: var(--taupe); grid-column: 1 / -1; }
.t-past em { font-style: normal; font-size: .85rem; color: var(--bone); text-align: right; }

/* Staff: the order's step, one tap */
.seg.t-seg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.t-seg button:nth-child(5) { border-left: 0; }
.seg.t-seg button:nth-child(n+5) { border-top: 1px solid var(--line); }
.seg.t-seg button:nth-child(7) { grid-column: span 2; }
.t-profile-top { display: grid; gap: 6px; }
.t-profile-top .contact { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--bone); font-size: .95rem; }
.t-list .tag.s-ready { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.t-list .tag.s-arrived, .t-list .tag.s-fitting { border-color: var(--ivory); color: var(--ivory); }
.t-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.t-filters button { background: none; border: 0; border-left: 1px solid var(--line); color: var(--bone); font-family: var(--caps); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; min-height: 46px; cursor: pointer; }
.t-filters button:first-child { border-left: 0; }
.t-filters button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); font-weight: 700; }
.t-back { justify-self: start; }
.t-new { display: grid; gap: 22px; }
.t-new .row2, .card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) {
  .t-new .row2, .card .row2 { grid-template-columns: 1fr; }
  .seg.t-seg button { font-size: .72rem; min-height: 50px; }
}

/* Sign in from the Made to Measure page (Moe 2026-10-26) */
.track-sec { scroll-margin-top: 70px; }
.track-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.track-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.track-copy .muted { font-size: .92rem; max-width: 46ch; }
[data-track-box] { min-width: 0; }
.mtm-track { justify-self: start; display: inline-flex; gap: 10px; align-items: center; color: var(--ivory); font-family: var(--caps); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .45); padding: 12px 0 8px; }
.mtm-track:hover { border-bottom-color: var(--ivory); }
@media (max-width: 860px) { .track-grid { grid-template-columns: 1fr; } }

/* More than one order in progress: pick which one to see */
.t-orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.t-orders button { display: grid; gap: 2px; text-align: left; background: none; border: 1px solid var(--line); color: var(--bone); padding: 12px 14px; cursor: pointer; font: inherit; min-height: 56px; }
.t-orders button b { font-weight: 600; color: var(--ivory); font-variant-numeric: tabular-nums; }
.t-orders button span { font-size: .84rem; }
.t-orders button[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.t-orders button[aria-pressed="true"] b { color: var(--ink); }

/* The customer's order code, made when the order is created (Moe 2026-10-26) */
.t-code { font-family: var(--caps); font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 600; letter-spacing: .14em; color: var(--ivory); font-variant-numeric: tabular-nums; border: 1px dashed var(--line); justify-self: start; padding: .3em .7em; user-select: all; }

/* Order sections (fabric, jacket options...) as short lists */
.t-sec { display: grid; gap: 6px; }
.t-sec + .t-sec { margin-top: 10px; }
.t-sec .ledger li span:first-child { color: var(--bone); }
.t-sec .ledger .amt { text-align: right; overflow-wrap: anywhere; white-space: pre-wrap; }
.t-full summary { cursor: pointer; font-family: var(--caps); font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); padding: 12px 0; list-style-position: inside; }
.t-full[open] summary { margin-bottom: 8px; }
.t-past .t-full { grid-column: 1 / -1; }
.t-msg { display: grid; gap: 14px; }
.t-danger summary { cursor: pointer; }
.t-danger[open] { gap: 22px; }
.t-signed { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 18px; }
.t-list .tag.s-5 { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.t-list .tag.s-3, .t-list .tag.s-4 { border-color: var(--ivory); color: var(--ivory); }
.t-profile-top .contact a { color: var(--ivory); }
