/* The picker and the live repair panel. Colors come from the tokens in site.css. */
/* minmax(0,1fr) lets long option texts shrink on a phone instead of widening the page. */
.picker,#bench-controls,.live-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.picker{margin-bottom:14px}
.picker>*,#bench-controls>*,.live-grid>*,.picker-row>*{min-width:0;max-width:100%}
.sources{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.sources button[aria-pressed="true"]{background:var(--mint);color:var(--on);border-color:transparent;font-weight:700}
.picker-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.picker select{max-width:100%;min-width:0}
#bench-call{flex:1 1 320px}
.picker input,.picker textarea{font:inherit;color:var(--text);background:var(--deep);border:1px solid var(--line);border-radius:8px;padding:8px 11px;min-width:0}
.picker textarea{font:14px/1.5 ui-monospace,Consolas,monospace;width:100%;resize:vertical}
#bench-number{width:12ch}
#bench-go{display:flex;gap:6px;align-items:center}
.live-grid{display:grid;gap:8px}
.live-grid label{font-weight:700;font-size:.92rem}
.picker input:focus-visible,.picker textarea:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
#live-status{margin:0;white-space:pre-wrap}
.paper-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#bench-note{margin:0;color:var(--muted);font-size:.92rem}
@media(max-width:720px){.paper-columns{grid-template-columns:1fr}#bench-call{flex-basis:100%}}
.video .picker{display:none}
/* The box inspector: what a pipeline box got and gave. */
.diagram-node[data-box]{cursor:pointer}
.diagram-node[data-box]:hover,.diagram-node[data-box][aria-expanded="true"]{border-color:var(--blue)}
.diagram-node[data-box]:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.inspector{position:fixed;z-index:50;width:min(760px,calc(100vw - 24px));overflow:auto;background:var(--surface);color:var(--text);
  border:2px solid var(--blue);border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.45);padding:12px 14px}
.inspector p{margin:4px 0}
.inspector-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.inspector-head h4{margin:0;font-size:1.05rem}
.inspector-head button{min-height:32px;padding:2px 11px}
.inspector section{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.inspector-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.inspector-part pre{max-height:220px;font-size:.8rem;margin-top:4px}
@media(max-width:640px){.inspector-columns{grid-template-columns:1fr}}
/* The own-model panel and the window about the errors. */
.picker input[type="url"],.picker input[type="text"],.picker input[type="password"]{width:100%;max-width:560px}
.how-button{border-color:var(--blue);color:var(--blue)}
dialog#how{width:min(980px,calc(100vw - 24px));max-height:86vh;overflow:auto;background:var(--surface);color:var(--text);border:2px solid var(--blue);border-radius:14px;padding:0 18px 18px}
dialog#how::backdrop{background:rgba(0,0,0,.6)}
.how-head{position:sticky;top:0;background:var(--surface);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0 10px;border-bottom:1px solid var(--line)}
.how-head h3{margin:0}
#how-body ol{padding-left:22px}
#how-body li{margin:6px 0}
.how-scroll{overflow-x:auto;margin:14px 0}
.how-scroll table{min-width:620px;font-size:.9rem}
.how-scroll pre{font-size:.78rem;max-width:340px;max-height:140px}
.how-scroll td:first-child{white-space:nowrap}
/* Footer: the credit on the left, the GitHub link on the right. */
.footer-row{display:flex;justify-content:space-between;align-items:center;gap:8px 24px;flex-wrap:wrap}
.footer-row a{margin-left:auto}
