:root {
--bg: #f6f6f3; --panel: #ffffff; --sunk: #efefeb; --fg: #1c1c1a; --muted: #6a6a64; --line: #deded8;
--accent: #2f6fdf; --accent-fg: #ffffff; --ok: #23875c; --warn: #b7791f; --bad: #c2434a; --run: #2f6fdf;
--edge: rgba(60, 60, 55, .25); --edge-hi: rgba(30, 30, 28, .8);
--shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #131312; --panel: #1b1b1a; --sunk: #232321; --fg: #ececea; --muted: #9b9b95; --line: #31312d;
--accent: #6e9cf0; --accent-fg: #0d1526; --ok: #4fbf8a; --warn: #e0a84a; --bad: #ec6a71; --run: #6e9cf0;
--edge: rgba(220,220,210,.18); --edge-hi: rgba(240,240,230,.85); --shadow: none;
}
}
:root[data-theme="dark"] {
--bg: #131312; --panel: #1b1b1a; --sunk: #232321; --fg: #ececea; --muted: #9b9b95; --line: #31312d;
--accent: #6e9cf0; --accent-fg: #0d1526; --ok: #4fbf8a; --warn: #e0a84a; --bad: #ec6a71; --run: #6e9cf0;
--edge: rgba(220,220,210,.18); --edge-hi: rgba(240,240,230,.85); --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg);
font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, textarea.code { font-family: var(--mono); font-size: 12.5px; }
h1 { font-size: 20px; margin: 0 0 4px; line-height: 1.3; }
h2 { font-size: 15px; margin: 22px 0 10px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.muted { color: var(--muted); }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 14px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; padding: 0 6px; }
.hsel { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; font-size: 12px; color: var(--muted); }
select, input[type=text], input[type=search], input[type=password], textarea {
background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; min-width: 0; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { color: var(--fg); padding: 7px 10px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
nav a:hover { background: var(--sunk); text-decoration: none; }
nav a.on { background: var(--accent); color: var(--accent-fg); }
#nav-more { display: flex; flex-direction: column; gap: 2px; }
#nav-more > summary { cursor: pointer; padding: 7px 10px; border-radius: 8px; color: var(--muted); list-style: none; }
#nav-more > summary::-webkit-details-marker { display: none; }
#nav-more > summary::after { content: " +"; }
#nav-more[open] > summary::after { content: " -"; }
#nav-more > summary:hover { background: var(--sunk); }
#nav-more > a { padding-left: 18px; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps li > i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--muted); }
.steps li.done > i { background: var(--ok, #2f8f5b); border-color: transparent; color: #fff; }
.steps li.done b { text-decoration: line-through; color: var(--muted); }
.tabs button.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.cmdbox { position: relative; }
.cmdbox pre { margin: 0; padding-right: 72px; white-space: pre-wrap; word-break: break-all; }
.cmdbox button { position: absolute; top: 6px; right: 6px; }
.folders .folder { justify-content: space-between; flex-wrap: nowrap; }
.folders .folder .cmd { overflow-wrap: anywhere; }
.browser { display: grid; gap: 8px; }
.dirlist { display: flex; flex-wrap: wrap; gap: 4px; max-height: 260px; overflow: auto; }
.dirlist .dir { font-family: var(--mono, monospace); font-size: 12px; }
.joined { border-left: 3px solid var(--ok, #2f8f5b); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 6px; font-size: 12px; }
main { overflow: auto; padding: 24px 28px 48px; }
main:focus { outline: none; }
.head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.head p { margin: 2px 0 0; color: var(--muted); max-width: 70ch; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.card.click { cursor: pointer; }
.card.click:hover { border-color: var(--accent); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card h4 { margin: 0 0 4px; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.stat { background: var(--sunk); border-radius: 8px; padding: 6px 9px; }
.stat b { display: block; font-size: 18px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); }
button, .btn { font: inherit; border-radius: 8px; padding: 7px 13px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
button.danger { color: var(--bad); border-color: var(--bad); }
button.ghost { background: none; padding: 4px 9px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 9px; font-size: 12px; background: var(--sunk); white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); } .pill.run { color: var(--run); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none; } }
.badge { background: var(--run); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 600; }
nav a.on .badge { background: var(--accent-fg); color: var(--accent); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--sunk); }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--sunk); }
td.desc { color: var(--muted); max-width: 60ch; }
.tablewrap { overflow-x: auto; border-radius: 12px; }
.pipe { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.stage { border-radius: 8px; padding: 4px 10px; font-size: 12.5px; background: var(--sunk); color: var(--muted); border: 1px solid transparent; }
.stage.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.stage.running { color: var(--run); border-color: var(--run); font-weight: 600; }
.stage small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.pipe .arrow { color: var(--muted); }
.segs { display: flex; gap: 3px; }
.segs i { width: 18px; height: 7px; border-radius: 3px; background: var(--line); display: block; }
.segs i.done { background: var(--ok); } .segs i.running { background: var(--run); animation: pulse 1.4s infinite; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { background: var(--sunk); border-radius: 4px; height: 10px; overflow: hidden; }
.bar .fill { background: var(--accent); height: 100%; border-radius: 4px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
pre.view { background: var(--sunk); border-radius: 10px; padding: 12px 14px; overflow: auto; max-height: 70vh; white-space: pre-wrap; word-break: break-word; margin: 0; }
textarea.code { width: 100%; min-height: 58vh; resize: vertical; line-height: 1.5; tab-size: 2; white-space: pre; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.files { display: flex; flex-direction: column; max-height: 60vh; overflow: auto; }
.files a { padding: 5px 8px; border-radius: 6px; color: var(--fg); display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.files a:hover, .files a.on { background: var(--sunk); text-decoration: none; }
.files a span { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.links li { margin: 3px 0; }
.links { padding-left: 18px; margin: 0; }
.rel { color: var(--muted); font-size: 12px; margin-right: 6px; }
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; max-height: 68vh; overflow: auto; padding: 4px 0; font-size: 13px; }
.ev { display: grid; grid-template-columns: 64px 70px minmax(0, 1fr); gap: 8px; padding: 5px 12px; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev time { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ev .k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.ev .t { white-space: pre-wrap; word-break: break-word; }
.ev .a { display: inline-block; font-size: 11.5px; color: var(--accent); margin-right: 6px; }
.ev.tool .k { color: var(--warn); } .ev.agent .k { color: var(--accent); } .ev.result .k { color: var(--ok); }
.ev.error .k, .ev.stderr .k { color: var(--bad); } .ev.exit .k { color: var(--ok); }
.ev.tool .t, .ev.stderr .t { font-family: var(--mono); font-size: 12px; }
.graphbox { position: relative; height: calc(100vh - 170px); min-height: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.graphbox canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.graphbox .legend { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 20px); }
.graphbox .legend .pill { cursor: pointer; border: 1px solid var(--line); background: var(--panel); }
.graphbox .legend .pill[aria-pressed=false] { opacity: .45; }
.graphbox .legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.graphbox .gpanel { position: absolute; right: 10px; top: 10px; bottom: 10px; width: min(340px, calc(100% - 20px)); background: var(--panel);
border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow: auto; box-shadow: var(--shadow); }
.graphbox .gpanel[hidden] { display: none; }
.graphbox .gpanel pre { white-space: pre-wrap; word-break: break-word; background: var(--sunk); padding: 10px; border-radius: 8px; font-size: 12px; }
.note { border-radius: 10px; padding: 10px 14px; background: var(--sunk); border-left: 3px solid var(--accent); margin: 12px 0; }
.note.warn { border-left-color: var(--warn); } .note.bad { border-left-color: var(--bad); }
.stat b.small { font-size: 13.5px; word-break: break-word; }
.cmd.small { font-size: 11.5px; padding: 5px 8px; margin: 6px 0; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 6px; }
.picks fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; min-width: 0; }
.picks legend { font-weight: 600; padding: 0 4px; }
.pick { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; font-family: var(--mono); font-size: 12.5px; padding: 3px 0; word-break: break-all; }
.dag { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.dag-col { display: flex; flex-direction: column; gap: 10px; min-width: 250px; max-width: 320px; flex: 1 0 250px; }
.dag-col h3 { margin: 0; }
.card.task { border-left: 4px solid var(--line); display: grid; gap: 4px; }
.card.task.running { border-left-color: var(--run); }
.card.task.succeeded { border-left-color: var(--ok); }
.card.task.failed { border-left-color: var(--bad); }
.card.task.queued, .card.task.cancelled { border-left-color: var(--warn); }
.card.task .note { margin: 4px 0 0; font-size: 12.5px; padding: 6px 10px; }
.card.pivot { margin-top: 14px; display: grid; gap: 8px; }
.card.pivot h3 { margin: 0 0 2px; }
.card.pivot textarea { min-height: 90px; resize: vertical; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
label.check input { margin-top: 3px; }
p.small { font-size: 12px; margin: 0; }
.lineage { margin: 8px 0 0; font-size: 13px; }
.lineage:empty { display: none; }
.form { display: grid; gap: 12px; max-width: 760px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.form label small { font-weight: 400; color: var(--muted); }
.form textarea { min-height: 130px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.cmd { font-family: var(--mono); font-size: 12px; background: var(--sunk); border-radius: 8px; padding: 8px 10px; word-break: break-all; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; }
.toast { position: fixed; right: 16px; bottom: 16px; background: var(--fg); color: var(--bg); padding: 9px 14px; border-radius: 10px; z-index: 9; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); color: #fff; display: flex; align-items: flex-start; gap: 12px; }
.toast .x { background: transparent; color: inherit; border: 1px solid currentColor; padding: 1px 8px; flex: none; }
.toast.act { display: flex; align-items: center; gap: 12px; }
.toast.act button { background: transparent; color: inherit; border: 1px solid currentColor; padding: 3px 10px; }
.gnode .gdel { position: absolute; top: 4px; right: 6px; border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; padding: 2px 5px; border-radius: 5px; cursor: pointer; opacity: 0; }
.gnode:hover .gdel, .gnode.sel .gdel, .gnode:focus-within .gdel { opacity: 1; }
.gnode .gdel:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.gnode.skill { border-left-color: #9b6cdf; }
.inspect-head { justify-content: space-between; flex-wrap: nowrap; }
.inspect-head h3 { margin: 0; }
.palette input[type=search] { width: 100%; }
.pgroup { display: grid; gap: 6px; }
.authwall { max-width: 520px; margin: 12vh auto; }
.tabs { flex-direction: row; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.tabs a { padding: 6px 12px; }
.cfgpath { margin: 4px 0 12px; }
.cfgbar { margin: 4px 0 14px; }
.cfgitem { display: grid; gap: 8px; align-content: start; }
.cfgitem.builtin { border-style: dashed; }
.cfgitem .clip { margin: 0; font-family: var(--mono); font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.cfgform { max-width: 760px; }
.cfgform h2 { margin: 0; }
.form input[type=text], .form input[type=password], .form input[type=number], .form select { width: 100%; }
input[type=number] { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; }
.form textarea.list { min-height: 64px; }
.form label .req { color: var(--bad); }
.form label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.form label.check small { font-weight: 400; color: var(--muted); }
.rowsfield { display: grid; gap: 8px; }
.rowsfield .flabel { font-weight: 600; font-size: 13px; }
.rows { display: grid; gap: 10px; }
.rowbox { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.rowbox legend { font-weight: 600; padding: 0 4px; text-transform: capitalize; }
button.ghost.danger { border: 1px solid var(--bad); }
.note.ok { border-left-color: var(--ok); }
.badge.warn { background: var(--warn); }
.lanes { display: grid; grid-template-columns: repeat(5, minmax(165px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.lane { background: var(--sunk); border-radius: 12px; padding: 10px; min-height: 160px; display: grid; gap: 8px; align-content: start; border: 2px solid transparent; }
.lane.over { border-color: var(--accent); }
.lane h3 { margin: 0 0 2px; }
.bcard { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 9px 11px; display: grid; gap: 6px; cursor: pointer; box-shadow: var(--shadow); }
.bcard:hover, .bcard:focus { border-color: var(--accent); outline: none; }
.bcard[draggable=true] { cursor: grab; }
.bcard.dragging { opacity: .5; }
.bcard.running { border-left-color: var(--run); } .bcard.review { border-left-color: var(--warn); }
.bcard.done { border-left-color: var(--ok); } .bcard.failed { border-left-color: var(--bad); }
.bcard b { font-weight: 600; line-height: 1.35; word-break: break-word; }
.row.small { font-size: 12px; gap: 4px; }
.itemdetail { margin-top: 16px; display: grid; gap: 10px; }
.itemdetail h2 { margin: 0; }
.runform select, .runform input { min-width: 0; flex: 1 1 150px; }
@media (max-width: 760px) { .lanes { grid-template-columns: repeat(5, minmax(220px, 80vw)); } }
nav a > span { display: inline-flex; gap: 4px; }
.card.approvals { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); margin-bottom: 14px; display: grid; gap: 10px; }
.card.approvals h3 { margin: 0; color: var(--warn); }
.ask { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.ask:first-of-type { border-top: 0; padding-top: 0; }
pre.view.small { font-size: 12px; max-height: 220px; }
.card.control { display: grid; gap: 8px; margin-bottom: 14px; }
.card.control h3 { margin: 0; }
.ctlrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ctlrow > select, .ctlrow > input { width: 100%; min-width: 0; }
.card.control textarea { min-height: 70px; resize: vertical; }
.ev.permission .k { color: var(--warn); } .ev.user .k { color: var(--accent); }
@media (max-width: 860px) {
.split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
.shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
.brand { padding: 0; }
.hsel { flex-direction: row; align-items: center; padding: 0; margin-left: auto; }
.hsel span { display: none; }
nav { flex-direction: row; overflow-x: auto; flex-basis: 100%; scrollbar-width: none; }
nav a { white-space: nowrap; padding: 6px 10px; }
nav { align-items: center; }
#nav-more { display: block; white-space: nowrap; }
#nav-more > summary, #nav-more > a { display: inline-block; white-space: nowrap; padding: 6px 10px; }
.side-foot { display: flex; flex-basis: 100%; margin-top: 0; padding: 0; order: 9; }
main { padding: 16px 16px 40px; }
.ev { grid-template-columns: 56px minmax(0, 1fr); }
.ev .k { grid-column: 2; }
.ev .t { grid-column: 1 / -1; }
.graphbox { height: calc(100vh - 200px); }
}
.wfedit { display: grid; grid-template-columns: 180px minmax(0, 1fr) 270px; gap: 12px; height: calc(100vh - 170px); min-height: 460px; }
.palette { overflow: auto; display: grid; gap: 6px; align-content: start; }
.palette h3 { margin: 8px 0 2px; }
.pitem { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: grab; display: grid; gap: 2px; }
.pitem:hover, .pitem:focus { border-color: var(--accent); outline: none; }
.pitem small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas-scroll { overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
background-image: radial-gradient(circle, var(--line) 1px, transparent 1px); background-size: 22px 22px; }
.canvas { position: relative; min-width: 100%; min-height: 100%; }
.canvas svg.edges { position: absolute; left: 0; top: 0; overflow: visible; }
.edges .edge { fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.edges .edge.on { stroke: var(--accent); stroke-width: 3; }
.edges .edge.draft { stroke: var(--accent); stroke-dasharray: 6 4; }
.edges .hit { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.gnode { position: absolute; width: 190px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px;
padding: 8px 12px; display: grid; gap: 2px; cursor: move; user-select: none; touch-action: none; box-shadow: var(--shadow); }
.gnode.comp { border-left-color: var(--ok); } .gnode.sub { border-left-color: var(--warn); border-style: dashed; border-left-style: solid; }
.gnode.sel { box-shadow: 0 0 0 2px var(--accent); }
.gnode b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 18px; }
.gnode small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.port { position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); }
.port.in { left: -7px; } .port.out { right: -7px; cursor: crosshair; border-color: var(--accent); }
.port.out:hover { background: var(--accent); }
.inspector { overflow: auto; }
.inspector .form { max-width: none; }
.inspector h3 { margin-top: 0; }
@media (max-width: 1100px) { .wfedit { grid-template-columns: 160px minmax(0, 1fr); height: auto; } .inspector { grid-column: 1 / -1; } .canvas-scroll { height: 60vh; } }
@media (max-width: 760px) { .wfedit { grid-template-columns: minmax(0, 1fr); } .palette { grid-auto-flow: column; grid-auto-columns: 160px; overflow-x: auto; } }
body.termpage { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.termbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.termbar .brand { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); text-decoration: none; font-weight: 600; }
.termbar .termwhat { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.termpanes { flex: 1; min-height: 0; position: relative; background: var(--panel); }
.termpane { position: absolute; inset: 0; padding: 8px 10px; }
.termpane .xterm { height: 100%; }
.termpane .tagain { position: absolute; right: 14px; top: 10px; z-index: 5; }
.termtabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.ttab { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--sunk); color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.ttab.on { background: var(--bg); color: var(--fg); border-color: var(--accent); }
.ttab .tname { overflow: hidden; text-overflow: ellipsis; }
.ttab .tnum { color: var(--muted); font-size: 11px; }
.ttab .tclose { border: 0; background: transparent; color: inherit; padding: 0 4px; font-size: 16px; line-height: 1; cursor: pointer; border-radius: 4px; }
.ttab .tclose:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.tdot.ok { background: var(--ok); } .tdot.warn { background: var(--warn); } .tdot.bad { background: var(--bad); }
.termnew { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 14px; padding: 10px 12px; }
.termnew label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.termnew select { width: auto; max-width: 40vw; }
.termnone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: var(--panel); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.cmd.lines { white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; }
.kgrid { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .kgrid { grid-template-columns: minmax(0, 1fr); } }
.klist { display: flex; flex-direction: column; gap: 6px; max-height: 75vh; overflow: auto; }
.kitem { display: grid; gap: 3px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); text-decoration: none; min-width: 0; }
.kitem:hover { border-color: var(--accent); }
.kitem.sel { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.kitem .small, .small { font-size: 12.5px; }
.kitem .muted { overflow: hidden; text-overflow: ellipsis; }
textarea.notetext { width: 100%; min-height: 320px; font-family: var(--mono); font-size: 13px; box-sizing: border-box; resize: vertical; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .split2 { grid-template-columns: 1fr; } }
.learning textarea { min-height: 90px; font-family: inherit; }
.knowctl { display: grid; gap: 8px; }
.knowctl small { color: var(--muted); font-weight: 400; }
.context .bar { margin: 6px 0 10px; grid-template-columns: 56px 1fr auto; }
.fill.hot { background: var(--warn); }
.context form { margin-top: 8px; }
.knowctl label.check { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
.knowctl label.check b { font-weight: 600; }
.tabs a { justify-content: flex-start; gap: 7px; }
.tabs a .badge { line-height: 18px; min-width: 18px; text-align: center; padding: 0 6px; box-sizing: border-box; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menubox { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 230px; }
details.menu .menubox a { padding: 7px 10px; border-radius: 7px; color: var(--fg); }
details.menu .menubox a:hover { background: var(--sunk); text-decoration: none; }
.importbox .picked { font-size: 13px; }
.importbox pre { max-height: 220px; overflow: auto; }
.vaults { display: grid; gap: 6px; margin: 4px 0 16px; }
.vault { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; }
.vault:hover { border-color: var(--accent); }
.vault.sel { border-color: var(--accent); border-left-color: var(--accent); }
.vault .vlabel { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.vault .vpath { flex: 1 1 260px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.vault .vstats { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.vault .vstats b { color: var(--fg); font-variant-numeric: tabular-nums; }
.vault .vstats .warn b { color: var(--warn); }
.rowlist { display: grid; gap: 8px; }
.rowitem { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.rowitem:first-child { border-top: 0; }
.rowitem .grow { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.clip1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form .fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.form .fields .wide { grid-column: span 2; }
@media (max-width: 560px) { .form .fields .wide { grid-column: auto; } }
.form .fields select, .form .fields input { width: 100%; }
.learning .fields select { text-overflow: ellipsis; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.roles .stat { display: grid; gap: 2px; }
.roles .stat span:first-child { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.step .row code { font-size: 12px; }
.step textarea { min-height: 110px; }
.grow { flex: 1 1 auto; min-width: 0; }
.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addmk { margin: -8px 0 14px; }
.addmk summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.addmk .form { margin-top: 10px; }
details.native { border-top: 1px solid var(--line); padding-top: 10px; }
details.native summary { cursor: pointer; font-size: 13px; color: var(--muted); }
label.rowitem { font-weight: 400; }
.runactions .row { align-items: center; }
.runactions h4 { margin: 10px 0 6px; }
.runactions select, .runactions input[type=text] { width: auto; }
.runactions + div { margin-top: 14px; }
.toolspage .card > .row, .toolspage .card > details { margin-top: 12px; }
.toolspage select { width: auto; max-width: 100%; }
.runactions .row > b:first-child { min-width: 96px; }
.toolspage .row select { flex: 0 1 auto; }
.findings h3 { margin: 0; }
.findings td .row { flex-wrap: nowrap; }
.findings td input[type=text] { min-width: 180px; }
.findings .compare { margin-top: 14px; align-items: center; }
.findings .compare select { width: auto; max-width: 100%; }
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cmpgroup h4 { margin: 6px 0; }
.cmpgroup.new h4 { color: var(--bad); }
.cmpgroup.fixed h4 { color: var(--ok); }
.sev { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 12px; background: color-mix(in srgb, var(--fg, currentColor) 10%, transparent); }
.sev-critical, .sev-high { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.sev-medium { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.prreview summary { cursor: pointer; font-weight: 600; }
.prreview form { margin-top: 10px; }
.runactions + div:empty { display: none; }
.findings .row select[aria-label="Show"] { width: auto; flex: 0 0 auto; min-width: 0; }
.runactions { max-width: none; }
.termprof { align-items: center; margin-bottom: 10px; }
.termprof select { width: auto; max-width: 100%; }
@font-face {
font-family: "Symbols Nerd Font Mono";
src: url("/vendor/symbols-nerd-font-mono.woff2") format("woff2");
font-display: block;
}
.who { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.who .small { font-size: 12px; padding: 2px 8px; }
.signin { max-width: 380px; margin: 10vh auto; }
.signin h1 { font-size: 20px; }
body.walled #nav, body.walled .side-foot, body.walled .hsel { display: none; }
.boardbar { margin: 0 0 12px; gap: 6px; }
.boardtab { border-radius: 999px; padding: 5px 14px; }
.boardtab.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.boardtab.on .muted { color: inherit; opacity: .8; }
.danger-zone { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 6px; }
fieldset legend { padding: 0 4px; font-size: 13px; color: var(--muted); }
fieldset label.check { font-weight: 400; align-items: center; }
.gnode.cmdstep { border-left-color: #c9a227; }
.gnode.cmdstep small:first-of-type { font-family: var(--mono); }
.gnode.onfail { border-left-color: var(--bad); }
.edges .edge.fail { stroke: var(--bad); stroke-dasharray: 5 4; }
.edges .edge.always { stroke-dasharray: 2 4; }
.flowbox { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: grid; gap: 10px; }
.flowbox summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.flowbox[open] summary { margin-bottom: 4px; }
.genbox textarea { min-height: 90px; }
.gnode.gend { width: auto; min-width: 74px; padding: 7px 16px; border-radius: 999px; border-left-width: 1px; cursor: default; text-align: center; }
.gnode.gstart { border-color: var(--ok); }
.gnode.gfinish { border-color: var(--muted); }
.gnode.stopstep { border-left-color: var(--ok); border-radius: 18px; }
.gnode.stopstep.failure { border-left-color: var(--bad); }
.edges .edge.implicit { stroke-dasharray: 3 5; opacity: .7; }
.edges .edge.implicit.failure { stroke: var(--bad); }
.meter { width: 90px; height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; background: var(--ok); }
.meter.low i { background: var(--warn); }
dialog.ask { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--panel); color: var(--fg); width: min(440px, calc(100vw - 32px)); }
dialog.ask::backdrop { background: rgba(0, 0, 0, .45); }
dialog.ask h3 { margin-top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }