/* The workflow gallery (/workflows/) and a shared link (/w/). Dark, as the rest of the site. */
.gal { max-width: 1200px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 40px) 96px; }
.gal h1 { font-size: clamp(34px, 5vw, 56px); max-width: 18ch; }
.gal .lede { margin-bottom: 28px; }
.safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.safe li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.safe b { display: block; color: var(--accent); font: 500 13px/1.3 var(--mono); margin-bottom: 4px; }
.wf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wf { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.wf:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.wf h2 { font-size: 22px; margin: 0 0 6px; }
.wf header p { color: var(--muted); margin: 0; font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 22px 78px minmax(0, 1fr); align-items: baseline; column-gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); font: 12px var(--mono); color: var(--dim); text-align: right; }
.steps .kt { font: 600 10.5px/1 var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.steps .k-check .kt { color: var(--ok); }
.steps .k-approval .kt { color: var(--accent-far); }
.steps .cmd, .steps .ask { grid-column: 3; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.steps .cmd { font-family: var(--mono); background: var(--raised); padding: 3px 7px; border-radius: 5px; width: fit-content; max-width: 100%; color: var(--text); white-space: pre-wrap; }
.steps .ask { font-style: italic; }
.steps .ask::before { content: '“'; } .steps .ask::after { content: '”'; }
mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.runs { margin: 0; color: var(--muted); font-size: 14px; }
.wf details { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.wf summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.wf summary:hover { color: var(--text); }
.wf dl { margin: 10px 0 0; font-size: 14px; }
.wf dt { font-weight: 600; margin-top: 10px; }
.wf dd { margin: 4px 0 0; }
.wf dl { counter-reset: p; }
.said { margin: 0; font: 14px/1.55 var(--ui); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.suits { margin: 0; font-size: 14px; color: var(--muted); }
.suits b { color: var(--text); margin-right: 4px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.acts button { cursor: pointer; font: inherit; }
.later { margin-top: 48px; color: var(--muted); max-width: 70ch; }
.later h2 { font-size: 22px; color: var(--text); }
.later a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 900px) { .wf-grid, .safe { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wf { padding: 16px; } .steps li { grid-template-columns: 18px 1fr; } .steps .kt { grid-column: 2; } .steps .st, .steps .cmd, .steps .ask { grid-column: 2; } }
/* /w/: one shared file. */
.file { margin: 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.file .cmd { color: var(--text); background: color-mix(in srgb, var(--ok) 14%, transparent); border-radius: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 14px; box-shadow: var(--shadow); }
