/* pattern-picker.css — THE ONE PLACE these rules live.
 *
 * Georgiy, 2026-10-29: "kill the copy they should be all linked back to one spot and one
 * writing section."
 *
 * They used to live in library.html. Extracting the dialog made a SECOND copy inside
 * pattern-picker.js, transcribed by eye, and three of the eighteen rules were truncated in
 * the copying — #picker never closed and the live page parsed 4 rules of 18. Jeremy,
 * 2026-10-29: "deleting a transformation beats testing one every time. A test on a
 * transformation is a floor. Removing the transformation is a ceiling."
 *
 * So there is no transformation left. This file IS the rules. Every page that wears these
 * classes links it:
 *   public/library.html  — the Movement Library sheet, #gateErr, and two other sheets' footers
 *   public/build.html    — the builder row's pattern dialog
 * pattern-picker.js injects the <link> if a page forgot it, and
 * lib/__tests__/library-review.test.cjs fails naming any page that wears the classes
 * without linking this file.
 */

/* NAMESPACED, not scoped. An earlier version prefixed these with #picker because .pbtn and
 * .pgrp were ALSO build.html's own classes — its action buttons and grouped panels, there long
 * before this dialog. Jeremy, 2026-10-29: "you named your component's buttons after the host's
 * furniture. That's not a trade-off, that's a landmine you got lucky on... tests police what you
 * can't prevent. You can prevent this one." So they are .pdbtn and .pdgrp now, joining the .pd*
 * family that nothing else uses, and the collision cannot happen rather than being watched for.
 * That also lets them stay GLOBAL, which matters: library.html wears .pdbtn on #gateSubmit and
 * .pdstate on #gateErr, both OUTSIDE #picker, so a #picker-scoped rule would have missed them.
 */

.popt.seeded{background:var(--accent-soft);border-radius:5px}
.sdot{font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);opacity:.8}
.pdgrp.mods .pgnote{font-family:var(--mono);font-size:10.5px;color:var(--faint);line-height:1.4;margin:-2px 0 6px;max-width:34ch}

#picker{position:fixed;inset:0;background:rgba(20,24,29,.45);display:flex;align-items:center;
justify-content:center;padding:24px;z-index:50}
#picker[hidden]{display:none}
.pdlg{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);
width:min(760px,100%);max-height:84vh;display:flex;flex-direction:column;overflow:clip}
.pdhead{display:flex;align-items:baseline;gap:10px;padding:15px 18px;border-bottom:1px solid var(--line-2)}
.pdsub{font-family:var(--mono);font-size:11px;color:var(--faint)}
.pdx{margin-left:auto;font:inherit;border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:16px}
.pdbody{padding:14px 18px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.pdgrp.mods{grid-column:1/-1;border-top:1px solid var(--line-2);padding-top:12px}
.pgh{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-bottom:6px}
.popt{display:flex;align-items:center;gap:7px;font-size:13.5px;padding:2px 0;cursor:pointer}
.popt input{accent-color:var(--teal);width:15px;height:15px;margin:0}
.pdfoot{display:flex;gap:10px;align-items:center;padding:13px 18px;border-top:1px solid var(--line-2)}
.pdstate{font-family:var(--mono);font-size:11.5px;color:var(--muted);margin-right:auto}
.pdstate.wait{color:var(--muted)}
.pdbtn{font:inherit;font-weight:600;font-size:13.5px;padding:8px 15px;border-radius:9px;border:1px solid transparent;
background:var(--accent);color:#fff;cursor:pointer}
.pdbtn.ghost{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
.pdbtn[disabled]{opacity:.45;cursor:default}
