.c4{--c4-bg:#f7f8fa;--c4-surface:#fff;--c4-ink:#18212b;--c4-muted:#687583;--c4-line:#e1e6eb;--c4-accent:#176b5b;--c4-on-accent:#fff;--c4-dot:#98a5aa;--c4-dot-ok:#69a24f;--c4-dot-bad:#ce7441;--c4-dot-skip:#b3bcc1;--c4-dot-open:#179579;--c4-ok-bg:#edf6e9;--c4-ok-ink:#47713d;--c4-bad-bg:#fff0e9;--c4-bad-ink:#995128;--c4-bad-line:#e7c4b2;--c4-danger:#b3261e;--c4-on-danger:#fff;--c4-skip-bg:#f0f2f3;--c4-skip-ink:#5b6870;--c4-open-bg:#e9f4f1;--c4-open-ink:#176b5b;--c4-quiet-bg:#eef2f3;--c4-quiet-ink:#4f5d67;--c4-quiet:#f3f5f6;--c4-ghost:#f7f8f9;color:var(--c4-ink);max-width:1540px;margin:0 auto;padding:0 32px 44px}
/* One navigation per page: the shared Frame navbar carries the workspace's sections, so the page has no sidebar
   of its own (openvibe.design/patterns/single-navbar). */
.c4-main{min-width:0;max-width:1200px;width:100%;padding-top:34px}
.c4-title{display:flex;justify-content:space-between;align-items:end;margin:0 0 22px}
.c4-title h1{font-size:clamp(26px,3vw,36px);letter-spacing:-.045em;margin:0;line-height:1.12}
.c4-title p{margin:8px 0 0;color:var(--c4-muted);font-size:14px;line-height:1.5}
.c4-card{background:var(--c4-surface);border:1px solid var(--c4-line);border-radius:13px;padding:20px;margin:0 0 16px;box-shadow:0 1px 2px #1b29340a}
.c4-card h2{font-size:16px;letter-spacing:-.02em;margin:0}
.c4-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.c4-card-head a:not(.c4-button),.c4-card a:not(.c4-button){color:var(--c4-accent);font-size:13px}
.c4-sub{margin:6px 0 12px;color:var(--c4-muted);font-size:13px;line-height:1.45}
.c4-composer{border-color:#d5e4df;background:linear-gradient(140deg,#fff,#f8fcfa)}
.c4-composer form>label{display:block;font-size:15px;font-weight:650;margin-bottom:12px}
.c4-composer textarea{width:100%;min-height:105px;resize:vertical;border:1px solid var(--c4-line);border-radius:9px;padding:13px;font:inherit;color:var(--c4-ink);background:#fff}
.c4-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:12px}
.c4-folder-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.c4-folder-row input{flex:1 1 260px;min-width:0}
.c4-folder-row select{flex:0 1 300px;max-width:100%}
.c4-folder-row input,.c4-folder-row select{background:#fff;border:1px solid var(--c4-line);border-radius:7px;padding:8px 10px;color:var(--c4-ink);font:inherit;font-size:13px;min-height:44px}
.c4-model-other{display:grid;gap:5px;font-size:11px;color:var(--c4-muted);min-width:150px}
.c4-model-other[hidden]{display:none}
.c4-controls label{display:grid;gap:5px;font-size:11px;color:var(--c4-muted);min-width:120px}
.c4-controls select,.c4-controls input,.c4-search input{background:#fff;border:1px solid var(--c4-line);border-radius:7px;padding:8px;color:var(--c4-ink);font:inherit;font-size:13px;min-height:44px}
.c4-button{border:0;border-radius:8px;background:var(--c4-accent);color:var(--c4-on-accent);padding:10px 16px;font:inherit;font-size:13px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px}
.c4-button-light{background:#f3f5f6;color:var(--c4-ink);border:1px solid var(--c4-line)}
.c4-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.c4-empty,.c4-emptyline{color:var(--c4-muted);font-size:13px;line-height:1.55}
.c4-emptyline{border-top:1px solid var(--c4-line);padding:15px 0 3px}
.c4-empty h2{color:var(--c4-ink)}
.c4-task{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:13px 0;border-top:1px solid var(--c4-line);color:inherit;text-decoration:none;min-width:0}
.c4-task-title{font-size:13px;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.c4-task-meta{grid-column:2/4;color:var(--c4-muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.c4-status-dot{width:9px;height:9px;border-radius:50%;background:#98a5aa;grid-row:1;grid-column:1}
.c4-status-dot.c4-running,.c4-status-dot.c4-queued{background:#179579}.c4-status-dot.c4-failed{background:#ce7441}.c4-status-dot.c4-done,.c4-status-dot.c4-succeeded{background:#69a24f}
.c4-status{display:inline-flex;border-radius:20px;padding:5px 9px;background:#eef2f3;color:#4f5d67;font-size:11px;font-weight:650;white-space:nowrap}
.c4-running,.c4-queued{background:#e9f4f1;color:#176b5b}.c4-failed{background:#fff0e9;color:#995128}.c4-done,.c4-succeeded{background:#edf6e9;color:#47713d}.c4-cancelled{background:#f0eff5;color:#635a7a}
.c4-reasons{padding:18px 2px}.c4-reasons>h2{font-size:17px}.c4-reasons article{border-top:1px solid var(--c4-line);padding-top:12px}.c4-reasons h3{font-size:14px;margin:0 0 6px}.c4-reasons p{font-size:12px;line-height:1.5;color:var(--c4-muted);margin:0}
.c4-search{display:flex;align-items:end;gap:8px;margin:0 0 14px}.c4-search label{font-size:12px;color:var(--c4-muted)}.c4-search input{min-width:0;flex:1}
.c4-outcome{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 0 16px}.c4-obadge{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#fff0e9;color:#995128}.c4-obadge svg{width:15px;height:15px}.c4-outcome-copy{min-width:0;display:grid;gap:2px}.c4-outcome-copy>b{font-size:13px}.c4-outcome-copy>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--c4-muted);font-size:12px}.c4-outcome-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.c4-opill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px 0 12px;border:1px solid var(--c4-line);border-radius:99px;background:var(--c4-surface);color:var(--c4-ink);font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap}.c4-opill svg{width:15px;height:15px}.c4-opill-primary{background:var(--c4-accent);border-color:var(--c4-accent);color:var(--c4-on-accent)}.c4-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.c4-task-detail{padding:24px}.c4-task-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.c4-task-title-wrap{min-width:0;flex:1}.c4-brief{font-size:clamp(24px,3vw,34px);letter-spacing:-.04em;line-height:1.18;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.c4-brief.is-expanded{-webkit-line-clamp:unset}.c4-brief-expand{background:none;border:0;color:var(--c4-accent);padding:9px 0;cursor:pointer;font:inherit;font-size:13px;min-height:44px}.c4-chips{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.c4-chip{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid var(--c4-line);border-radius:18px;color:var(--c4-muted);font-size:12px;text-decoration:none}.c4-chip[href]{color:var(--c4-accent)}
.c4-progress-toggle{width:100%;display:flex;align-items:center;gap:9px;text-align:left;border:0;border-radius:9px;background:#edf5f2;color:var(--c4-ink);padding:12px 14px;min-height:46px;font:inherit;font-size:13px;cursor:pointer}.c4-progress-meta{color:var(--c4-muted);font-size:12px;margin-left:auto}.c4-tabs{display:flex;gap:5px;border-bottom:1px solid var(--c4-line);margin:16px 0 0;overflow-x:auto}.c4-tabs a{padding:11px 12px;color:var(--c4-muted);text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;font-size:13px;min-height:44px}.c4-tabs a[aria-selected=true]{color:var(--c4-accent);border-color:var(--c4-accent);font-weight:650}.c4-panel{padding:14px 0 4px;min-height:58px}.c4-panel[hidden]{display:none}.c4-panel p{font-size:13px;color:var(--c4-muted)}.c4-log{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;background:#f6f8f8;border-radius:8px;padding:12px;font-size:12px;color:#314047}.c4-code{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f7;padding:12px;border-radius:8px;font-size:12px}
.c4-settings{display:grid;gap:12px;font-size:13px}.c4-safety{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.c4-safety-card{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--c4-line);border-radius:10px;padding:14px;cursor:pointer;min-height:90px}.c4-safety-card:has(input:checked){border-color:var(--c4-accent);box-shadow:0 0 0 1px var(--c4-accent)}.c4-safety-card input{margin-top:3px;accent-color:var(--c4-accent)}.c4-safety-card span{display:grid;gap:6px}.c4-safety-card small{color:var(--c4-muted);font-size:12px;line-height:1.4}
.c4 a:focus-visible,.c4 button:focus-visible,.c4 input:focus-visible,.c4 textarea:focus-visible,.c4 select:focus-visible{outline:2px solid #188c75;outline-offset:2px}
@media(max-width:900px){.c4{padding-left:22px;padding-right:22px}}
@media(max-width:760px){.c4{padding:0 16px 24px}.c4-main{padding-top:24px}.c4-title{margin-bottom:16px}.c4-card{padding:16px;border-radius:11px}.c4-grid{grid-template-columns:1fr;gap:0}.c4-controls{display:grid;grid-template-columns:1fr 1fr}.c4-controls label{min-width:0}.c4-controls select,.c4-controls input{width:100%}.c4-controls .c4-button{grid-column:1/-1}.c4-task-detail{padding:17px}.c4-task-heading{gap:8px}.c4-task-heading>.c4-status{flex:none}.c4-chips{gap:6px}.c4-chip{font-size:11px;padding:5px 8px}.c4-outcome{grid-template-columns:30px minmax(0,1fr);gap:8px}.c4-outcome-actions{grid-column:1/-1;justify-content:flex-start;padding-left:38px}.c4-opill{min-height:44px;padding:0 11px;font-size:12px}.c4-search{align-items:stretch;flex-wrap:wrap}.c4-search label{width:100%}.c4-safety{grid-template-columns:1fr}.c4-safety-card{min-height:68px}.c4-progress-toggle{flex-wrap:wrap}.c4-progress-meta{margin-left:0}.c4-task-meta{font-size:10px}}
:root[data-theme-mode="dark"] .c4{--c4-bg:#101518;--c4-surface:#171f23;--c4-ink:#eaf0f1;--c4-muted:#a3b0b4;--c4-line:#2d393d;--c4-accent:#75d0ba;--c4-on-accent:#101518;--c4-dot:#5b6870;--c4-dot-ok:#afd39c;--c4-dot-bad:#f0b18c;--c4-dot-skip:#5b6870;--c4-dot-open:#75d0ba;--c4-ok-bg:#243423;--c4-ok-ink:#afd39c;--c4-bad-bg:#39291f;--c4-bad-ink:#f0b18c;--c4-bad-line:#5a4034;--c4-danger:#ff9a8f;--c4-on-danger:#101518;--c4-skip-bg:#263034;--c4-skip-ink:#cad4d6;--c4-open-bg:#1d3831;--c4-open-ink:#75d0ba;--c4-quiet-bg:#20292d;--c4-quiet-ink:#cad4d6;--c4-quiet:#20292d;--c4-ghost:#11181b}
:root[data-theme-mode="dark"] .c4-composer{background:linear-gradient(140deg,#171f23,#182722);border-color:#315148}:root[data-theme-mode="dark"] .c4 textarea,:root[data-theme-mode="dark"] .c4 select,:root[data-theme-mode="dark"] .c4 input{background:#11181b;color:var(--c4-ink)}
:root[data-theme-mode="dark"] .c4-log,:root[data-theme-mode="dark"] .c4-code{background:#11181b;color:#d3dfdf}:root[data-theme-mode="dark"] .c4-button-light{background:#20292d;color:var(--c4-ink)}:root[data-theme-mode="dark"] .c4-obadge{background:#39291f;color:#f0b18c}:root[data-theme-mode="dark"] .c4-progress-toggle{background:#1d3831;color:var(--c4-ink)}
:root[data-theme-mode="dark"] .c4-status{background:#263034;color:#cad4d6}:root[data-theme-mode="dark"] .c4-running,:root[data-theme-mode="dark"] .c4-queued{background:#1d3831;color:#75d0ba}:root[data-theme-mode="dark"] .c4-failed{background:#39291f;color:#f0b18c}:root[data-theme-mode="dark"] .c4-done,:root[data-theme-mode="dark"] .c4-succeeded{background:#243423;color:#afd39c}
.c4-progress-content{grid-template-rows:0fr;opacity:0;overflow:hidden;transition:grid-template-rows .24s ease,opacity .24s ease}.c4-progress-content.is-open,.c4-progress-content[data-live="false"]{grid-template-rows:1fr;opacity:1}.c4-progress-inner{min-height:0;overflow:hidden}.c4-usage-row{grid-template-columns:minmax(0,1fr) auto}.c4-usage-row .c4-task-title,.c4-usage-row .c4-task-meta{grid-column:1}.c4-usage-row>b{grid-column:2;grid-row:1/3;align-self:center}
.page:has(.c4){width:100%;max-width:none;padding:0;min-height:0}.c4-attempts{display:grid;gap:6px;margin:10px 0;padding:0;list-style:none}.c4-attempt:before{content:"";display:inline-block;width:7px;height:7px;margin:0 8px 1px 1px;border-radius:50%;background:var(--c4-accent)}.c4-attempt{color:var(--c4-muted);font-size:12px}.c4-log[hidden]{display:none}
.c4-card .c4-outcome-actions a.c4-opill{color:var(--c4-ink)}.c4-card .c4-outcome-actions a.c4-opill-primary{color:var(--c4-on-accent)}

/* C4b: the row pattern (one calm row, pill actions), the fold-out panels, and the forms that remember choices. */
.c4-rows{display:grid;gap:0;list-style:none;margin:6px 0 0;padding:0}
.c4-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:4px 10px;border-top:1px solid var(--c4-line);padding:2px 0;min-width:0}
.c4-row:first-child{border-top:0}
.c4-fold-row{border-top:1px solid var(--c4-line);min-width:0;list-style:none}
.c4-fold-row:first-child{border-top:0}
.c4-row-flat{padding:10px 0;min-height:52px}
.c4-row-dot{width:9px;height:9px;border-radius:50%;background:var(--c4-dot);grid-column:1;grid-row:1}
.c4-dot-ok{background:var(--c4-dot-ok)}.c4-dot-bad{background:var(--c4-dot-bad)}.c4-dot-skip{background:var(--c4-dot-skip)}.c4-dot-open{background:var(--c4-dot-open)}
.c4-row-label{grid-column:2;font-size:13px;font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.c4-row-note{grid-column:2;grid-row:2;color:var(--c4-muted);font-size:12px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.c4-row > .c4-pill,.c4-row > form{grid-column:3;grid-row:1/3;justify-self:end}
.c4-row-flat .c4-row-note{grid-row:auto}
.c4-row-flat > .c4-pill,.c4-row-flat > form{grid-row:1/3}
.c4-pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:3px 10px;border-radius:99px;background:var(--c4-quiet-bg);color:var(--c4-quiet-ink);font-size:11px;font-weight:650;white-space:nowrap;border:1px solid transparent}
.c4-pill-ok{background:var(--c4-ok-bg);color:var(--c4-ok-ink)}.c4-pill-bad{background:var(--c4-bad-bg);color:var(--c4-bad-ink)}.c4-pill-skip{background:var(--c4-skip-bg);color:var(--c4-skip-ink)}.c4-pill-open{background:var(--c4-open-bg);color:var(--c4-open-ink)}.c4-pill-skill{background:var(--c4-quiet-bg);color:var(--c4-quiet-ink)}
.c4-fold{border:0;min-width:0}
.c4-fold > summary{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:4px 10px;min-height:44px;padding:8px 0;cursor:pointer;list-style:none}
.c4-fold > summary::-webkit-details-marker{display:none}
.c4-fold > summary::marker{content:""}
.c4-fold > summary .c4-row-label{grid-column:2;grid-row:1}
.c4-fold > summary .c4-row-note{grid-column:2;grid-row:2}
.c4-fold > summary .c4-pill{grid-column:3;grid-row:1/3}
.c4-fold[open] > summary{border-bottom:1px solid var(--c4-line)}
.c4-fold-body{padding:10px 0 14px 22px;min-width:0}
.c4-shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;list-style:none;margin:0;padding:0}
.c4-shot{display:grid;gap:5px;justify-items:start;border:1px solid var(--c4-line);border-radius:10px;padding:8px;color:inherit;text-decoration:none;min-width:0}
.c4-shot img{width:100%;height:auto;border-radius:6px;display:block}
.c4-shot > span{font-size:11px;color:var(--c4-muted);overflow-wrap:anywhere}
.c4-shot svg{width:20px;height:20px;color:var(--c4-muted)}
.c4-shot-ghost{grid-template-columns:20px minmax(0,1fr);align-items:center;background:var(--c4-ghost)}
.c4-shot-why{margin:4px 0 0;font-size:11px;color:var(--c4-muted);overflow-wrap:anywhere}
.c4-filelist{list-style:none;margin:6px 0;padding:0;display:grid;gap:4px}
.c4-filelist > li{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:center;font-size:12px;min-width:0}
.c4-filelist code{overflow-wrap:anywhere}
.c4-filelist-counts > li{grid-template-columns:minmax(0,1fr) auto auto}
.c4-add{color:#47713d;font-variant-numeric:tabular-nums}.c4-del{color:#995128;font-variant-numeric:tabular-nums}
.c4-diff{max-height:420px;overflow:auto;background:#f6f8f8;border-radius:8px;padding:12px;font-size:11.5px;line-height:1.5;white-space:pre;max-width:100%}
.c4-code-small{font-size:11.5px;max-height:260px;overflow:auto}
.c4-panel-lede{margin:2px 0 8px;font-size:13px;color:var(--c4-muted)}
.c4-kv{display:grid;gap:3px;margin:6px 0;font-size:12px;min-width:0}
.c4-kv > span{color:var(--c4-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.c4-kv code{overflow-wrap:anywhere;background:#f5f7f7;border-radius:6px;padding:6px 8px;display:block}
.c4-review{margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--c4-ink);overflow-wrap:anywhere}
.c4-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:10px 0 0;padding:0}
.c4-facts > div{display:grid;gap:5px;min-width:0}
.c4-facts dt{font-size:11px;color:var(--c4-muted)}
.c4-facts dd{margin:0;font-size:13px}
.c4-pr-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0 4px}
.c4-inline-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.c4-opill-quiet{background:var(--c4-quiet);color:var(--c4-ink)}
.c4-form{display:grid;gap:12px;margin-top:10px}
.c4-form label{display:grid;gap:5px;font-size:12px;color:var(--c4-muted);min-width:0}
.c4-form input,.c4-form select{background:#fff;border:1px solid var(--c4-line);border-radius:7px;padding:9px;color:var(--c4-ink);font:inherit;font-size:13px;min-height:44px;min-width:0;width:100%}
.c4-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.c4-form-inline{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.c4-checks{display:grid;gap:10px;margin-top:10px}
.c4-check{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--c4-line);border-radius:10px;padding:12px;cursor:pointer;min-height:64px}
.c4-check input{margin-top:3px;accent-color:var(--c4-accent);flex:none;width:18px;height:18px;min-height:0}
.c4-check span{display:grid;gap:4px}.c4-check small{color:var(--c4-muted);font-size:12px;line-height:1.4}
.c4-subhead{font-size:13px;margin:18px 0 0;color:var(--c4-ink)}
.c4-hint{margin:8px 0 0;font-size:12px;color:var(--c4-muted);line-height:1.5}
.c4-hint.is-bad{color:#995128}
.c4-notice{margin:0 0 14px;font-size:13px}
.c4-notice-bad{border-color:var(--c4-bad-line)}
.c4-table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.c4-table th,.c4-table td{padding:9px 8px;border-top:1px solid var(--c4-line);text-align:right;white-space:nowrap}
.c4-table th:first-child,.c4-table td:first-child{text-align:left}
.c4-table thead th{color:var(--c4-muted);font-weight:600;border-top:0}
.c4-table tfoot th,.c4-table tfoot td{font-weight:700;border-top:1px solid var(--c4-line)}
.c4-steps{margin:0;padding-left:20px;display:grid;gap:8px;font-size:13px;line-height:1.5}
.c4-steps a{color:var(--c4-accent)}
.c4-code-inline{display:inline-block;max-width:100%;overflow-wrap:anywhere;background:#f5f7f7;border-radius:6px;padding:3px 6px;font-size:12px}
.c4-note-inline{color:var(--c4-muted)}
.c4-pair-command{display:grid;gap:6px;margin-top:10px}
.c4-saved{margin:10px 0 0}
.c4-saved .c4-chip svg{width:14px;height:14px;margin-right:5px}
.c4-card a.c4-opill,.c4-card a.c4-opill-quiet{color:var(--c4-ink)}
.c4-card a.c4-opill-primary{color:var(--c4-on-accent)}
:root[data-theme-mode="dark"] .c4-shot-ghost,:root[data-theme-mode="dark"] .c4-diff,:root[data-theme-mode="dark"] .c4-kv code,:root[data-theme-mode="dark"] .c4-code-inline{background:#11181b;color:#d3dfdf}
:root[data-theme-mode="dark"] .c4-opill-quiet{background:#20292d;color:var(--c4-ink)}
:root[data-theme-mode="dark"] .c4-form input,:root[data-theme-mode="dark"] .c4-form select{background:#11181b;color:var(--c4-ink)}
@media(max-width:760px){
 .c4-form-grid{grid-template-columns:1fr}.c4-form-inline{grid-template-columns:1fr}
 .c4-row{grid-template-columns:12px minmax(0,1fr)}.c4-row > .c4-pill,.c4-row > form,.c4-row-flat > .c4-pill,.c4-row-flat > form{grid-column:2;grid-row:auto;justify-self:start;margin-bottom:8px}
 .c4-fold > summary{grid-template-columns:12px minmax(0,1fr)}.c4-fold > summary .c4-pill{grid-column:2;grid-row:3;justify-self:start;margin-bottom:4px}
 .c4-fold-body{padding-left:0}.c4-shots{grid-template-columns:1fr 1fr}
 .c4-inline-actions{justify-content:flex-start}
}
/* C4b fixes: the shared safety/notification cards keep their own layout inside a form, and a radio stays a radio. */
.c4-form label.c4-safety-card,.c4-form label.c4-check{display:flex;align-items:flex-start;gap:10px}
.c4-form .c4-safety-card input,.c4-form .c4-check input{width:18px;height:18px;min-height:0;padding:0;border:0;background:none;accent-color:var(--c4-accent);flex:none;margin-top:3px}
@media(max-width:760px){.c4-controls .c4-field-repo{grid-column:1/-1}}
@media(max-width:760px){
 .c4-row > .c4-inline-actions{grid-column:2;grid-row:auto;justify-content:flex-start;margin:2px 0 8px}
 .c4-card-head{flex-wrap:wrap}
 .c4-card-head > .c4-muted{flex:1 1 100%}
}
.c4-hint-status{display:block;margin-top:4px}
.c4-hint-status:empty{display:none}
/* C4b: on a touch screen every tappable thing a person reaches for is at least 44 px tall. */
@media(pointer:coarse){
 .c4-chip[href]{min-height:44px;align-items:center;padding:8px 12px}
 .c4-card-head a{display:inline-flex;align-items:center;min-height:44px}
}
/* C9b: the conductor. Its page is a conversation: turns, the live turn, the box that writes the next one. */
.c4-conductor-head .c4-task-heading{margin-bottom:8px}
.c4-conductor-cta{border-color:#d5e4df;background:linear-gradient(140deg,#fff,#f8fcfa)}
.c4-conductor-cta .c4-button{display:inline-flex;align-items:center;min-height:44px}
.c4-turn-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.c4-turn{border:1px solid var(--c4-line);border-radius:11px;padding:12px 14px;background:var(--c4-ghost)}
.c4-turn-running{border-color:#bfdcd5;background:var(--c4-open-bg)}
.c4-turn-failed{border-color:var(--c4-bad-line);background:var(--c4-bad-bg)}
.c4-turn-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.c4-turn-who{font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--c4-muted)}
.c4-turn-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55;max-height:320px;overflow:auto}
.c4-turn-answer{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;padding:10px 12px;background:var(--c4-surface);border:1px solid var(--c4-line);border-radius:9px;font:inherit;font-size:13.5px;line-height:1.55;max-height:360px;overflow:auto}
.c4-turn-error{margin:8px 0 0;color:var(--c4-bad-ink);font-size:13px}
.c4-turn-files{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.c4-conductor-composer textarea{width:100%;min-height:84px;font:inherit;padding:10px 12px;border:1px solid var(--c4-line);border-radius:9px;background:var(--c4-surface);color:var(--c4-ink)}
.c4-conductor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;flex-wrap:wrap}
.c4-file{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--c4-muted);min-height:44px}
.c4-file input{font-size:12px;max-width:220px}
.c4-transcript .c4-log{margin:0;max-height:44vh}
.c4-approval{border:1px solid #e7d3bf;background:#fffaf4;border-radius:11px;padding:12px 14px;display:grid;gap:8px;margin:0 0 10px}
.c4-approval-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.c4-approval-cmd{display:block;overflow-wrap:anywhere;background:var(--c4-surface);border:1px solid var(--c4-line);border-radius:7px;padding:8px 10px;font-size:12.5px;max-height:140px;overflow:auto}
.c4-approval-task{margin:0;font-size:12px;color:var(--c4-muted)}
.c4-approval-actions{display:flex;gap:8px}
.c4-approval-actions button{min-height:44px}
.c4-approval-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.c4-note-field{display:block;margin:2px 0 4px;font-size:14px;font-weight:650}
.c4-note-field small{display:block;font-weight:400;color:var(--c4-muted);font-size:12.5px;margin:2px 0 6px}
.c4-composer textarea[name="note"]{width:100%;font:inherit;padding:9px 11px;border:1px solid var(--c4-line);border-radius:9px;background:var(--c4-surface);color:var(--c4-ink)}
:root[data-theme-mode="dark"] .c4-approval{background:#241d16;border-color:#4a3a2a}
:root[data-theme-mode="dark"] .c4-turn-answer,:root[data-theme-mode="dark"] .c4-approval-cmd{background:#11181b}
/* C4c: the page's bottom inset for the Frame's phone app bar (openvibe.design/patterns/bottom-tabs). The bar is fixed
   at the bottom, so the scrollable content reserves its height and the safe area: the last line of the page and the
   footer clear it when the page is scrolled to the end. Shared sets --ovnav-appbar-h when it draws the bar. */
@media(max-width:760px){
 body.ov-workspace{padding-bottom:var(--ovnav-appbar-h,calc(58px + env(safe-area-inset-bottom,0px)))}
}


/* C9c: the fleet. A desktop row reads across: the agent and its machine, its meters, its state. A phone row is the
   agent and its state, then the meters under it. */
.c4-fleet .c4-fleet-row{grid-template-columns:12px minmax(0,1fr) auto;padding:12px 0;align-items:center;column-gap:10px}
.c4-fleet-row .c4-row-dot{grid-row:1/3;align-self:center}
.c4-fleet-row .c4-row-label{grid-column:2;grid-row:1}
.c4-fleet-row .c4-row-note{grid-column:2;grid-row:2}
.c4-fleet-row > .c4-pill{grid-column:3;grid-row:1/3;align-self:center}
.c4-fleet-windows{grid-column:2/-1;grid-row:3;display:grid;gap:6px;margin-top:6px;min-width:0}
.c4-meter{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:3px 10px;font-size:12px;min-width:0}
.c4-meter-name{color:var(--c4-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c4-meter-track{display:block;height:6px;border-radius:99px;background:var(--c4-quiet-bg);overflow:hidden}
.c4-meter-fill{display:block;height:100%;border-radius:99px;background:var(--c4-dot-ok)}
.c4-meter-fill.is-full{background:var(--c4-dot-bad)}
.c4-meter-note{grid-column:2;color:var(--c4-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.c4-meter-note b{color:var(--c4-ink);font-weight:650}
@media(min-width:761px){
 .c4-fleet .c4-fleet-row{grid-template-columns:12px minmax(180px,260px) minmax(0,1fr) 128px;column-gap:18px}
 .c4-fleet-windows{grid-column:3;grid-row:1/3;margin:0}
 .c4-meter{grid-template-columns:52px minmax(120px,1fr) minmax(0,auto)}
 .c4-meter-note{grid-column:3}
 .c4-fleet-row > .c4-pill{grid-column:4;justify-self:end}
}
/* The narrowest phones: one control per row, and a heading over its state, so no label is cut or broken
   (a 320 px screen has ~290 px of text; "Opus 5.5 (default)" and "Conductor" both fit whole). */
@media(max-width:380px){
 .c4-controls{grid-template-columns:1fr}
 .c4-task-heading{flex-wrap:wrap}
 .c4-task-heading .c4-task-title-wrap{flex:1 1 100%}
}
/* The season's leaves fall from the Frame's mark over the page (openvibe-shared/ov-mark.js, .ovm-fall, a fixed layer at
   z-index 10010, 120-280 px down). The page's own title stays above them: a once-a-day decoration may pass behind a
   heading, never across it. Reported to Shared so every site's heading is clear of the fall. */
.c4 h1{position:relative;z-index:10011}

/* The Memory page (OpenVibe Memory M2b): the sources, the notes, their menus and the tabs that choose a view. */
.c4-tabs a[aria-current=page]{color:var(--c4-accent);border-color:var(--c4-accent);font-weight:650}
.c4-chip[aria-current=page]{background:var(--c4-quiet-bg);color:var(--c4-ink)}
.c4-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.c4-search{position:relative}
/* A quiet link: the Remove on a source row. No border, no fill, the accent only when it is pointed at. */
.c4-quiet-link{color:var(--c4-muted);text-decoration:none;font-size:12px;font-weight:650;background:none;border:0;padding:11px 4px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit}
/* .c4-card a (the card's own link colour) is more specific than the quiet link, so name the card here too. */
.c4-card a.c4-quiet-link{color:var(--c4-muted);font-size:12px}
.c4-card a.c4-quiet-link:hover,.c4-card a.c4-quiet-link:focus-visible{color:var(--c4-accent)}
.c4-source{grid-template-columns:12px minmax(0,1fr) auto}
.c4-source > .c4-quiet-link{grid-column:3;grid-row:1/3;justify-self:end;align-self:center}
/* The sources a phone shows first, and the rest behind a details the person opens (no JavaScript). */
.c4-more-row{border-top:1px solid var(--c4-line)}
.c4-more > summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 0;color:var(--c4-muted);font-size:12px;font-weight:650}
.c4-more > summary::-webkit-details-marker{display:none}
.c4-more > summary::marker{content:""}
.c4-more > summary:hover,.c4-more > summary:focus-visible{color:var(--c4-accent)}
.c4-more .c4-rows{padding-left:0}
.c4-more .c4-row:first-child{border-top:0}
@media(min-width:640px){
 .c4-more > summary{display:none}
 .c4-more:not([open]) > .c4-more-body{display:block}
 .c4-more::details-content{content-visibility:visible}
}
/* A note: its text, what it is, and the menu that changes it. The menu opens in place and pushes the rows below down. */
.c4-note{position:relative;padding:12px 0;border-top:1px solid var(--c4-line);min-width:0}
.c4-rows > .c4-note:first-child{border-top:0;padding-top:2px}
.c4-note-text{margin:0;padding-right:48px;font-size:13px;line-height:1.5;color:var(--c4-ink);min-width:0;overflow-wrap:anywhere}
.c4-note-meta{margin:4px 0 0;padding-right:48px;font-size:12px;line-height:1.45;color:var(--c4-muted);display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.c4-note > .c4-actions{margin-top:10px}
.c4-menu{margin:0}
.c4-menu > summary{position:absolute;top:8px;right:0;width:44px;height:44px;list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;color:var(--c4-muted);font-size:15px;line-height:1}
.c4-menu > summary::-webkit-details-marker{display:none}
.c4-menu > summary::marker{content:""}
.c4-menu > summary:hover,.c4-menu > summary:focus-visible{color:var(--c4-accent)}
.c4-menu-body{margin-top:8px;background:var(--c4-surface);border:1px solid var(--c4-line);border-radius:10px;padding:12px;display:grid;gap:8px}
.c4-menu-body .c4-form{margin-top:0}
.c4-menu-body .c4-button{justify-self:start}
.c4-menu-body .c4-opill{width:100%;justify-content:flex-start}
.c4-menu-body .c4-note-danger{margin-top:8px;padding-top:12px;border-top:1px solid var(--c4-line)}
.c4-form textarea{background:#fff;border:1px solid var(--c4-line);border-radius:7px;padding:9px;color:var(--c4-ink);font:inherit;font-size:13px;width:100%;min-height:76px;min-width:0;resize:vertical}
.c4-profile-text{margin:0;font-size:13px;line-height:1.55;color:var(--c4-ink);overflow-wrap:anywhere}
.c4-conflict-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.c4-conflict-side{display:grid;gap:8px;align-content:start;padding:12px;border:1px solid var(--c4-line);border-radius:10px;min-width:0}
.c4-conflict-side form{margin:0}
.c4-conflict-side .c4-opill{justify-self:start}
/* The destructive actions: the kit's danger colour, with the text that reads on it in both themes. */
.c4-button-danger{background:var(--c4-danger);color:var(--c4-on-danger)}
.c4-opill-danger{background:var(--c4-danger);border-color:var(--c4-danger);color:var(--c4-on-danger)}
.c4-card a.c4-opill-danger{color:var(--c4-on-danger)}
@media(max-width:760px){
 .c4-chip[href]{min-height:44px}
 .c4-note-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .c4-conflict-pair{grid-template-columns:1fr}
}
:root[data-theme-mode="dark"] .c4-form textarea{background:#11181b;color:var(--c4-ink)}

/* The front door's example conversation (a visitor's home): one turn, a hand-over, the result. */
/* The surface and ink of the theme: --c4-card was never defined, so the home's demo drew white under the dark theme's
   light text, the conversation nearly invisible (2026-11-01). On the home it can sit outside .c4, so the theme's own
   tokens are the fallbacks. */
.c4-demo{display:grid;gap:10px;padding:16px;border-radius:18px;border:1px solid var(--c4-line,var(--border,#2d393d));background:var(--c4-surface,var(--bg-secondary,#171f23));color:var(--c4-ink,var(--text-primary,#eaf0f1));font-size:14px;line-height:1.45;max-width:460px}
.c4-demo-you{justify-self:end;max-width:85%;margin:0;padding:9px 13px;border-radius:16px 16px 4px 16px;background:color-mix(in srgb,var(--c4-accent,#2563eb) 14%,transparent)}
.c4-demo-agent{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start}
.c4-demo-agent p{margin:4px 0 0}
.c4-demo-face{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;font-size:11px;font-weight:800;color:#fff;background:#d97757}
.c4-demo-face.is-cx{background:#10a37f}
.c4-demo-meta{display:block;font-size:12px;color:var(--c4-muted,#64748b)}
.c4-demo-hand{margin:2px 0;text-align:center;font-size:12px;color:var(--c4-muted,#64748b);display:flex;align-items:center;gap:10px}
.c4-demo-hand::before,.c4-demo-hand::after{content:"";flex:1;height:1px;background:var(--c4-line)}
.c4-demo-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;border:1px solid var(--c4-line);font-size:13px}
.c4-demo-ok{padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;color:color-mix(in srgb,#22c55e 55%,var(--c4-ink,var(--text-primary,#eaf0f1)));background:color-mix(in srgb,#22c55e 14%,transparent)}
.c4-composer-front{margin:8px 0 4px}
.c4-composer-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
/* The conductor's failover (2026-11-03): the fallback rows in Settings, the usage card, and a turn that switched agent. */
.c4-fallbacks{display:grid;gap:10px}
.c4-fallback{display:grid;grid-template-columns:28px minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:end;padding:12px;border:1px solid var(--c4-line);border-radius:10px;background:var(--c4-ghost)}
.c4-fallback-n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;align-self:center;background:var(--c4-open-bg);color:var(--c4-open-ink);font-size:12px;font-weight:700}
.c4-fallback:has(select option[value=""]:checked){background:transparent;border-style:dashed}
.c4-fallback:has(select option[value=""]:checked) .c4-fallback-n{background:var(--c4-quiet-bg);color:var(--c4-muted)}
.c4-chain-next{box-shadow:inset 3px 0 0 var(--c4-accent);padding-left:10px}
.c4-usage-note{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:var(--c4-open-bg);color:var(--c4-open-ink)}
.c4-turn-tags{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.c4-turn-agent{min-height:24px;padding:2px 9px;font-size:11px}
.c4-turn-switch{display:flex;align-items:flex-start;gap:8px;margin:0 0 10px;padding:9px 11px;border-radius:8px;background:var(--c4-open-bg);color:var(--c4-open-ink);font-size:12px;line-height:1.45}
.c4-turn-switch svg{width:15px;height:15px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:640px){.c4-fallback{grid-template-columns:28px minmax(0,1fr)}.c4-fallback>label:last-child{grid-column:2}}

/* Know K5: the Knowledge page. A row is a card whose head carries its kind and sharing, then the text, where it came
   from, and the actions that change it. All of it is server-rendered; the details open in place. */
.kn-summary{display:flex;gap:18px;margin:0 0 14px}
.kn-summary>div{display:flex;align-items:baseline;gap:6px;font-size:12px;color:var(--c4-muted)}
.kn-summary strong{font-size:20px;color:var(--c4-ink)}
.kn-add{margin:0 0 14px;border:1px solid var(--c4-line);border-radius:10px;padding:0 12px;background:var(--c4-surface)}
.kn-add>summary{padding:10px 0}
.kn-add .c4-more-body{padding-bottom:12px}
.kn-list{display:grid;gap:12px}
.kn-row{padding:14px 16px;border-left:3px solid transparent}
.kn-row.is-pinned{border-left-color:var(--c4-accent)}
.kn-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px;min-width:0}
.kn-repo{overflow-wrap:anywhere}
.kn-text{margin:0 0 8px;font-size:14px;line-height:1.55;color:var(--c4-ink);overflow-wrap:anywhere;white-space:pre-wrap}
.kn-meta{margin:0 0 4px;font-size:12px;color:var(--c4-muted)}
.kn-source{margin:0 0 10px;font-size:12px;color:var(--c4-muted)}
.kn-source a{color:var(--c4-accent)}
.kn-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.kn-actions form{margin:0}
.kn-actions .c4-button{min-height:36px;padding:6px 12px;font-size:12px}
.kn-actions .c4-more{flex:0 0 auto;min-width:0}
.kn-actions .c4-more>summary{min-height:36px;justify-content:center;border:1px solid var(--c4-line);border-radius:8px;padding:6px 12px}
.kn-actions .c4-more-body{flex-basis:100%;width:100%}
.kn-team-note{margin:0;font-size:12px;color:var(--c4-muted)}
.c4-form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;align-items:end}
@media(max-width:640px){
 .kn-summary{gap:12px}
 .c4-form-row{grid-template-columns:1fr}
 .kn-actions .c4-button{min-height:44px}
}
/* The Knowledge page's own panels stay closed until opened, at every width (the Memory page's open-on-desktop
   rule would show every edit and share form at once), and an opened one takes the row's full width. */
.kn-add:not([open]) > .c4-more-body,.kn-actions .c4-more:not([open]) > .c4-more-body{display:none}
.kn-add.c4-more > summary,.kn-actions .c4-more > summary{display:flex}
.kn-actions .c4-more[open]{flex:1 1 100%;order:2}
.kn-actions form{order:0}
@media(max-width:640px){.c4-tabs a{padding-left:8px;padding-right:8px}}
/* Delete is quiet until asked: a text-coloured fold at the end of the row, with the real button inside it, so five
   rows do not show five filled red buttons and one tap never deletes. */
.kn-actions .kn-delete{margin-left:auto}
.kn-actions .kn-delete>summary{border-color:transparent;color:var(--c4-danger);background:none}
.kn-actions .kn-delete[open]>summary{border-color:var(--c4-line)}
.kn-actions .c4-more:not(.kn-delete)>summary{color:var(--c4-ink);font-weight:600}
.kn-confirm{margin:0 0 8px;font-size:13px;color:var(--c4-ink)}
@media(max-width:640px){.kn-actions .c4-more>summary{min-height:44px}}
