.project-show {
  --panel: #192331; --panel-2: #18222f; --raise: #202c3d; --edge: #354151; --rule: #2a3545;
  --text: #f3f6fc; --soft: #d0d8e4; --muted: #a9b5c6; --faint: #7d899b; --link: #a2c6ff;
  --green: #9cddbd; --green-wash: #203c34; --blue: #acd2ff; --blue-wash: #233e60;
  --amber: #f6d18f; --amber-wash: #403522; --red: #ffb6bd; --red-wash: #45242b;
  --violet: #d2c2f8; --violet-wash: #302e49; --teal: #b1e2dd;
  --mono: ui-monospace, Menlo, monospace;
  flex: 1; overflow-y: auto; color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: anywhere; color-scheme: dark;
}
.project-show :is(a, button, label):focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
.ps-wrap { width: 100%; max-width: 1340px; margin: 0 auto; padding: 28px 32px 56px; }
.ps-wrap h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 620; letter-spacing: -.03em; }
.ps-count { padding: 0 6px; border: 1px solid var(--edge); border-radius: 5px; font: 12px/1.5 var(--mono); color: var(--muted); letter-spacing: normal; font-weight: 400; }
.ps-mono { font: 12px/1.5 var(--mono); color: var(--muted); }
.ps-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ps-more { font-size: 12px; font-weight: 600; color: var(--link); white-space: nowrap; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 14px; border: 1px solid var(--edge); border-radius: 8px; background: var(--raise); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--text); }
.ps-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.ps-btn-primary { background: #3466cd; border-color: #5081e4; color: #fff; }
.ps-btn:hover { filter: brightness(1.14); }
.ps-btn-live svg { color: var(--link); }
.ps-panel { min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; }
.ps-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; background: #2c3544; color: var(--soft); }
.ps-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ps-pill.ps-no-dot::before { display: none; }
.ps-t-green { background: var(--green-wash); color: var(--green); }
.ps-t-blue { background: var(--blue-wash); color: var(--blue); }
.ps-t-amber { background: var(--amber-wash); color: var(--amber); }
.ps-t-red { background: var(--red-wash); color: var(--red); }
.ps-t-violet { background: var(--violet-wash); color: var(--violet); }
.ps-t-gray { background: #2c3544; color: var(--soft); }

/* Hero */
.ps-hero-band { position: relative; height: 112px; background: linear-gradient(110deg, #1d3a3a 0%, #203743 55%, #262f4a 100%); color: var(--teal); overflow: hidden; }
.ps-hero-band svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: .7; opacity: .38; }
.ps-live-strip { position: absolute; right: 20px; top: 16px; display: flex; gap: 8px; }
.ps-live-strip a:hover { filter: brightness(1.14); }
.ps-hero-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 22px; align-items: start; padding: 16px 24px 20px; position: relative; }
.ps-hero-icon { margin-top: -60px; width: 104px; height: 104px; border-radius: 22px; background: var(--panel); padding: 4px; box-shadow: 0 10px 30px #0007; }
.ps-hero-icon img { display: block; width: 96px; height: 96px; border-radius: 18px; object-fit: contain; }
.ps-hero-icon.ps-fallback { background: #384456; border: 2px solid #1f2836; }
.ps-hero-icon.ps-fallback img { border-radius: 0; padding: 18px; }
.ps-hero-title { min-width: 0; padding-bottom: 2px; }
.ps-hero-title h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.045em; font-weight: 680; }
.ps-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.ps-hero-meta .ps-mono { color: #c2ccda; }
.ps-avatar { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--violet-wash); color: var(--violet); font-size: 10px; font-weight: 700; border: 1px solid #4b4570; margin-right: 2px; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ps-chip { padding: 2px 8px; border: 1px solid var(--edge); border-radius: 6px; font-size: 11px; color: var(--soft); background: #1c2737; }
.ps-hero-actions { display: flex; gap: 8px; padding-bottom: 4px; align-self: center; flex-wrap: wrap; }

/* Pulse strip */
.ps-pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(240px, 1.6fr); border-top: 1px solid var(--edge); background: var(--panel-2); }
.ps-metric { padding: 16px 20px; border-right: 1px solid var(--rule); }
.ps-metric b { display: block; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ps-metric span { font-size: 12px; color: var(--muted); }
.ps-metric em { display: block; margin-top: 2px; font: 11px/1.4 var(--mono); font-style: normal; color: var(--faint); }
.ps-metric.ps-running b { color: var(--blue); }
.ps-metric.ps-ready b { color: var(--amber); }
.ps-metric.ps-shipped b { color: var(--green); }
.ps-metric.ps-errors b { color: var(--red); }
.ps-metric.ps-zero b { color: var(--soft); }
.ps-spark { padding: 14px 20px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.ps-spark-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.ps-spark-head b { color: var(--text); font-weight: 600; }
.ps-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 40px; margin-top: 8px; }
.ps-bars i { display: block; min-height: 2px; border-radius: 2px 2px 0 0; background: #3b6b58; }
.ps-bars i.ps-today { background: var(--green); }
.ps-bars-axis { display: flex; justify-content: space-between; margin-top: 4px; font: 10px/1.3 var(--mono); color: var(--faint); }

/* Grid */
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 28px; align-items: start; }
.ps-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ps-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Needs you */
.ps-attention { display: grid; gap: 8px; }
.ps-attn { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid #514231; border-radius: 12px; background: #251f18; }
.ps-attn:hover { filter: brightness(1.12); }
.ps-attn.ps-err { border-color: #5a3038; background: #261a1e; }
.ps-attn-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid #604b32; border-radius: 9px; color: #e6b97f; }
.ps-attn.ps-err .ps-attn-icon { border-color: #6b3842; color: var(--red); }
.ps-attn-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.ps-attn > div { min-width: 0; }
.ps-attn strong { display: block; font-size: 14px; font-weight: 600; }
.ps-attn small { display: block; font-size: 12px; color: var(--muted); }
.ps-go { margin-left: auto; font-size: 13px; font-weight: 600; color: #e6bc89; white-space: nowrap; }
.ps-attn.ps-err .ps-go { color: var(--red); }

/* Happening now */
.ps-runs { display: grid; gap: 10px; }
.ps-run { display: block; padding: 16px 18px; }
.ps-run:hover { border-color: #4a5a70; background: #1c2838; }
.ps-run-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ps-run-top strong { display: block; font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.ps-run-top .ps-mono { display: block; margin-top: 2px; }
.ps-run-top .ps-pill { flex: none; }
.ps-phases { display: grid; grid-template-columns: repeat(var(--phase-count, 3), minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.ps-phase > span { display: block; height: 5px; border-radius: 5px; background: #2e3a4b; }
.ps-phase > div { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--faint); }
.ps-phase em { font-style: normal; }
.ps-phase.ps-done > span { background: #4f9a7a; }
.ps-phase.ps-done > div { color: var(--muted); }
.ps-phase.ps-now > span { background: #f59e0b; animation: ps-segment-pulse 2s ease-in-out infinite; }
.ps-phase.ps-now > div { color: var(--amber); font-weight: 600; }
.ps-phase.ps-skip > span { background: repeating-linear-gradient(90deg, #2e3a4b 0 4px, transparent 4px 7px); }
.ps-phase.ps-fail > span { background: #c2414f; }
.ps-phase.ps-fail > div { color: var(--red); font-weight: 600; }
@keyframes ps-segment-pulse { 0%, 100% { background-color: #f59e0b; } 50% { background-color: #ea580c; } }
.ps-run-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.ps-slots { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ps-slots i { display: inline-block; width: 8px; height: 8px; margin-left: 3px; border-radius: 2px; background: var(--blue); }
.ps-slots i.ps-free { background: #2e3a4b; }
.ps-empty { padding: 22px; border: 1px dashed var(--edge); border-radius: 14px; text-align: center; color: var(--muted); }
.ps-empty strong { display: block; color: var(--soft); font-size: 15px; margin-bottom: 4px; }
.ps-empty .ps-btn { margin-top: 12px; }
.ps-more-runs { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--link); }

/* Up next + task rows */
.ps-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-top: 1px solid var(--rule); }
.ps-row:first-child { border-top: 0; }
.ps-row:hover { background: #1f2b3b; }
.ps-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ps-d-ready { background: #f0b100; } .ps-d-pending, .ps-d-cancelled { background: #6a7282; } .ps-d-active { background: #51a2ff; }
.ps-d-done { background: #00c950; } .ps-d-error { background: #fb2c36; } .ps-d-blocked { background: #fe9a00; }
.ps-row-name { flex: 1; min-width: 0; font-size: 14px; }
.ps-row-name small { display: block; font-size: 12px; color: var(--faint); }
.ps-prio { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #2c3544; color: var(--soft); white-space: nowrap; }
.ps-prio.ps-high, .ps-prio.ps-critical { background: #4a2f1b; color: #ffc58a; }
.ps-row time { font-size: 12px; color: var(--faint); white-space: nowrap; min-width: 64px; text-align: right; }

/* Shipped timeline */
.ps-timeline { padding: 4px 18px 8px; }
.ps-day { padding-top: 12px; font: 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.ps-ship { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.ps-ship + .ps-ship::before { content: ""; position: absolute; left: 12px; top: -10px; height: 20px; width: 1px; background: var(--rule); }
.ps-ship:hover strong { color: var(--link); }
.ps-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-wash); color: var(--green); position: relative; z-index: 1; }
.ps-check svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.ps-ship strong { display: block; font-size: 14px; font-weight: 560; }
.ps-ship p { margin-top: 2px; font-size: 12px; color: var(--muted); }
.ps-ship time { font-size: 12px; color: var(--faint); white-space: nowrap; padding-top: 3px; }
.ps-sha { padding: 0 5px; border-radius: 4px; background: #222e3f; font: 11px/1.6 var(--mono); color: #c2ccda; }

/* All tasks */
.ps-tasks .ps-panel { position: relative; }
.ps-tasks input[type="radio"] { top: 8px; left: 8px;  position: absolute; opacity: 0; pointer-events: none; }
.ps-tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--edge); background: var(--panel-2); overflow-x: auto; }
.ps-tabs label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ps-tabs label b { font: 11px/1.4 var(--mono); color: var(--faint); font-weight: 400; }
.ps-tabs label:hover { color: var(--text); background: #222d3d; }
#ps-f-open:checked ~ .ps-tabs [for="ps-f-open"], #ps-f-done:checked ~ .ps-tabs [for="ps-f-done"],
#ps-f-issues:checked ~ .ps-tabs [for="ps-f-issues"], #ps-f-all:checked ~ .ps-tabs [for="ps-f-all"] { background: #2c3a50; color: var(--text); box-shadow: inset 0 0 0 1px #45556d; }
#ps-f-open:focus-visible ~ .ps-tabs [for="ps-f-open"], #ps-f-done:focus-visible ~ .ps-tabs [for="ps-f-done"],
#ps-f-issues:focus-visible ~ .ps-tabs [for="ps-f-issues"], #ps-f-all:focus-visible ~ .ps-tabs [for="ps-f-all"] { outline: 2px solid #93c5fd; outline-offset: 3px; }
.ps-task-list [data-g], .ps-tasks .ps-list-foot { display: none; }
#ps-f-open:checked ~ .ps-task-list [data-g~="open"], #ps-f-done:checked ~ .ps-task-list [data-g~="done"],
#ps-f-issues:checked ~ .ps-task-list [data-g~="issues"], #ps-f-all:checked ~ .ps-task-list [data-g~="all"] { display: flex; }
#ps-f-open:checked ~ [data-foot="open"], #ps-f-done:checked ~ [data-foot="done"],
#ps-f-issues:checked ~ [data-foot="issues"], #ps-f-all:checked ~ [data-foot="all"] { display: block; }
.ps-task-empty { padding: 18px 16px; font-size: 13px; color: var(--muted); }
.ps-list-foot { padding: 11px 16px; border-top: 1px solid var(--edge); font-size: 12px; font-weight: 600; color: var(--link); background: var(--panel-2); }

/* Rail cards */
.ps-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.ps-card-h h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 640; }
.ps-card-h a, .ps-card-h > span { font-size: 12px; font-weight: 600; color: var(--link); white-space: nowrap; }
.ps-card-h > span { color: var(--faint); font-weight: 500; }
.ps-card-b { padding: 6px 16px 10px; }
.ps-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.ps-kv:first-child { border-top: 0; }
.ps-kv > span:first-child { color: var(--muted); }
.ps-kv-r { text-align: right; min-width: 0; }
.ps-live-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(90deg, #1d3a31, #192331); border-bottom: 1px solid var(--rule); }
.ps-live-head > div { min-width: 0; }
.ps-beacon { width: 12px; height: 12px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px #34d39926; flex: none; }
.ps-beacon.ps-off { background: #6a7282; box-shadow: 0 0 0 5px #6a728226; }
.ps-beacon.ps-bad { background: #f87171; box-shadow: 0 0 0 5px #f8717126; }
.ps-live-head strong { display: block; font-size: 14px; }
.ps-live-head a, .ps-live-head span { font: 12px/1.4 var(--mono); color: var(--green); }
.ps-live-head.ps-idle { background: var(--panel); }
.ps-live-head.ps-idle span { color: var(--muted); }
.ps-feat { display: block; padding: 10px 0; border-top: 1px solid var(--rule); }
.ps-feat:first-child { border-top: 0; }
.ps-feat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 560; }
.ps-track { height: 5px; margin-top: 8px; border-radius: 5px; background: #2e3a4b; overflow: hidden; }
.ps-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.ps-track.ps-paused i { background: #c9a86a; }
.ps-feat small { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--faint); }
.ps-err-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--rule); }
.ps-err-row:first-child { border-top: 0; }
.ps-err-row > a { font: 12px/1.45 var(--mono); color: #f1d6da; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-err-row > b { font: 12px/1.45 var(--mono); color: var(--red); text-align: right; }
.ps-err-row small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 11px; color: var(--faint); }
.ps-err-row small a, .ps-err-row small button { color: var(--link); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; }
.ps-err-row form { display: inline; }
.ps-src { padding: 0 5px; border-radius: 4px; background: #2c3544; color: var(--soft); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.ps-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.ps-item:first-child { border-top: 0; }
.ps-item > div { flex: 1; min-width: 0; }
.ps-item small { display: block; font-size: 11px; color: var(--faint); }
.ps-item code { display: block; font: 11px/1.45 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.ps-warn { margin-top: 6px; padding: 7px 9px; border: 1px solid #604b32; border-radius: 8px; background: #251f18; font-size: 11px; color: var(--amber); }
.ps-tag { padding: 1px 6px; border-radius: 10px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ps-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; animation: ps-segment-pulse 2s infinite; flex: none; }
.ps-ico16 { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; color: var(--faint); flex: none; }
.ps-foot-note { font-size: 11px; color: var(--faint); padding: 0 16px 12px; }
.ps-card-empty { padding: 12px 0; text-align: center; color: var(--muted); }

@media (max-width: 1179px) {
  .ps-hero-body { grid-template-columns: auto minmax(0, 1fr); }
  .ps-hero-actions { grid-column: 1 / -1; margin-top: 10px; }
  .ps-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ps-pulse { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ps-spark { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
}
@media (max-width: 1023px) {
  .ps-wrap { padding: 22px 20px 48px; }
  .ps-rail { grid-template-columns: minmax(0, 1fr); }
  .ps-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-metric:nth-child(2n) { border-right: 0; }
  .ps-metric:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 767px) {
  .ps-wrap { padding: 16px 16px 40px; }
  .ps-hero-band { height: 84px; }
  .ps-live-strip { right: 12px; top: 12px; }
  .ps-hero-body { padding: 12px 16px 16px; gap: 4px 16px; }
  .ps-hero-icon { margin-top: -48px; width: 80px; height: 80px; border-radius: 18px; }
  .ps-hero-icon img { width: 72px; height: 72px; border-radius: 14px; }
  .ps-hero-icon.ps-fallback img { padding: 13px; }
  .ps-hero-title { grid-column: 1 / -1; margin-top: 4px; }
  .ps-hero-actions { display: grid; grid-template-columns: 1fr 1fr auto; }
  .ps-hero-actions:has(.ps-btn-live) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-hero-actions:has(.ps-btn-live) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ps-btn { min-height: 44px; padding: 7px 10px; }
  .ps-grid, .ps-col { gap: 22px; }
  .ps-grid { margin-top: 22px; }
  .ps-metric { padding: 13px 16px; }
  .ps-metric b { font-size: 22px; }
  .ps-spark { padding: 12px 16px; }
  .ps-run { padding: 14px; }
  .ps-ship { grid-template-columns: 26px minmax(0, 1fr); gap: 2px 12px; }
  .ps-ship time { grid-column: 2; padding-top: 0; }
  .ps-task-list .ps-row { flex-wrap: wrap; row-gap: 4px; }
  .ps-task-list .ps-row-name { flex-basis: calc(100% - 24px); }
  .ps-task-list .ps-pill, .ps-task-list .ps-prio { margin-left: 20px; }
  .ps-task-list .ps-prio + .ps-pill { margin-left: 0; }
  .ps-task-list .ps-row time { margin-left: auto; min-width: 0; }
  .ps-attn { align-items: flex-start; }
  .ps-go { display: none; }
}
@media (max-width: 520px) {
  .ps-phase em { display: none; }
}
@media (max-width: 400px) {
  .ps-hero-meta .ps-path { flex-basis: 100%; }
  .ps-live-strip > :nth-child(2) { display: none; }
  .ps-tabs label { padding: 5px 8px; }
}

.ps-build-label { margin: 6px 0 1px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ps-builds { list-style: none; margin: 0; padding: 0 0 6px; }
.ps-builds li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 31px; font-size: 13px; }
.ps-builds li > span:first-child { overflow-wrap: anywhere; }
.ps-builds a:hover { filter: brightness(1.14); text-decoration: underline; }
