patchwise-agent-studio / web /src /styles /11-apple-components.css
EnergyVenom's picture
Tidy the web app: pages by area, CSS in load order, web/README.md (b2a039d)
fb43301 verified
Raw History Blame Contribute Delete
19.7 kB
/* Patchwise, shared components of the Apple-style layer (UI-APPLE.md section 6). Loaded after apple.css. */
/* ------------------------------------------------------------------ page head and text roles */
/* page header: the title and lede take the room they need; the actions sit to the right while they fit and wrap under the title
when they do not (never over it). On phones the actions take the full width and inputs share it. */
.trio-head { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: var(--sp-6); row-gap: var(--sp-3); }
.trio-head-text { flex: 1 1 320px; min-width: 0; }
.trio-head h1 { font-size: var(--fs-3xl); line-height: var(--lh-3xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-display); margin: 0; overflow-wrap: anywhere; }
.trio-head-actions { display: flex; align-items: center; gap: var(--sp-2); flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-start; max-width: 100%; margin-top: 1px; }
@media (max-width: 767px) {
.trio-head h1 { font-size: var(--fs-2xl); line-height: var(--lh-2xl); }
.trio-head-actions { flex-basis: 100%; }
.trio-head-actions > .mantine-InputWrapper-root, .trio-head-actions > .mantine-Select-root { flex: 1 1 140px; width: auto !important; min-width: 0; }
}
.trio-head-actions .mantine-Input-input { border-radius: var(--r-md); background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--sep-strong); min-height: 32px; height: 32px; font-weight: var(--fw-medium); font-size: var(--fs-base) !important; padding-inline: 14px; }
.trio-head-actions .mantine-Input-input:hover { background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--label-3); }
.trio-head-actions .mantine-Select-section { color: var(--label-2); }
.trio-lede { color: var(--label-2); font-size: var(--fs-md); line-height: var(--lh-md); max-width: 62ch; margin-top: 4px; }
.trio-lede .fpt-release-line, .trio-lede .fpt-pagedesc { font-size: var(--fs-md); color: var(--label-2); }
.trio-foot { color: var(--label-2); font-size: var(--fs-xs); line-height: 16px; margin: 8px 6px 0; }
.fpt-embedded .trio-head { display: none; }
.fpt-embedded .trio-head .fpt-embedded-only { display: flex; }
.fpt-dimtext, .fpt-pagedesc, .fpt-dim { color: var(--label-2); }
.fpt-pagedesc a { color: var(--accent-text); }
/* ------------------------------------------------------------------ groups, rows, tiles, chips, banners */
.trio-group, .fpt-card { background: var(--bg-elev); border-radius: var(--r-xl); box-shadow: var(--sh-card); border: 0; }
.trio-group { overflow: hidden; }
.trio-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; color: var(--label); text-decoration: none; transition: background var(--d1); }
.trio-row + .trio-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--sep); }
.trio-group > [role='listitem'] { position: relative; }
.trio-group > [role='listitem'] + [role='listitem']::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--sep); z-index: 1; } /* rows wrapped as list items keep their separators */
.trio-row-k { width: 140px; flex: none; color: var(--label-2); font-size: var(--fs-sm); }
.trio-row-v { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: var(--fw-medium); }
a.trio-row:hover, .trio-row[data-tap]:hover { background: var(--fill); text-decoration: none; }
.trio-tile { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--fill); color: var(--label-2); flex: none; }
.trio-tile[data-tone='orange'] { background: var(--orange-soft); color: var(--orange); }
.trio-tile[data-tone='green'] { background: var(--green-soft); color: var(--green); }
.trio-tile[data-tone='red'] { background: var(--red-soft); color: var(--red); }
.trio-tile[data-tone='ink'] { background: var(--fill-2); color: var(--label); }
/* the Oracle Fusion cue: a graphite outline (no fill) with the cloud icon; the practice pod keeps the orange */
.trio-tile[data-tone='fusion'] { background: transparent; color: var(--label); box-shadow: inset 0 0 0 1px var(--label-2); }
.trio-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-medium); background: var(--fill); color: var(--label-2); white-space: nowrap; }
.trio-chip[data-tone='orange'] { background: var(--orange-soft); color: var(--orange); }
.trio-chip[data-tone='green'] { background: var(--green-soft); color: var(--green); }
.trio-chip[data-tone='red'] { background: var(--red-soft); color: var(--red); }
.trio-chip[data-tone='ink'] { background: var(--fill-2); color: var(--label); }
.trio-chip[data-tone='fusion'] { background: transparent; color: var(--label); box-shadow: inset 0 0 0 1px var(--label-2); }
.trio-dotword { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; color: var(--label-2); }
.trio-dotword::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--label-3); flex: none; }
.trio-dotword[data-tone='green'] { color: var(--green); } .trio-dotword[data-tone='green']::before { background: var(--green-dot); }
.trio-dotword[data-tone='orange'] { color: var(--orange); } .trio-dotword[data-tone='orange']::before { background: var(--orange-dot); }
.trio-dotword[data-tone='red'] { color: var(--red); } .trio-dotword[data-tone='red']::before { background: var(--red-dot); }
.trio-dotword[data-tone='ink'] { color: var(--label); } .trio-dotword[data-tone='ink']::before { background: var(--accent); }
.trio-dotword[data-pulse]::before { animation: trio-pulse 1.8s var(--ease) infinite; }
.trio-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); background: var(--fill); font-size: var(--fs-base); line-height: 19px; color: var(--label); }
.trio-banner[data-tone='orange'] { background: var(--orange-soft); }
.trio-banner[data-tone='red'] { background: var(--red-soft); }
.trio-banner[data-tone='ink'] { background: var(--fill); }
.trio-banner[data-tone='fusion'] { background: transparent; box-shadow: inset 0 0 0 1px var(--sep-strong); }
.trio-banner[data-tone='green'] { background: var(--green-soft); }
.trio-banner b { font-weight: var(--fw-semibold); }
.trio-globalbanners { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.trio-check { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
/* ------------------------------------------------------------------ the start sheet, choices */
.trio-steps { display: flex; gap: 6px; }
.trio-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-2); transition: background var(--d2); }
.trio-steps i[data-on] { background: var(--accent); }
.trio-choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--sep-strong); cursor: default; transition: box-shadow var(--d1), background var(--d1); color: var(--label); }
.trio-choice:hover:not(:disabled):not([data-disabled]) { background: var(--fill); }
.trio-choice[data-checked] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.trio-choice:disabled, .trio-choice[data-disabled] { opacity: 0.6; }
.trio-choice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trio-choice-body b { font-weight: var(--fw-semibold); }
.trio-choice-body > span { color: var(--label-2); font-size: var(--fs-sm); line-height: 18px; }
.trio-choice-body > .trio-choice-why { color: var(--orange); }
.trio-choice-check { padding: 12px 14px; }
.trio-choice-check .mantine-Checkbox-root, .trio-choice-check .mantine-Radio-root { width: 100%; }
.trio-sheet-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.trio-sheet-sp { flex: 1; }
.trio-sheet-form .mantine-Accordion-item { box-shadow: inset 0 0 0 1px var(--sep-strong); background: transparent; }
/* ------------------------------------------------------------------ command palette and keyboard sheet */
.trio-palette { background: var(--mat-pop) !important; -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px); border-radius: var(--r-2xl) !important; box-shadow: var(--sh-pop) !important; overflow: hidden; }
.trio-palette-body { padding: 0 !important; }
.trio-pin { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 58px; border-bottom: 0.5px solid var(--sep); color: var(--label-2); }
.trio-pin input { flex: 1; border: 0; outline: 0; background: transparent; font-size: var(--fs-lg); letter-spacing: -0.014em; color: var(--label); height: 100%; font-family: inherit; }
.trio-pin input::placeholder { color: var(--ph); }
.trio-pl { max-height: 380px; overflow-y: auto; padding: 8px; }
.trio-pl h6 { margin: 10px 12px 4px; font-size: var(--fs-xs); line-height: 14px; font-weight: var(--fw-semibold); color: var(--label-2); }
.trio-pe { padding: 18px 12px; color: var(--label-2); }
.trio-pit { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-md); font-size: var(--fs-base); cursor: default; color: var(--label); }
.trio-pit svg { color: var(--label-2); flex: none; }
.trio-pit-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trio-pit-k { margin-left: auto; color: var(--label-2); font-size: var(--fs-xs); }
.trio-pit[aria-selected='true'] { background: var(--fill-2); color: var(--label); }
.trio-pit[aria-selected='true'] svg, .trio-pit[aria-selected='true'] .trio-pit-k { color: var(--label); }
.trio-pf { display: flex; gap: 16px; padding: 10px 20px; border-top: 0.5px solid var(--sep); font-size: var(--fs-xs); color: var(--label-2); }
.trio-pf-sp { flex: 1; }
.trio-keys { margin: 0; display: grid; gap: 2px; }
.trio-keys > div { display: flex; align-items: center; gap: 16px; min-height: 36px; padding: 4px 0; border-bottom: 0.5px solid var(--sep); }
.trio-keys dt { width: 120px; flex: none; display: flex; gap: 4px; }
.trio-keys dd { margin: 0; color: var(--label); font-size: var(--fs-base); }
.fpt-kbd { font: 500 11.5px var(--font); padding: 1px 6px; border-radius: var(--r-sm); background: var(--fill); color: var(--label-2); letter-spacing: 0; border: 0; line-height: 16px; }
/* ------------------------------------------------------------------ older shared pieces, restyled */
.fpt-pill, .fpt-pill[data-tone] { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); line-height: 22px; font-weight: var(--fw-medium); white-space: nowrap; background: var(--fill); box-shadow: none; color: var(--label-2); }
.fpt-pill[data-tone='ink'] { background: var(--fill-2); color: var(--label); }
.fpt-pill[data-tone='amber'], .fpt-pill[data-tone='green'], .fpt-pill[data-tone='red'] { background: transparent; padding: 0; height: auto; font-size: var(--fs-sm); line-height: 18px; }
.fpt-pill[data-tone='amber']:has(svg), .fpt-pill[data-tone='green']:has(svg), .fpt-pill[data-tone='red']:has(svg) { padding: 0 9px; height: 22px; font-size: var(--fs-xs); line-height: 22px; }
.fpt-pill[data-tone='amber']:has(svg) { background: var(--orange-soft); }
.fpt-pill[data-tone='green']:has(svg) { background: var(--green-soft); }
.fpt-pill[data-tone='red']:has(svg) { background: var(--red-soft); }
.fpt-pill[data-tone='amber'] { color: var(--orange); }
.fpt-pill[data-tone='green'] { color: var(--green); }
.fpt-pill[data-tone='red'] { color: var(--red); }
.fpt-pill[data-tone='green']:not(:has(svg))::before, .fpt-pill[data-tone='red']:not(:has(svg))::before, .fpt-pill[data-tone='amber']:not(:has(svg))::before { width: 8px; height: 8px; flex-basis: 8px; }
.fpt-pill[data-tone='green']:not(:has(svg))::before { background: var(--green-dot); }
.fpt-pill[data-tone='red']:not(:has(svg))::before { background: var(--red-dot); }
.fpt-pill[data-tone='amber']:not(:has(svg))::before { background: var(--orange-dot); }
.fpt-pill[data-outline='true'] { background: transparent; box-shadow: inset 0 0 0 1px var(--sep-strong); }
.fpt-pill[data-state], .fpt-pill[data-state='gap'], .fpt-pill[data-state='not_affected'] { background: var(--fill); box-shadow: none; }
.fpt-pill[data-state='failing'] { background: var(--red-soft); color: var(--red); }
.fpt-envbadge, .fpt-envbadge[data-tone] { height: 22px; padding: 0 9px !important; font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.fpt-envbadge[data-tone='amber'] { background: var(--orange-soft) !important; color: var(--orange); }
.fpt-envbadge[data-tone='fusion'] { background: transparent !important; color: var(--label); box-shadow: inset 0 0 0 1px var(--label-2); }
.fpt-idpill { background: var(--fill); color: var(--label-2); font-family: var(--mono); font-size: var(--fs-xs); padding: 0 9px; border: 0; height: 22px; border-radius: var(--r-pill); }
.fpt-mock { background: var(--orange-soft); color: var(--orange); padding: 5px 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.fpt-dchip { display: inline-flex; align-items: center; gap: 7px; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 18px; color: var(--label-2); }
.fpt-dchip[data-tone='green'] { color: var(--green); } .fpt-dchip[data-tone='red'] { color: var(--red); } .fpt-dchip[data-tone='amber'] { color: var(--orange); }
.fpt-dchip-dot { width: 8px; height: 8px; }
.fpt-dchip[data-tone='green'] .fpt-dchip-dot { background: var(--green-dot); } .fpt-dchip[data-tone='red'] .fpt-dchip-dot { background: var(--red-dot); } .fpt-dchip[data-tone='amber'] .fpt-dchip-dot { background: var(--orange-dot); }
.fpt-dchip[data-size='lg'], .fpt-dchip[data-size='xl'] { font-size: var(--fs-md); padding: 0; }
.fpt-statechip, .fpt-statechip[data-state] { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--label-2); }
.fpt-statechip[data-state='waiting'], .fpt-statechip[data-state='paused'] { color: var(--orange); }
.fpt-statechip[data-state='running'], .fpt-statechip[data-state='queued'] { color: var(--label); }
.fpt-statechip[data-state='failed'] { color: var(--red); }
.fpt-sdot { width: 8px; height: 8px; flex: 0 0 8px; box-shadow: none; }
.fpt-sdot[data-state='waiting'] { box-shadow: none; background: var(--orange-dot); }
.fpt-sdot[data-state='queued'], .fpt-sdot[data-state='running'] { background: var(--accent); }
.fpt-sdot[data-state='done-ready'], .fpt-sdot[data-state='done'] { background: var(--green-dot); }
.fpt-sdot[data-state='done-notready'], .fpt-sdot[data-state='failed'] { background: var(--red-dot); }
.fpt-sdot[data-state='done-held'], .fpt-sdot[data-state='paused'] { background: var(--orange-dot); }
.fpt-sdot[data-pulse='true'] { animation: trio-pulse 1.8s var(--ease) infinite; }
.fpt-verdictword, .fpt-dotword { font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.fpt-dotword::before { width: 8px; height: 8px; background: var(--label-3); }
.fpt-dotword[data-tone='green'] { color: var(--green); } .fpt-dotword[data-tone='green']::before { background: var(--green-dot); }
.fpt-dotword[data-tone='amber'] { color: var(--orange); } .fpt-dotword[data-tone='amber']::before { background: var(--orange-dot); }
.fpt-dotword[data-tone='red'] { color: var(--red); } .fpt-dotword[data-tone='red']::before { background: var(--red-dot); }
.fpt-verdictword[data-tone='green'] { color: var(--green); } .fpt-verdictword[data-tone='red'] { color: var(--red); } .fpt-verdictword[data-tone='amber'] { color: var(--orange); }
/* states: empty (EmptyState), loading (LoadingState), tables (DataTable) */
.fpt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-2); padding: var(--sp-12) var(--sp-6); color: var(--label-2); }
.fpt-empty-icon { width: 56px; height: 56px; border-radius: var(--r-lg); display: grid; place-items: center; margin-bottom: var(--sp-2); background: var(--fill); color: var(--label-2); }
.fpt-empty-title { color: var(--label); font-size: var(--fs-lg); line-height: var(--lh-lg); font-weight: var(--fw-semibold); letter-spacing: var(--ls-title); }
.fpt-empty-body { max-width: 42ch; font-size: var(--fs-base); line-height: var(--lh-base); }
.fpt-empty-action { margin-top: var(--sp-2); }
.fpt-tablewrap { overflow-x: auto; max-width: 100%; border-radius: var(--r-lg); }
.fpt-tablewrap:focus-visible { outline-offset: 2px; }
.fpt-table-empty { text-align: center; color: var(--label-2); padding-block: var(--sp-8) !important; }
.fpt-textlink, .fpt-linkbtn { color: var(--accent-text); text-decoration: none; font-weight: var(--fw-medium); }
.fpt-textlink { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); text-underline-offset: 2px; }
.fpt-textlink:hover, .fpt-linkbtn:hover { text-decoration: underline; text-underline-offset: 2px; }
.fpt-spin { color: var(--label-2); }
.fpt-nextstep { border: 0; border-radius: var(--r-lg); background: var(--fill); padding: 12px 16px; }
.fpt-nextstep[data-tone='amber'] { background: var(--orange-soft); }
.fpt-nextstep[data-tone='red'] { background: var(--red-soft); }
.fpt-nextstep[data-tone='green'] { background: var(--green-soft); }
.fpt-nextstep[data-compact='true'] { background: transparent; padding: 0; }
.fpt-statustext { font-weight: var(--fw-semibold); }
.fpt-prio { font-weight: var(--fw-semibold); color: var(--label); }
.fpt-aitext, .fpt-dryok { color: var(--label-2); }
.fpt-ruleresult { color: var(--label-2); }
.fpt-kv dt { color: var(--label-2); }
.fpt-kv dd { font-weight: var(--fw-semibold); }
/* plain-language error alert: field list and the small support-details control */
.fpt-errfields { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-sm); line-height: 18px; }
.fpt-errcopy { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: var(--fs-xs); color: var(--label-2); }
.fpt-errcopy:hover { color: var(--label); text-decoration: underline; text-underline-offset: 2px; }
.fpt-errcopy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* ------------------------------------------------------------------ NavTabs: views with their own address, as a segmented pill bar */
.fpt-navtabs { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: var(--r-pill); background: var(--fill); }
.fpt-navtabs::-webkit-scrollbar { display: none; }
.fpt-navtab { flex: none; display: inline-flex; align-items: center; height: var(--h-xs); padding: 0 var(--sp-3); border-radius: var(--r-pill);
font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--label-2); white-space: nowrap; text-decoration: none;
transition: background var(--d1) var(--ease), color var(--d1) var(--ease); }
.fpt-navtab:hover { color: var(--label); background: var(--fill); }
.fpt-navtab[aria-current='page'] { color: var(--label); background: var(--seg-thumb); box-shadow: var(--sh-seg); }