/*
 * MD workflow generator: the GROMACS tab.
 *
 * The set-up views on the left (System, Stages, Index groups, Job), the run
 * files, the option reference and the file check on the right. Markup is in
 * script-generator.html, and partly generated by js/script-generator-gromacs*.js.
 * Everything reads the shared tokens; the code pane stays dark in both themes
 * like the other output panes of this page (src/script-generator.css).
 */

/* ---------------------------------------------------------------------------
   Steps: the four views of the set-up, kept in reach while the form scrolls
--------------------------------------------------------------------------- */
.gx-steps { position: sticky; top: 4rem; z-index: 20; margin-top: -.25rem; padding-top: .25rem; background: var(--stk-bg); }
@media (min-width: 640px) { .gx-steps { top: 5rem; } }
.gx-steps .gx-step { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 3.1rem; padding: 0 .4rem; min-width: 0; }
.gx-step .stk-stepn { width: 1.3rem; height: 1.3rem; font-size: .6875rem; }
.gx-step-t { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.2; }
.gx-step-t > span { font-size: .8125rem; }
.gx-step-t > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: .6875rem; font-weight: 500; color: var(--stk-fg-muted); }
.gx-step-t > small:empty { display: none; }
.gx-step-alert .gx-step-t > span::after { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-left: .3rem; border-radius: 999px; background: var(--stk-warn); vertical-align: .1em; }
@media (max-width: 419.98px) {
  .gx-steps .gx-step { gap: .3rem; padding: 0 .2rem; }
  .gx-step .stk-stepn { display: none; }
}

.gx-view { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.gx-opt-code { font-family: var(--stk-font-mono); font-size: .92em; font-weight: 500; color: var(--stk-fg-muted); }

/* ---------------------------------------------------------------------------
   Notes that explain the current choice, and the values it comes to
--------------------------------------------------------------------------- */
.gx-note { display: flex; flex-direction: column; gap: .35rem; padding: .55rem .7rem; border-radius: var(--stk-radius); border: 1px solid var(--stk-accent-soft-border); background: var(--stk-accent-soft); font-size: .75rem; line-height: 1.5; color: var(--stk-fg-2); }
.gx-note:empty { display: none; }
.gx-note p { margin: 0; }
.gx-note code, .gx-values code, .gx-prose code, .gx-guide code, .gx-tc-hint code, .gx-issue code { font-family: var(--stk-font-mono); font-size: .92em; }
.gx-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; margin: 0; font-size: .75rem; line-height: 1.4; }
.gx-values > div { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.gx-values dt a { color: var(--stk-accent-text); text-decoration: none; font-weight: 600; }
.gx-values dt a:hover { text-decoration: underline; }
.gx-values dd { margin: 0; color: var(--stk-fg-2); overflow-wrap: anywhere; }
.gx-values .gx-values-note { grid-column: 1 / -1; }
.gx-values .gx-values-note dd { color: var(--stk-fg-muted); }
.gx-tc-hint { display: flex; flex-direction: column; gap: .3rem; }
.gx-tc-hint:empty { display: none; }
.gx-tc-hint p { margin: 0; }
.gx-inline-btn { height: 1.5rem; margin-left: .25rem; padding: 0 .5rem; vertical-align: middle; }
.gx-ok, .gx-bad, .gx-warn { margin: 0; font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.gx-ok { color: var(--stk-ok); }
.gx-bad { color: var(--stk-danger); }
.gx-warn { color: var(--stk-warn); }
.gx-note .gx-bad { font-weight: 600; }

/* The guide and the HMR explanation: running text inside a disclosure. */
.gx-guide > summary > span, .gx-guide > summary { gap: .45rem; }
.gx-guide > summary i { color: var(--stk-accent-text); margin-right: .35rem; }
.gx-guide-h { margin: .35rem 0 0; font-size: .75rem; font-weight: 650; color: var(--stk-fg-muted); }
.gx-guide-h:first-child { margin-top: 0; }
.gx-guide-dl { margin: 0; }
.gx-guide-dl dt { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .55rem; font-size: .8125rem; font-weight: 600; color: var(--stk-fg); }
.gx-guide-dl dt:first-child { margin-top: 0; }
.gx-guide-dl dd, .gx-guide-p, .gx-prose p, .gx-prose li { margin: .15rem 0 0; font-size: .8125rem; line-height: 1.55; color: var(--stk-fg-2); }
.gx-guide a, .gx-prose a { color: var(--stk-accent-text); font-weight: 600; text-decoration: none; }
.gx-guide a:hover, .gx-prose a:hover { text-decoration: underline; }
.gx-guide-src { font-size: .75rem; color: var(--stk-fg-3); }
.gx-prose ul { margin: .2rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.gx-prose p { margin: 0; }

/* ---------------------------------------------------------------------------
   Stages
--------------------------------------------------------------------------- */
.gx-stage { overflow: hidden; }
.gx-stage-h { display: flex; align-items: center; gap: .7rem; padding: .7rem .75rem .7rem 1rem; }
.gx-stage-h > .stk-switch { flex-shrink: 0; }
.gx-stage-id { display: flex; flex-direction: column; gap: .1rem; flex: 1 1 auto; min-width: 0; }
.gx-stage-t { margin: 0; font-size: .875rem; font-weight: 700; color: var(--stk-fg); }
.gx-stage-sum { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .75rem; color: var(--stk-fg-3); font-variant-numeric: tabular-nums; }
.gx-stage-sum:empty { display: none; }
.gx-stage-file { flex-shrink: 0; font-family: var(--stk-font-mono); }
.gx-stage.is-off .gx-stage-t { color: var(--stk-fg-3); }
.gx-stage-b { padding: .85rem 1rem 1rem; border-top: 1px solid var(--stk-border); }
.gx-stage-what { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--stk-fg-2); }
.gx-stage-notes { display: flex; flex-direction: column; gap: .35rem; }
.gx-stage-notes:empty { display: none; }
.gx-len { display: flex; gap: .35rem; }
.gx-len > .stk-input { flex: 1 1 auto; min-width: 0; }
.gx-len > .stk-select { flex: 0 0 4.6rem; }
.gx-every { margin: 0; padding: .55rem .7rem .7rem; border: 1px solid var(--stk-border); border-radius: var(--stk-radius); min-width: 0; }
.gx-every > legend { padding: 0 .3rem; font-size: .75rem; font-weight: 600; color: var(--stk-fg-2); }
.gx-every-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .6rem; }
.gx-every-grid label, .gx-names label { font-size: .75rem; }
.gx-every-grid code, .gx-names code { font-family: var(--stk-font-mono); font-size: .92em; }
.gx-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding-top: .7rem; border-top: 1px dashed var(--stk-border); }
.gx-check-end { align-self: end; padding-bottom: .5rem; }
@media (max-width: 479.98px) {
  .gx-names { grid-template-columns: minmax(0, 1fr); }
  .gx-stage-file span { display: none; }
}

