/* Shared styles for the developer tools (source: builder/lib/dev.css). */
.dv-hint{margin-bottom:0;font-size:.88rem;color:var(--text-muted)}
.dv-out{display:grid;gap:12px}
.dv-res .label{margin-bottom:4px}
.dv-row{display:flex;gap:10px;align-items:flex-start}
.dv-row .readout{flex:1;min-width:0;min-height:0}
.dv-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dv-token{font-family:var(--mono);font-size:.92rem;line-height:1.5;word-break:break-all;overflow-wrap:anywhere;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.dv-token .t-h{color:#c2410c}.dv-token .t-p{color:#7c3aed}.dv-token .t-s{color:#2453e6}
.dv-table-wrap{max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.dv-table{width:100%;border-collapse:collapse;font-size:.88rem;font-variant-numeric:tabular-nums}
.dv-table th,.dv-table td{padding:6px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.dv-table th{position:sticky;top:0;background:var(--surface-2);font-weight:700;z-index:1}
.dv-table td.dv-wrap{white-space:normal;min-width:180px}
.dv-table code{font-size:.92em}
.dv-table button.dv-char{min-width:2.4em;padding:2px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font:inherit;font-family:var(--mono);cursor:pointer}
.dv-table button.dv-char:hover{border-color:var(--brand)}
.dv-tree{font-family:var(--mono);font-size:.88rem;line-height:1.6;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);max-height:620px;overflow:auto}
.dv-tree ul{list-style:none;margin:0;padding-left:1.25rem;border-left:1px dashed var(--line)}
.dv-tree>ul{padding-left:0;border-left:0}
.dv-tree li{margin:0}
.dv-tree .dv-k{color:#7c3aed;cursor:pointer}
.dv-tree .dv-k:hover{text-decoration:underline}
.dv-tree .dv-s{color:#a16207}.dv-tree .dv-n{color:#c2410c}.dv-tree .dv-b{color:#2453e6}.dv-tree .dv-z{color:var(--text-faint)}
.dv-tree .dv-t{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--surface-2);color:var(--text-muted);font-size:.75rem;font-family:var(--sans)}
.dv-tree .dv-tog{display:inline-grid;place-items:center;width:1.3em;height:1.3em;margin-right:2px;border:0;background:none;color:var(--text-muted);cursor:pointer;font:inherit}
.dv-tree li.is-closed>ul{display:none}
.dv-tree mark{background:var(--signal-soft);color:inherit;border-radius:3px}
.dv-diff{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.9rem}
.dv-diff li{margin:0;padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);overflow-wrap:anywhere}
.dv-diff code{font-size:.9em}
.dv-diff .is-add{border-left:4px solid var(--brand)}
.dv-diff .is-del{border-left:4px solid var(--danger)}
.dv-diff .is-chg{border-left:4px solid var(--signal)}
.dv-diff .dv-path{font-weight:700;font-family:var(--mono)}
.dv-grid{overflow:auto;border:1px solid var(--line);border-radius:10px}
.dv-grid table{border-collapse:collapse;min-width:100%}
.dv-grid td,.dv-grid th{border:1px solid var(--line);padding:0;min-width:110px}
.dv-grid input{width:100%;border:0;border-radius:0;padding:7px 9px;background:transparent;font:inherit;font-size:.92rem}
.dv-grid tbody tr:first-child input{font-weight:700;background:var(--surface-2)}
.dv-grid thead th{background:var(--surface-2)}
.dv-grid input:focus{outline:2px solid var(--focus);outline-offset:-2px}
.dv-grid select{width:100%;border:0;border-radius:0;font-size:.8rem;padding:4px 6px;background:var(--surface-2)}
.dv-preview{padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:auto}
.dv-stage{display:grid;place-items:center;min-height:260px;padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2);overflow:hidden}
.dv-stage.is-check{background:repeating-conic-gradient(var(--surface-2) 0 25%,var(--surface) 0 50%) 0 0/20px 20px}
.dv-layers{display:grid;gap:10px}
.dv-layer{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.dv-layer-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-weight:700}
.dv-color{display:flex;align-items:center;gap:8px}
.dv-color input[type="color"]{width:46px;height:38px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer;flex:none}
.dv-color input[type="text"]{min-width:0}
.dv-key{display:grid;place-items:center;min-height:150px;padding:18px;border:2px dashed var(--line-strong);border-radius:var(--radius);background:var(--surface-2);text-align:center;cursor:pointer}
.dv-key:focus{outline:3px solid var(--focus);outline-offset:2px;border-style:solid}
.dv-key-big{font-size:clamp(2rem,8vw,3.6rem);font-weight:800;line-height:1.1;color:var(--brand-ink);overflow-wrap:anywhere}
.dv-perm{border-collapse:collapse;font-size:.95rem}
.dv-perm th,.dv-perm td{padding:8px 12px;border:1px solid var(--line);text-align:center}
.dv-perm th{background:var(--surface-2)}
.dv-perm input{width:18px;height:18px}
.dv-perm td:first-child{text-align:left;font-weight:700}
.dv-big{font-family:var(--mono);font-size:clamp(1.6rem,6vw,2.4rem);font-weight:800;color:var(--brand-ink)}
.dv-tree .dv-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 2px;padding:0 4px;border-radius:6px;cursor:pointer}
.dv-tree .dv-line:hover{background:var(--surface-2)}
.dv-tree .dv-line.is-sel{background:var(--brand-soft)}
.dv-tree .dv-val{overflow-wrap:anywhere;min-width:0}
.dv-tree .dv-more{padding:4px 0}
.dv-res pre.readout{max-height:280px;overflow:auto;white-space:pre-wrap;word-break:break-word;margin:0}
.dv-res pre.readout.is-code{white-space:pre;word-break:normal;overflow-wrap:normal}
.dv-diff .dv-tag{display:inline-block;margin:0 6px;padding:0 8px;border-radius:999px;background:var(--surface-2);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}
.dv-diff .dv-vals{display:block;margin-top:4px;overflow-wrap:anywhere}
.dv-filebtn{position:relative;align-self:flex-start;margin-top:6px}
.dv-chips{display:flex;flex-wrap:wrap;gap:8px}
.dv-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);cursor:pointer;font-size:.92rem;user-select:none}
.dv-chip input{margin:0;width:16px;height:16px}
.dv-chip:has(input:checked){border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink);font-weight:600}
.dv-chip[hidden]{display:none}
.dv-groups{display:grid;gap:16px}
.dv-group{border:0;margin:0;padding:0;min-width:0}
.dv-group legend{font-weight:700;margin-bottom:8px;padding:0}
.dv-group[hidden]{display:none}
.dv-frame{display:block;width:100%;min-height:90px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.dv-icons{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}
.dv-icons figure{margin:0;text-align:center;font-size:.8rem;color:var(--text-muted)}
.dv-icons canvas{display:block;width:88px;height:88px;margin:0 auto 6px;border:1px solid var(--line);border-radius:14px;background:repeating-conic-gradient(var(--surface-2) 0 25%,var(--surface) 0 50%) 0 0/16px 16px}
.dv-icons canvas.is-round{border-radius:50%}
.dv-hist{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.dv-hist li{margin:0;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-family:var(--mono);font-size:.85rem}
.dv-presets{display:flex;flex-wrap:wrap;gap:6px}
.dv-presets .btn{font-family:var(--mono)}
.dv-sliders{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 18px}
.dv-slider{display:grid;gap:4px;min-width:0}
.dv-slider>label{font-weight:600;font-size:.9rem}
.dv-slider-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 1.6em;gap:8px;align-items:center}
.dv-slider-row input[type="range"]{width:100%;min-width:0;accent-color:var(--brand)}
.dv-slider-row input[type="number"]{width:76px;min-width:0;padding:6px 8px}
.dv-slider-row span{font-size:.82rem;color:var(--text-muted)}
.dv-layer .dv-toolbar{margin-top:10px}
.dv-demo-box{width:220px;max-width:100%;height:150px;background:#fff;border-radius:16px}
.dv-demo-text{margin:0;font-weight:800;line-height:1.1;text-align:center;overflow-wrap:anywhere;max-width:100%}
.dv-glass-stage{position:relative;display:grid;place-items:center;min-height:300px;padding:28px 18px;border-radius:var(--radius);overflow:hidden;background-size:cover;background-position:center}
.dv-glass{width:min(340px,100%);padding:22px 24px;color:#fff}
.dv-glass.is-dark{color:#0f172a}
.dv-glass h3{margin:0 0 6px;font-size:1.25rem;color:inherit}
.dv-glass p{margin:0;font-size:.95rem;opacity:.9}
.dv-ph{display:grid;place-items:center;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2)}
.dv-ph canvas{display:block;max-width:100%;height:auto;box-shadow:var(--shadow-sm)}
.dv-explain{margin:0;padding-left:1.2rem;display:grid;gap:4px}
.dv-explain li{margin:0}
@media (max-width:600px){.dv-row{flex-direction:column;align-items:stretch}.dv-grid td,.dv-grid th{min-width:90px}}
