@import url("./atlas-content.css");
@import url("/assets/workspace.css");

.px-content { display:grid; gap:var(--space-5); }
.px-intro { display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--space-3) var(--space-5); margin-bottom:var(--space-2); }
.px-intro .pg-text { color:var(--text-muted); }
.px-prompt .terminal__head { padding:var(--space-3) var(--space-5); }
.px-note { text-transform:none; letter-spacing:0; color:var(--ink-muted); }
.px-prompt .terminal__body { padding:var(--space-5); font-size:var(--size-body); }
.px-prompt p { max-width:75ch; white-space:normal; overflow-wrap:anywhere; }
.px-result { font-family:var(--font-structure); }
.px-result__bar { justify-content:space-between; align-items:center; padding:var(--space-3) var(--space-5); gap:var(--space-4); }
.px-result__bar>span:first-child { color:var(--editor-muted); font-size:var(--size-meta); }
.px-result__label { font-family:var(--font-label); font-size:var(--size-label); text-transform:uppercase; letter-spacing:var(--tracking-label); }
.px-result__content { padding:var(--space-5); }
.px-result__summary { margin-bottom:var(--space-5) !important; font-size:var(--size-body); font-weight:var(--weight-strong); color:var(--editor-text); }
.px-row { border-color:var(--editor-line); }
.px-row>summary { min-height:76px; font-weight:400; }
.px-row__copy { display:grid; gap:var(--space-1); min-width:0; }
.px-row__copy strong { color:var(--editor-text); font-size:var(--size-body); font-weight:var(--weight-strong); }
.px-row__copy>span { color:var(--editor-muted); font-size:var(--size-meta); }
.px-row[open] .px-row__copy strong { color:var(--code-keyword); }
.px-row summary>.icon { flex:none; color:var(--editor-muted); }
.px-row__body.accordion__body { max-width:70ch; padding:var(--space-3) 0 var(--space-5); }
.px-detail+.px-detail { margin-top:var(--space-4); }
.px-detail h4,.px-order h4 { margin:0 0 var(--space-1); color:var(--editor-text); font-size:var(--size-meta); font-weight:var(--weight-strong); }
.px-detail p { color:var(--editor-muted); font-size:var(--size-meta); }
.px-hint { padding-top:var(--space-4); color:var(--editor-muted); font-size:var(--size-meta); }
.px-continuation { max-width:65ch; }
.px-order { margin-bottom:var(--space-5); }
.px-order ol { list-style:none; counter-reset:order; margin:var(--space-3) 0 0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2); }
.px-order li { counter-increment:order; padding:var(--space-2) var(--space-3); border:var(--line) solid var(--editor-line); border-radius:var(--radius-mark); color:var(--editor-text); font-size:var(--size-meta); }
.px-order li::before { content:counter(order) ". "; color:var(--editor-muted); }
@media(max-width:35rem) {
 .px-prompt .terminal__head,.px-prompt .terminal__body,.px-result__bar,.px-result__content { padding:var(--space-4); }
 .px-prompt .terminal__body { font-size:var(--size-code); }
 .px-result__summary { margin-bottom:var(--space-4) !important; }
}

/* Composition: the product as installed */
.px-build__editor .editor__tree { overflow:auto; }
.px-build__editor .editor__panel { flex:1 1 0; height:auto; min-height:calc(20 * 1lh); }
.px-build__editor .editor__text { white-space:pre-wrap; overflow-wrap:anywhere; }
@container (min-width: 44em) {
 .px-build__editor .editor__frame { grid-template-columns:calc(var(--icon) + 2 * var(--space-3)) calc(34ch + 2 * var(--space-3)) minmax(0, 1fr); }
}
.px-dir>summary { list-style:none; cursor:pointer; }
.px-dir>summary::-webkit-details-marker { display:none; }
.px-dir>summary::before { content:"▸"; display:inline-block; width:1.2ch; color:var(--editor-muted); }
.px-dir[open]>summary::before { content:"▾"; }
.px-tree .editor__entry:not(summary) { padding-left:calc(var(--space-3) + 1.2ch); }
.px-tree .px-d1 { margin-left:1.5ch; width:calc(100% - 1.5ch); }
.px-tree .px-d2 { margin-left:3ch; width:calc(100% - 3ch); }
.px-tree .px-d3 { margin-left:4.5ch; width:calc(100% - 4.5ch); }
.px-tree .px-d4 { margin-left:6ch; width:calc(100% - 6ch); }
.px-build__table code { font-family:var(--font-exact); font-size:var(--size-meta); white-space:nowrap; }
.px-build__table td { line-height:1.7; }
.px-build__table td .code { padding:0.05em 0.3em; background:var(--fill-surface); border-radius:var(--radius-mark); outline:var(--line) solid var(--line-regular); outline-offset:-1px; }
.px-build__editor .editor__status { background:var(--ink); color:var(--ink-text); font-weight:400; }
.px-build__table { margin-top:var(--space-7); }
/* Example: the agent session beside the files the run produced (workspace groups) */
.px-ex { display:grid; gap:var(--space-5); align-items:stretch; }
@media (min-width:64rem) { .px-ex { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); } }
.px-ex .ws-session__prompt { margin-bottom:0; color:var(--ink-muted); }
/* What you get follows the example at the editor-to-table distance */
.pg-section.px-example:has(+ [data-sect="get"]) { padding-bottom:0; }
.px-example + .pg-section[data-sect="get"] { padding-top:calc(var(--space-5) + var(--space-7)); }
/* What you get and what you'll need: one table, shaped like the members table */
.px-get .table td { font-weight:400; color:var(--text-secondary); }
.px-get .table td:first-child { color:var(--text); width:60%; }
/* A long output folder reads in two columns beside the session */
@media (min-width:48rem) { .px-files--split { columns:2; column-gap:var(--space-5); } .px-files--split li { break-inside:avoid; } }
.px-get .table td strong { color:var(--text); font-weight:var(--weight-strong); }
.px-get__note { margin-top:var(--space-5); color:var(--text-muted); }
.px-get .pg-link { display:inline-flex; margin-top:var(--space-3); }
/* An atlas run's result: each sheet, its count and its first values */
.px-sheets li.px-sheet { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 var(--space-3); align-items:baseline; padding-block:var(--space-2); border-top:var(--line) solid var(--line-subtle); }
.px-sheets li.px-sheet:first-child { border-top:0; }
.px-sheet__name { color:var(--text); }
.px-sheet__values { grid-column:1 / -1; color:var(--text-muted); font:400 var(--size-meta)/var(--leading-body) var(--font-structure); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* A venture system as folders: workers beside the venture they run */
.px-files--split .ws-files__marker { white-space:nowrap; }
@media (min-width:64rem) { .px-system { grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); } }