/* One problem or note, coloured by what it means for grompp. */
.gx-issue { display: flex; align-items: flex-start; gap: .45rem; margin: 0; padding: .4rem .55rem; border: 1px solid; border-radius: var(--stk-radius-sm); font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.gx-issue > i { margin-top: .15rem; flex-shrink: 0; }
.gx-issue > span { min-width: 0; }
.gx-issue a { color: inherit; font-weight: 600; }
.gx-issue-error { background: var(--stk-danger-soft); border-color: var(--stk-danger-border); color: var(--stk-danger); }
.gx-issue-warning { background: var(--stk-warn-soft); border-color: var(--stk-warn-border); color: var(--stk-warn); }
.gx-issue-note { background: var(--stk-accent-soft); border-color: var(--stk-accent-soft-border); color: var(--stk-accent-text); }

/* The workflow at a glance: the stages top to bottom on a line, each a
   button to its file; the dot carries grompp's verdict. */
.gx-glance { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; counter-reset: gxstage; }
.gx-glance-i { position: relative; min-width: 0; counter-increment: gxstage; }
.gx-glance-i + .gx-glance-i::before { content: ""; position: absolute; left: calc(.55rem + .6rem - 1px); top: -.45rem; height: 1.05rem; width: 2px; background: var(--stk-border-strong); }
.gx-glance-b { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .45rem .55rem; border: 0; border-radius: var(--stk-radius-sm); background: transparent; font: inherit; text-align: left; color: var(--stk-fg); cursor: pointer; transition: background-color var(--stk-ease); }
.gx-glance-b:hover { background: var(--stk-surface-2); }
.gx-glance-b:focus-visible { outline: 2px solid var(--stk-accent); outline-offset: -2px; }
.gx-glance-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; flex-shrink: 0; border-radius: 999px; background: var(--stk-ok-soft); box-shadow: inset 0 0 0 1.5px var(--stk-ok); color: var(--stk-ok); font-size: .625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gx-glance-dot::before { content: counter(gxstage); }
.gx-st-warning .gx-glance-dot { background: var(--stk-warn-soft); box-shadow: inset 0 0 0 1.5px var(--stk-warn); color: var(--stk-warn); }
.gx-st-error .gx-glance-dot { background: var(--stk-danger-soft); box-shadow: inset 0 0 0 1.5px var(--stk-danger); color: var(--stk-danger); }
.gx-glance-t { display: flex; flex-direction: column; gap: .05rem; flex: 1 1 auto; min-width: 0; }
.gx-glance-n { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 600; color: var(--stk-fg); }
.gx-glance-s { font-size: .6875rem; color: var(--stk-fg-3); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gx-glance-l { flex-shrink: 0; font-size: .8125rem; font-weight: 700; color: var(--stk-accent-text); font-variant-numeric: tabular-nums; }
.gx-glance-empty { font-size: .8125rem; color: var(--stk-fg-3); }

/* ---------------------------------------------------------------------------
   Index groups
--------------------------------------------------------------------------- */
.gx-ndx-sum { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--stk-fg-2); overflow-wrap: anywhere; }
.gx-ndx-sum code, .gx-g code, .gx-tc-line code { font-family: var(--stk-font-mono); }
.gx-comp td:first-child { font-family: var(--stk-font-mono); }
.gx-comp td:nth-child(n+2), .gx-comp th { font-family: inherit; }
.gx-tc-line { margin: 0; }
.gx-tc-line code { display: inline-block; max-width: 100%; padding: .3rem .55rem; border-radius: var(--stk-radius-sm); border: 1px solid var(--stk-accent-soft-border); background: var(--stk-accent-soft); font-size: .8125rem; font-weight: 600; color: var(--stk-accent-text); overflow-wrap: anywhere; }
.gx-check-list { display: flex; flex-direction: column; gap: .3rem; }
.gx-check-list:empty { display: none; }
.gx-check-list code { font-family: var(--stk-font-mono); font-size: .92em; }
.gx-groups { display: flex; flex-direction: column; gap: .5rem; }
.gx-g-h { margin: .15rem 0 0; font-size: .75rem; font-weight: 650; color: var(--stk-fg-muted); }
.gx-glist { display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.gx-g { padding: .45rem .6rem .5rem; border: 1px solid var(--stk-border); border-radius: var(--stk-radius-sm); background: var(--stk-surface-2); min-width: 0; }
.gx-g.is-off { background: var(--stk-surface); border-style: dashed; }
.gx-g.is-off .gx-g-name { text-decoration: line-through; color: var(--stk-fg-3); }
.gx-g-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.gx-g-top input { width: 1rem; height: 1rem; accent-color: var(--stk-accent); cursor: pointer; flex-shrink: 0; }
.gx-g-no { min-width: 1.1rem; font-size: .6875rem; color: var(--stk-fg-3); font-variant-numeric: tabular-nums; }
.gx-g-name { font-size: .8125rem; font-weight: 700; color: var(--stk-fg); overflow-wrap: anywhere; }
.gx-g-n { margin-left: auto; font-size: .75rem; color: var(--stk-fg-3); font-variant-numeric: tabular-nums; }
.gx-g-rm { width: var(--stk-control-h-sm); padding: 0; justify-content: center; }
.gx-g-res, .gx-g-why { margin: .2rem 0 0; font-size: .75rem; line-height: 1.45; color: var(--stk-fg-3); overflow-wrap: anywhere; }
.gx-g-res:empty { display: none; }
.gx-g-why label { cursor: pointer; }
.gx-g-table td:nth-child(n+3) { font-family: inherit; }
.gx-within { display: flex; flex-direction: column; gap: .45rem; margin: 0; padding: .5rem .65rem .6rem; border: 1px solid var(--stk-border); border-radius: var(--stk-radius-sm); min-width: 0; }
.gx-within > legend { padding: 0 .25rem; }
.gx-within-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--stk-fg-2); }
.gx-within-row .stk-input { width: 5rem; }
.gx-within-row .stk-select { flex: 1 1 9rem; min-width: 0; }
.gx-combine { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8125rem; }
.gx-combine > label { font-weight: 600; color: var(--stk-fg-2); }
.gx-combine .stk-select { flex: 1 1 9rem; min-width: 0; }
.gx-cg-foot { display: flex; align-items: flex-end; gap: .5rem; }
.gx-cg-name { flex: 1 1 auto; }
.gx-cg-preview { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--stk-fg-3); overflow-wrap: anywhere; }
.gx-cg-preview.is-ok { color: var(--stk-ok); }
.gx-cg-preview.is-bad { color: var(--stk-danger); }

