/* The case page (records.js caseMain, case-stages.js): an H-1B case placed in the case workflow. Shades of
   off-white from offwhite.css: taupe for finished stages, one ochre mark for where the case is now and for what
   still holds filing up. Brand blue stays on the buttons. */
.rec-application-detail.cs-case{max-width:1120px}
.cs-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px}
.cs-step{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.cs-step b{color:var(--ink);font-weight:600}

/* Stages: one bar each, in order; the skipped G-28 stage is a dashed line and is left out of the count */
.cs-stages{list-style:none;margin:0 0 24px;padding:0;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
/* Names break only at a space or the dot, never inside a word (CLAUDE.md: Chinese titles break at punctuation) */
.cs-stages li{position:relative;min-width:0;padding-top:12px;font-size:12px;line-height:1.35;color:var(--muted);word-break:keep-all;overflow-wrap:normal}
.cs-stages li::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;border-radius:2px;background:var(--ow-track)}
.cs-stages li.is-done::before{background:var(--ow-bar-strong)}
.cs-stages li.is-now::before{background:var(--ow-accent)}
.cs-stages li.is-now{color:var(--ink);font-weight:600}
.cs-stages li.is-skip::before{top:1px;height:0;border-radius:0;background:none;border-top:2px dashed var(--ow-bar)}
.cs-stages li small{display:block;font-size:11px}

.cs-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:16px;align-items:start}
.cs-main.rec-detail-main{display:block;padding-bottom:0}

/* The one task in front of this person */
.cs-now{display:grid;gap:8px;padding:22px 24px;border-radius:var(--radius-panel)}
.cs-who{font-size:13px;color:var(--muted)}
.cs-now h2{font-family:var(--serif);font-size:22px;line-height:1.35;text-wrap:balance}
.cs-meta{font-size:14px;color:var(--muted)}
.cs-now .button-group{margin-top:8px}
.cs-now .btn{min-height:44px;border-radius:var(--radius-control)}
.cs-note{margin-top:8px;padding-top:12px;border-top:1px solid var(--line);font-size:13px;line-height:1.6;color:var(--muted)}

/* Three tracks side by side: hairline rows, label | where it stands | open */
/* The rows share one set of columns (subgrid), so the first is as wide as the longest name in either language */
.cs-tracks{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:max-content minmax(0,1fr) auto;column-gap:16px}
.cs-tracks li{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:baseline;padding:12px 2px;border-top:1px solid var(--line);font-size:14px}
.cs-tracks li:last-child{border-bottom:1px solid var(--line)}
.cs-tracks b{font-weight:600}
.cs-v{color:var(--muted);font-variant-numeric:tabular-nums}
.cs-tracks .text-link,.cs-more .text-link{border:0;background:none;padding:12px 0;margin:-12px 0}
.cs-more{margin-top:14px}

/* Six filing conditions: filled when met, ochre ring while waiting, dashed when it is only checked after launch */
.cs-gate{padding:20px 22px;border-radius:var(--radius-panel)}
.cs-gate h2{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:16px}
.cs-gate h2 span{font-size:14px;font-weight:600;color:var(--ow-accent-ink);font-variant-numeric:tabular-nums}
.cs-gate ul{list-style:none;margin:10px 0 0;padding:0}
.cs-gate li{display:grid;grid-template-columns:16px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.cs-gate li:first-child{border-top:0}
.cs-gate i{width:14px;height:14px;margin-top:4px;border-radius:50%;border:1.6px solid var(--ow-bar-strong)}
.cs-g-ok i{background:var(--ow-bar-strong)}
.cs-g-wait i{border-color:var(--ow-accent)}
.cs-g-later i{border-style:dashed}
.cs-gate li b{display:block;font-size:14px;font-weight:600}
.cs-gate small{display:block;font-size:12.5px;line-height:1.5;color:var(--muted)}
.cs-g-wait small{color:var(--ow-accent-ink)}

/* Tablet: two rows of five stages, so each name fits on one line; the phone keeps one row of bars (mobile.css) */
@media (max-width:1100px){.cs-grid{grid-template-columns:minmax(0,1fr)}.cs-stages{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:14px}}
