File size: 17,193 Bytes
af1bee9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | /* Patchwise, the run workspace: stage rail, stage cards, approvals, decisions, result, the details panel and the live browser. */
/* ------------------------------------------------------------------ workspace frame */
.fpt-main:has(> .fpt-ws) { padding: 0; overflow: hidden; box-shadow: none; }
.fpt-ws { display: flex; height: 100%; min-height: 0; position: relative; background: var(--bg); }
.fpt-ws-center { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--bg); box-shadow: -0.5px 0 0 var(--sep); }
.fpt-ws .fpt-topbar { position: relative; margin: 0; padding: 6px 20px 6px 16px; max-height: none; align-items: center; flex: 0 0 auto; }
.fpt-ws .fpt-topbar-left { min-width: 0; }
.fpt-ws .fpt-topbar-row1 { display: flex; align-items: center; gap: 10px; }
.fpt-ws .fpt-title { line-height: 19px; }
.fpt-ws .fpt-topbar-sub { flex-wrap: nowrap; }
.fpt-ws-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; background: var(--bg); scroll-behavior: auto; overscroll-behavior: contain; }
.fpt-ws-scroll:focus-visible { outline-offset: -2px; }
.fpt-ws-detail { padding: 20px 28px 40px; max-width: 960px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.fpt-detail-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-height: 48px; padding: 8px 28px; background: var(--mat-bar); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 0; box-shadow: 0 0.5px 0 var(--sep); }
.fpt-detail-switch { margin-left: auto; }
.fpt-detail-switch .mantine-Tabs-list { flex-wrap: nowrap; overflow-x: auto; }
.trio-nowtesting { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--sh-card); }
/* ------------------------------------------------------------------ the stage column */
.trio-stages { max-width: 680px; margin: 0 auto; padding: 32px 36px 120px; }
.trio-rhead { margin-bottom: 24px; }
.trio-rhead h1 { font-size: var(--fs-3xl); line-height: 34px; font-weight: var(--fw-bold); letter-spacing: -0.024em; margin: 0; }
.trio-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.trio-meta .fpt-idpill { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.trio-meta .fpt-idpill:hover { background: var(--fill-2); }
.trio-stagelist { list-style: none; margin: 0; padding: 0; }
.trio-stage { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 16px; padding-bottom: 8px; }
.trio-rail { position: relative; display: flex; flex-direction: column; align-items: center; }
.trio-rail::after { content: ""; position: absolute; top: 34px; bottom: -8px; width: 2px; border-radius: 1px; background: var(--fill-2); }
.trio-stage:last-child .trio-rail::after { display: none; }
.trio-stage[data-mark='done'] .trio-rail::after { background: var(--green-dot); opacity: 0.55; }
.trio-marker { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--fw-bold); font-size: var(--fs-base); background: var(--fill-2); color: var(--label-2); position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.trio-stage[data-mark='done'] .trio-marker { background: var(--green-dot); color: #fff; }
.trio-stage[data-mark='stop'] .trio-marker { background: var(--red-dot); color: #fff; }
.trio-stage[data-mark='cur'] .trio-marker { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--accent-soft-2); }
.trio-stage[data-mark='cur'][data-wait] .trio-marker { background: var(--orange-dot); color: #1d1d1f; box-shadow: 0 0 0 5px var(--orange-soft); }
.trio-sbody { padding-bottom: 20px; min-width: 0; }
.trio-st { padding-top: 5px; display: flex; align-items: baseline; gap: 10px; }
.trio-st h2 { font-size: var(--fs-lg); line-height: 22px; font-weight: var(--fw-semibold); letter-spacing: -0.014em; margin: 0; }
.trio-stage[data-mark='todo'] .trio-st h2 { color: var(--label-2); font-weight: var(--fw-semibold); }
.trio-tag { font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.trio-tag[data-tone='orange'] { color: var(--orange); }
.trio-tag[data-tone='ink'] { color: var(--label); }
.trio-sum { color: var(--label-2); font-size: var(--fs-base); line-height: 19px; margin: 2px 0 0; }
.trio-sum a { color: var(--accent-text); }
.trio-teamline { margin-top: 6px; }
.trio-teamline .fpt-team-line { font-size: var(--fs-sm); color: var(--label-2); gap: 6px; }
.trio-teamline .fpt-team-sum { font-size: var(--fs-sm); color: var(--label-2); }
.trio-teamline .fpt-team-more { margin-top: 2px; }
.trio-aifoot { margin: 18px 0 0 48px; font-size: var(--fs-xs); color: var(--label-2); }
.trio-after { display: flex; gap: 16px; margin-top: 6px; }
/* the current stage's card */
.fpt-stage { margin-top: 12px; padding: 20px; border: 0; border-radius: var(--r-xl); background: var(--bg-elev); box-shadow: var(--sh-card); animation: trio-pagein var(--d3) var(--ease) both; }
.fpt-stage[data-stage='approve'], .fpt-stage[data-stage='judge'] { border-left: 0; box-shadow: 0 0 0 1.5px var(--orange-line), 0 6px 24px rgba(245, 147, 0, 0.12); }
.fpt-stage[data-stage='stopped'] { border-left: 0; box-shadow: 0 0 0 1.5px var(--red-line); }
.trio-card-h { font-size: var(--fs-lg); line-height: 22px; font-weight: var(--fw-semibold); letter-spacing: -0.016em; margin: 0; }
.fpt-stage .trio-lede { font-size: var(--fs-base); line-height: 20px; margin-top: 0; max-width: 54ch; }
.trio-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.trio-progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.trio-dim { color: var(--label-2); font-size: var(--fs-xs); }
.fpt-stage .fpt-card { box-shadow: inset 0 0 0 0.5px var(--sep-strong); background: transparent; border-radius: var(--r-lg); }
.trio-judge { display: grid; gap: 16px; }
.trio-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.trio-diff > div { padding: 10px 12px; border-radius: var(--r-md); background: var(--fill); font-size: var(--fs-sm); line-height: 18px; }
.trio-diff small { display: block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--label-2); margin-bottom: 2px; }
.trio-diff > div[data-bad] { background: var(--red-soft); }
.trio-diff > div[data-bad] small { color: var(--red); }
.trio-radiolist { margin-top: 6px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 0.5px var(--sep-strong); overflow: hidden; }
.trio-radio { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 14px; text-align: left; cursor: default; }
.trio-radio + .trio-radio { box-shadow: inset 0 0.5px 0 var(--sep); }
.trio-radio:hover { background: var(--fill); }
.trio-rd { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--sep-strong); flex: none; margin-top: 1px; display: grid; place-items: center; transition: all var(--d2) var(--ease); }
.trio-radio[data-active='true'] .trio-rd { background: var(--accent); box-shadow: none; }
.trio-radio[data-active='true'] .trio-rd::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); }
.trio-radio-t { display: flex; flex-direction: column; min-width: 0; }
.trio-radio-t b { font-weight: var(--fw-semibold); display: flex; align-items: center; gap: 8px; }
.trio-radio-t > span { color: var(--label-2); font-size: var(--fs-sm); line-height: 18px; }
.fpt-failshot-img { border-radius: var(--r-md); border: 0; box-shadow: 0 0 0 1.5px var(--red-line); }
.fpt-judge-noscreen { color: var(--label-2); }
.fpt-result { padding: 0; }
.fpt-verdict { font-size: var(--fs-4xl); line-height: 40px; font-weight: var(--fw-bold); letter-spacing: -0.03em; }
.fpt-result[data-tone='green'] .fpt-verdict { color: var(--green); }
.fpt-result[data-tone='red'] .fpt-verdict { color: var(--red); }
.fpt-result[data-tone='amber'] .fpt-verdict { color: var(--orange); }
.fpt-result-facts { padding: 10px 14px; border-radius: var(--r-lg); background: var(--fill); font-size: var(--fs-base); }
.fpt-result-facts [data-fail='true'] { color: var(--red); font-weight: var(--fw-semibold); }
.fpt-team-icon { color: var(--label-2); }
.fpt-team-icon[data-kind='waiting'] { color: var(--orange); }
/* ------------------------------------------------------------------ the details panel (inspector) */
.fpt-panel { background: var(--bg-elev); border: 0; box-shadow: -0.5px 0 0 var(--sep); }
.fpt-panel[data-state='strip'] { background: var(--bg); }
.fpt-panel-handle:hover, .fpt-panel-handle:focus-visible { background: var(--accent); opacity: 0.35; }
.fpt-panel-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 12px 12px 0 16px; border: 0; }
.fpt-panel-tablist { flex: 1 1 auto; min-width: 0; display: flex; width: auto !important; max-width: none !important; -webkit-mask-image: none; mask-image: none; padding-inline: 2px !important; overflow: visible; }
.fpt-panel-tablist .mantine-Tabs-tab { flex: 1 1 0; justify-content: center; padding: 0 8px; height: 28px; font-size: var(--fs-sm); }
.fpt-panel-tablabel { display: inline-flex; align-items: center; gap: 6px; }
.fpt-panel-count { background: transparent; color: var(--label-2); font-weight: var(--fw-semibold); padding: 0; }
.fpt-panel-content { padding: 14px 16px 24px; }
.fpt-panel-stripbtn { border-radius: 50%; }
.fpt-panel-livedot { width: 7px; height: 7px; flex-basis: 7px; background: var(--red-dot) !important; animation: trio-blink 1.4s ease-in-out infinite; }
/* ------------------------------------------------------------------ the live browser */
.trio-live { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.trio-live-top { display: flex; align-items: flex-start; gap: 10px; }
.trio-live-t { flex: 1; min-width: 0; }
.trio-live-t b { display: block; font-size: var(--fs-md); line-height: 20px; font-weight: var(--fw-semibold); letter-spacing: -0.012em; }
.trio-live-t span { display: block; font-size: var(--fs-xs); line-height: 17px; color: var(--label-2); }
.trio-livebadge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.04em; flex: none; background: var(--fill); color: var(--label-2); }
.trio-livebadge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--label-3); }
.trio-livebadge[data-tone='red'] { background: var(--red-soft); color: var(--red); }
.trio-livebadge[data-tone='red']::before { background: var(--red-dot); animation: trio-blink 1.4s ease-in-out infinite; }
.trio-livebadge[data-tone='orange'] { background: var(--orange-soft); color: var(--orange); }
.trio-livebadge[data-tone='orange']::before { background: var(--orange-dot); }
.trio-nowline { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-md); background: var(--fill); font-size: var(--fs-sm); line-height: 18px; }
.trio-nowline svg { flex: none; color: var(--label-2); }
.trio-nowline b { font-weight: var(--fw-semibold); }
.trio-browser { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 0 0 0.5px var(--sep-strong), 0 6px 20px rgba(0, 0, 0, 0.1); }
.trio-bchrome { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: linear-gradient(var(--chrome-a), var(--chrome-b)); box-shadow: inset 0 -0.5px 0 rgba(0, 0, 0, 0.12); }
.trio-bdots { display: flex; gap: 5px; }
.trio-bdots i { width: 9px; height: 9px; border-radius: 50%; background: #d0d0d5; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
.trio-burl { flex: 1; min-width: 0; height: 18px; border-radius: var(--r-sm); background: var(--chrome-url-bg); color: var(--chrome-url-fg); font-size: var(--fs-2xs); display: flex; align-items: center; justify-content: center; gap: 4px; letter-spacing: 0; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 8px; }
.trio-viewport, .fpt-live-frame { position: relative; width: 100%; aspect-ratio: 16 / 10.2; background: #fff; border: 0; border-radius: 0; overflow: hidden; display: grid; place-items: center; color: #1d1d1f; }
.fpt-live-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fpt-live-frame[data-dim='true'] img { opacity: 0.5; filter: saturate(0.6) blur(1.2px); }
.fpt-live-frame:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; background: #000; }
.fpt-live-overlay { position: absolute; inset: 0; transform: none; max-width: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; border: 0; border-radius: 0;
background: color-mix(in srgb, var(--bg-elev) 84%, transparent); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); animation: trio-fadein var(--d3) var(--ease) both; color: var(--label); }
.fpt-live-overlay[data-kind='paused'] { border: 0; }
.fpt-live-overlay b { font-size: var(--fs-md); line-height: 20px; font-weight: var(--fw-semibold); letter-spacing: -0.012em; }
.trio-ov-s { font-size: var(--fs-sm); line-height: 18px; color: var(--label-2); max-width: 32ch; }
.trio-ov-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--fill-2); color: var(--label-2); }
.trio-ov-ic[data-tone='orange'] { background: var(--orange-soft); color: var(--orange); }
.trio-skelline { width: 140px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--fill-2); position: relative; }
.trio-skelline::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 3px; background: var(--accent); animation: trio-slide 1.3s var(--ease-sheet) infinite; }
.trio-live-ctrls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trio-live-sp { flex: 1; }
.trio-live-cap { font-size: var(--fs-xs); color: var(--label-2); }
.trio-honest { display: flex; gap: 6px; margin: 0; font-size: var(--fs-xs); line-height: 16px; color: var(--label-2); }
.trio-honest svg { flex: none; margin-top: 1px; }
.trio-live-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 20px; border-radius: var(--r-lg); background: var(--fill); color: var(--label-2); }
.trio-live-empty b { color: var(--label); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.trio-live-empty > span:not(.trio-live-ic) { max-width: 36ch; font-size: var(--fs-base); line-height: 19px; }
.trio-live-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--fill-2); color: var(--label-2); }
.trio-live[data-variant='inline'] .trio-browser { max-width: 100%; }
.trio-banner-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.trio-live-results h4 { display: flex; font-size: var(--fs-xs); line-height: 16px; font-weight: var(--fw-semibold); color: var(--label-2); margin: 14px 0 6px; }
.trio-live-results h4 span:last-child:not(:first-child) { margin-left: auto; font-weight: var(--fw-medium); }
.trio-group-flat { box-shadow: inset 0 0 0 0.5px var(--sep-strong); background: transparent; border-radius: var(--r-lg); }
.trio-row-sm { min-height: 40px; padding: 8px 12px; gap: 10px; font-size: var(--fs-sm); }
.trio-row-sm .trio-row-body b { font-size: var(--fs-sm); line-height: 17px; font-weight: var(--fw-medium); }
.trio-ico { width: 18px; height: 18px; flex: none; display: grid; place-items: center; }
.trio-ico[data-tone='green'] { color: var(--green-dot); }
.trio-ico[data-tone='red'] { color: var(--red-dot); }
.trio-upnext { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-sm); color: var(--label-2); }
.fpt-failed-frame { border: 0; box-shadow: 0 0 0 1.5px var(--red-line); border-radius: var(--r-md); background: var(--bg-elev); }
@media (max-width: 1180px) { .trio-stages { padding-inline: 24px; } }
/* in the run workspace the toolbar shares its row with the details panel: the search field is an icon */
.fpt-ws .fpt-search { width: 32px; padding: 0; justify-content: center; }
.fpt-ws .fpt-search > svg { position: static; }
.fpt-ws .fpt-search span, .fpt-ws .fpt-search kbd { display: none; }
.fpt-ws .fpt-topbar-title-min { min-width: 120px; }
.fpt-ws .fpt-topbar-left { flex: 1 1 120px; }
.fpt-ws .fpt-topbar-actions { flex-shrink: 0; }
.fpt-panel-head { align-items: center; padding: 0 12px 0 16px; }
/* the Testing step when the live picture is in the details panel (one stream at a time) */
.trio-live-elsewhere { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-md, 10px); background: var(--fill); color: var(--label-2); font-size: var(--fs-sm); }
.trio-live-elsewhere span { flex: 1 1 auto; }
|