/* ---------------------------------------------------------------------------
   Run files: one tab per file, the file, and what the line under the
   pointer means
--------------------------------------------------------------------------- */
.gx-files { min-height: 0; }
.gx-files-h { flex-shrink: 0; border-bottom: 1px solid var(--stk-border); }
.gx-ftabs { display: flex; gap: .1rem; padding: .3rem .5rem 0; overflow-x: auto; scrollbar-width: thin; }
.gx-ftab { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .4rem .7rem .5rem; border: 0; border-radius: var(--stk-radius-sm) var(--stk-radius-sm) 0 0; background: transparent; color: var(--stk-fg-3); font: inherit; text-align: left; white-space: nowrap; cursor: pointer; transition: background-color var(--stk-ease), color var(--stk-ease); }
.gx-ftab:hover { background: var(--stk-surface-2); color: var(--stk-fg); }
.gx-ftab:focus-visible { outline: 2px solid var(--stk-accent); outline-offset: -2px; }
.gx-ftab[aria-selected="true"] { color: var(--stk-accent-text); }
.gx-ftab[aria-selected="true"]::after { content: ""; position: absolute; left: .45rem; right: .45rem; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--stk-accent); }
/* The stages run left to right: a chevron between consecutive ones. */
.gx-ftab.is-stage + .gx-ftab.is-stage { margin-left: .55rem; }
.gx-ftab.is-stage + .gx-ftab.is-stage::before { content: ""; position: absolute; left: -.5rem; top: 50%; width: .35rem; height: .35rem; margin-top: -.25rem; border-top: 1.5px solid var(--stk-fg-faint); border-right: 1.5px solid var(--stk-fg-faint); transform: rotate(45deg); }
.gx-ftab-n { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--stk-font-mono); font-size: .75rem; font-weight: 600; }
.gx-ftab-s { font-size: .6875rem; color: var(--stk-fg-3); font-variant-numeric: tabular-nums; }
.gx-ft-st { font-size: .75rem; }
.gx-ft-ok { color: var(--stk-ok); }
.gx-ft-warning { color: var(--stk-warn); }
.gx-ft-error { color: var(--stk-danger); }
.gx-files-bar { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .75rem; padding: .5rem .75rem .5rem 1rem; border-bottom: 1px solid var(--stk-border); }
.gx-file-what { flex: 1 1 14rem; min-width: 0; margin: 0; font-size: .75rem; line-height: 1.45; color: var(--stk-fg-3); }
.gx-file-what code { font-family: var(--stk-font-mono); }
.gx-file-actions { flex-wrap: wrap; align-items: center; }
.gx-file-actions .stk-seg > button { height: 1.5rem; padding: 0 .55rem; }

.gx-code-wrap:focus-visible, .gx-explain:focus-visible { outline: 2px solid var(--stk-accent); outline-offset: -2px; }
/* Lines are blocks so a line's background spans the file's width. */
.gx-code { width: max-content; min-width: 100%; padding-left: .35rem; counter-reset: gxln; }
.gx-ln { display: block; min-height: 1.55em; padding-right: 1rem; border-radius: 2px; }
.gx-ln::before { counter-increment: gxln; content: counter(gxln); display: inline-block; width: 2.4em; margin-right: .9em; text-align: right; color: #7c8aa3; user-select: none; }
.gx-files[data-kind="mdp"] .gx-ln { cursor: pointer; }
.gx-files[data-kind="mdp"] .gx-ln:hover { background: rgba(146, 184, 221, .1); }
.gx-ln.is-pinned { background: rgba(53, 116, 176, .32) !important; box-shadow: inset 2px 0 0 #7fb0de; }
.sg-code .tok-k { color: #92b8dd; }
.sg-code .tok-n { color: #f1f5f9; }
.sg-code .tok-h { color: #7dd3fc; font-weight: 700; }

.gx-foot { max-height: 7rem; overflow: auto; color: var(--stk-fg-3); }
.gx-foot code { color: var(--stk-accent-text); font-weight: 600; }
.gx-foot .stk-badge { vertical-align: middle; }
.gx-foot a { color: var(--stk-accent-text); font-weight: 600; }
.gx-foot-line { margin-right: .35rem; font-weight: 700; color: var(--stk-fg); font-variant-numeric: tabular-nums; }
.gx-foot-st { font-weight: 600; }

/* The file, line by line. */
.gx-explain { flex: 1 1 auto; min-height: 0; overflow: auto; padding: .7rem .85rem; }
.gx-xl { display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.gx-xl-h { margin: .55rem 0 .05rem; font-size: .75rem; font-weight: 650; color: var(--stk-fg-muted); }
.gx-xl-h:first-child { margin-top: 0; }
.gx-xl-row { padding: .45rem .6rem .5rem; border: 1px solid var(--stk-border); border-left: 3px solid var(--stk-border-strong); border-radius: var(--stk-radius-sm); background: var(--stk-surface); min-width: 0; }
.gx-xl-row.gx-xl-warning { border-left-color: var(--stk-warn); }
.gx-xl-row.gx-xl-error { border-left-color: var(--stk-danger); }
.gx-xl-top { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; min-width: 0; }
.gx-xl-no { min-width: 1.6rem; font-size: .6875rem; color: var(--stk-fg-muted); font-variant-numeric: tabular-nums; }
button.gx-xl-no { min-width: 0; padding: .05rem .3rem; margin: 0; }
.gx-xl-name { font-family: var(--stk-font-mono); font-size: .8125rem; font-weight: 700; color: var(--stk-accent-text); overflow-wrap: anywhere; }
.gx-xl-val { font-family: var(--stk-font-mono); font-size: .8125rem; color: var(--stk-fg); overflow-wrap: anywhere; }
.gx-xl-link { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--stk-accent-text); text-decoration: none; white-space: nowrap; }
.gx-xl-link:hover { text-decoration: underline; }
.gx-xl-mean { margin: .2rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--stk-fg-2); overflow-wrap: anywhere; }
.gx-xl-sum { margin: .15rem 0 0; font-size: .75rem; line-height: 1.45; color: var(--stk-fg-3); }
.gx-xl-row .gx-issue { margin-top: .35rem; }

@media (min-width: 1024px) {
  .gx-files { flex: 1 1 0; min-height: 12rem; }
}
@media (max-width: 1023.98px) {
  .gx-code-wrap, .gx-explain { height: 62vh; flex: none; }
}

/* ---------------------------------------------------------------------------
   All options
--------------------------------------------------------------------------- */
.gx-opt-bar { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; padding: .6rem 1rem; border-bottom: 1px solid var(--stk-border); }
.gx-opt-bar > input[type="search"] { flex: 1 1 11rem; min-width: 0; }
.gx-opt-bar > .stk-select { flex: 0 1 12rem; min-width: 0; }
.gx-opt-only span { font-size: .75rem; }
.gx-opt-count { margin-left: auto; font-size: .75rem; color: var(--stk-fg-muted); }
.gx-opts { display: flex; flex-direction: column; min-width: 0; }
.gx-opt-sec { position: sticky; top: -.85rem; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: .5rem 0 0; padding: .55rem 0 .35rem; border-bottom: 1px solid var(--stk-border); background: var(--stk-surface); font-size: .75rem; font-weight: 650; color: var(--stk-fg-muted); }
.gx-opt-sec:first-child { margin-top: -.3rem; }
.gx-opt-sec a { font-size: .6875rem; letter-spacing: 0; text-transform: none; }
.gx-opt { border-bottom: 1px solid var(--stk-border); min-width: 0; }
.gx-opt-h { display: flex; flex-direction: column; gap: .15rem; width: 100%; padding: .5rem .35rem; border: 0; border-radius: var(--stk-radius-sm); background: transparent; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.gx-opt-h:hover { background: var(--stk-surface-2); }
.gx-opt-h:focus-visible { outline: 2px solid var(--stk-accent); outline-offset: -2px; }
.gx-opt-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.gx-opt-top::before { content: ""; width: .38rem; height: .38rem; margin-right: .1rem; border-right: 1.5px solid var(--stk-fg-faint); border-bottom: 1.5px solid var(--stk-fg-faint); transform: rotate(-45deg); transition: transform var(--stk-ease); flex-shrink: 0; }
.gx-opt.is-open .gx-opt-top::before { transform: rotate(45deg); }
.gx-opt-name { font-family: var(--stk-font-mono); font-size: .8125rem; font-weight: 600; color: var(--stk-fg); overflow-wrap: anywhere; }
.gx-opt-val { margin-left: auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--stk-font-mono); font-size: .75rem; color: var(--stk-fg-2); }
.gx-opt-val.is-mine { color: var(--stk-accent-text); font-weight: 600; }
.gx-opt-val small { margin-left: .25rem; font-family: inherit; font-size: .6875rem; font-weight: 600; }
.gx-opt-sum { padding-left: .9rem; font-size: .75rem; line-height: 1.45; color: var(--stk-fg-3); }
.gx-opt-b { display: flex; flex-direction: column; gap: .55rem; padding: .2rem .35rem .85rem 1.25rem; font-size: .8125rem; color: var(--stk-fg-2); min-width: 0; }
.gx-opt-b code { font-family: var(--stk-font-mono); font-size: .92em; }
.gx-opt-kv { font-size: .75rem; }
.gx-opt-kv a { color: var(--stk-accent-text); }
.gx-opt-values { display: flex; flex-direction: column; gap: .3rem; margin: 0; padding-left: 1rem; font-size: .75rem; line-height: 1.45; color: var(--stk-fg-2); }
.gx-opt-values a { color: var(--stk-accent-text); text-decoration: none; font-weight: 600; }
.gx-opt-values a:hover { text-decoration: underline; }
.gx-opt-note { color: var(--stk-fg-3); }
p.gx-opt-note { margin: 0; font-size: .75rem; }
.gx-opt-edit { display: flex; flex-direction: column; gap: .4rem; padding: .55rem .65rem; border: 1px solid var(--stk-border); border-radius: var(--stk-radius-sm); background: var(--stk-surface-2); }
.gx-opt-state { margin: 0; font-size: .75rem; color: var(--stk-fg-2); }
.gx-opt-editrow { display: flex; flex-wrap: wrap; gap: .4rem; }
.gx-opt-editrow > .stk-input, .gx-opt-editrow > .stk-select { flex: 1 1 9rem; min-width: 0; }
.gx-opt-rel { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0; font-size: .75rem; color: var(--stk-fg-3); }
.gx-opt-jump { padding: .05rem .5rem; border: 1px solid var(--stk-border-strong); border-radius: 999px; background: var(--stk-surface); font-family: var(--stk-font-mono); font-size: .6875rem; color: var(--stk-accent-text); cursor: pointer; }
.gx-opt-jump:hover { border-color: var(--stk-accent); }
.gx-opt-jump:focus-visible { outline: 2px solid var(--stk-accent); outline-offset: 1px; }
.gx-opt-more { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .75rem; }
.gx-opt-docs { padding: .1rem 0 .1rem .8rem; border-left: 3px solid var(--stk-accent-soft-border); font-size: .8125rem; line-height: 1.6; color: var(--stk-fg-2); overflow-wrap: anywhere; }
.gx-opt-docs > :first-child { margin-top: 0; }
.gx-opt-docs p, .gx-opt-docs ul, .gx-opt-docs ol { margin: .4rem 0 0; }
.gx-opt-docs ul, .gx-opt-docs ol { padding-left: 1.1rem; }
.gx-opt-docs h4 { margin: .6rem 0 0; font-size: .8125rem; }
.gx-opt-docs pre { margin: .4rem 0 0; padding: .5rem .6rem; overflow-x: auto; border-radius: var(--stk-radius-sm); background: var(--stk-surface-2); font-size: .75rem; }
.gx-opt-docs a { color: var(--stk-accent-text); }
.gx-opts.is-search .gx-opt-sec { display: none; }

/* ---------------------------------------------------------------------------
   Check a file
--------------------------------------------------------------------------- */
.gx-chk-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.gx-chk-ctx .stk-check span { font-size: .75rem; }
.gx-num-xs { width: 4.2rem; }
.gx-verdict { display: flex; align-items: flex-start; gap: .6rem; padding: .65rem .8rem; border: 1px solid var(--stk-border); border-radius: var(--stk-radius); }
.gx-verdict:empty { display: none; }
.gx-verdict > i { margin-top: .15rem; font-size: 1rem; flex-shrink: 0; }
.gx-verdict.is-ok { background: var(--stk-ok-soft); border-color: transparent; }
.gx-verdict.is-ok > i, .gx-verdict.is-ok .gx-verdict-h { color: var(--stk-ok); }
.gx-verdict.is-warn { background: var(--stk-warn-soft); border-color: var(--stk-warn-border); }
.gx-verdict.is-warn > i, .gx-verdict.is-warn .gx-verdict-h { color: var(--stk-warn); }
.gx-verdict.is-bad { background: var(--stk-danger-soft); border-color: var(--stk-danger-border); }
.gx-verdict.is-bad > i, .gx-verdict.is-bad .gx-verdict-h { color: var(--stk-danger); }
.gx-verdict-h { margin: 0; font-size: .875rem; font-weight: 700; }
.gx-verdict-c { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .3rem 0 0; font-size: .75rem; color: var(--stk-fg-2); }
.gx-verdict-vs { color: var(--stk-fg-3); }
.gx-verdict-raw { margin: .4rem 0 0; font-size: .75rem; line-height: 1.45; color: var(--stk-fg-2); overflow-wrap: anywhere; }
.gx-chk-import { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.gx-chk-import .stk-select { width: auto; max-width: 100%; min-width: 0; }
.gx-chk-h { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 .35rem; font-size: .75rem; font-weight: 700; color: var(--stk-fg-2); }
.gx-chk-h:first-child { margin-top: 0; }
.gx-chk-n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.1rem; padding: 0 .3rem; border-radius: 999px; background: var(--stk-surface-2); font-size: .6875rem; color: var(--stk-fg-3); }
.gx-chk-where { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; }
.sg-issue-error .gx-chk-where > i { color: var(--stk-danger); }
.sg-issue-warning .gx-chk-where > i { color: var(--stk-warn); }
.sg-issue-note .gx-chk-where > i { color: var(--stk-accent-text); }
.gx-chk-noline { font-size: .75rem; color: var(--stk-fg-3); }
.gx-chk-opt { text-decoration: none; }
.gx-chk-opt code { font-weight: 700; color: var(--stk-accent-text); }
.gx-chk-explain[hidden] { display: none; }
