.conv-figure { margin: 2rem auto 2.6rem; max-width: 900px; font-family: "DejaVu Sans", sans-serif; font-size: 14px; color: #333; }
.conv-figure [hidden] { display:none!important; }
.conv-stage { display:flex; align-items:center; justify-content:center; gap:22px; padding:14px 4px; }
.conv-object { display:flex; flex-direction:column; align-items:center; gap:12px; min-width:0; }
.conv-symbol { font-size:25px; color:#666; flex:none; }
.conv-matrix { display:grid; position:relative; grid-template-columns:repeat(var(--cols),var(--cell,32px)); gap:1px; padding:5px 7px; border-left:1.5px solid #555; border-right:1.5px solid #555; flex:none; }
.conv-matrix::before,.conv-matrix::after { content:""; position:absolute; inset:-1px -1px; border-top:1.5px solid #555; border-bottom:1.5px solid #555; pointer-events:none; clip-path:polygon(0 0,8px 0,8px 100%,0 100%,0 0,100% 0,calc(100% - 8px) 0,calc(100% - 8px) 100%,100% 100%,100% 0); }
.conv-cell { width:var(--cell,32px); height:var(--cell,32px); display:flex; align-items:center; justify-content:center; font-size:12px; font-variant-numeric:tabular-nums; box-sizing:border-box; border:2px solid transparent; border-radius:2px; padding:0; }
.conv-cell.is-window { border-color:#44aa99; }
.conv-cell.is-selected { border-color:#176958; box-shadow:0 0 0 1px #176958; position:relative; z-index:1; }
.conv-cell.is-padding { opacity:.45; }
.conv-cell.is-muted { opacity:.32; }
.conv-matrix[data-input],.conv-matrix[data-output] { cursor:crosshair; user-select:none; -webkit-user-select:none; touch-action:pan-y; }
.conv-figure,.conv-figure * { -webkit-user-select:none; user-select:none; }
.conv-cell input { width:100%; height:100%; border:0; background:transparent; color:inherit; text-align:center; padding:0; font:inherit; outline:none; border-radius:0; -moz-appearance:textfield; user-select:text; -webkit-user-select:text; }
.conv-cell input::-webkit-inner-spin-button,.conv-cell input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.conv-cell:focus-within { border-color:#176958; }
.conv-controls { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px 22px; margin:12px 0; }
.conv-controls label { display:flex; align-items:center; gap:8px; font-size:13px; }
.conv-presets { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin:0 auto 18px; }
.conv-presets button { appearance:none; background:#fff; border:1px solid #d6dddb; border-radius:16px; padding:6px 12px; color:#535d5a; font:inherit; font-size:12px; cursor:pointer; }
.conv-presets button:hover { background:#f1f7f5; border-color:#8bb6ac; }
.conv-presets button[aria-pressed="true"] { background:#e3f2ed; border-color:#278c7a; color:#176958; }
.conv-toggle { display:flex; align-items:center; gap:9px; font-size:12px; color:#535d5a; }
.conv-switch { display:flex; padding:3px; border:1px solid #d6dddb; border-radius:18px; background:#f3f6f5; font:inherit; cursor:pointer; }
.conv-switch span { display:flex; align-items:center; justify-content:center; width:26px; height:24px; border-radius:12px; color:#68756f; }
.conv-switch span.is-active { background:#278c7a; color:white; }
.conv-presets button:focus-visible,.conv-switch:focus-visible { outline:2px solid #176958; outline-offset:3px; }
.conv-filter-table { margin:1rem 0; max-width:640px; }
.conv-filter-table table { width:100%; table-layout:fixed; font-size:.9em; }
.conv-filter-table col:first-child { width:30%!important; }
.conv-filter-table col:last-child { width:70%!important; }
.conv-filter-table th,.conv-filter-table td { padding:.3rem 10px; vertical-align:middle; text-align:left; }
.conv-filter-table th:first-child,.conv-filter-table td:first-child { width:30%; }
@media(max-width:580px) {
  .conv-filter-table th,.conv-filter-table td { padding:.3rem 8px; font-size:.85rem; }
  .conv-filter-table th:first-child,.conv-filter-table td:first-child { width:36%; }
  .conv-filter-table col:first-child { width:36%!important; }
  .conv-filter-table col:last-child { width:64%!important; }
  .conv-figure[data-conv="two"] .conv-matrix { --cell:24px; }
}
.conv-scale { display:flex; align-items:center; justify-content:center; gap:7px; font-size:10px; color:#666; margin:14px auto 4px; }
.conv-scale span:nth-child(2) { width:100px; height:6px; border-radius:3px; background:linear-gradient(90deg,#bf7334,#fff,#337cad); }
.conv-label { font-size:12px; color:#666; }
@media(max-width:760px) {
  .conv-stage { gap:12px; }
  .conv-figure[data-conv="one"] .conv-stage,.conv-figure[data-conv="two"] .conv-stage { flex-direction:column; gap:10px; }
  .conv-figure[data-conv="one"] .conv-stage>.conv-arrow,.conv-figure[data-conv="two"] .conv-stage>.conv-arrow { transform:rotate(90deg); }
}
@media(max-width:580px) {
  .conv-stage { flex-direction:column; gap:10px; }
  .conv-stage>.conv-arrow { transform:rotate(90deg); }
}
.conv-volume-stage { display:grid; grid-template-columns:minmax(0,1.5fr) 16px minmax(0,1fr) 24px minmax(0,1fr); gap:8px; }
.conv-volume-object { width:100%; min-width:0; }
.conv-volume-label { font-family:serif; font-weight:700; font-size:22px; }
.conv-volume-object svg { width:100%; height:auto; overflow:visible; cursor:grab; touch-action:none; outline:none; }
.conv-volume-object svg.is-dragging { cursor:grabbing; }
@media(max-width:760px) {
  .conv-volume-stage { display:flex; flex-direction:column; gap:8px; }
  .conv-volume-stage>.conv-arrow { transform:rotate(90deg); }
  .conv-volume-object[data-volume="input"] { width:min(100%,400px); }
  .conv-volume-object[data-volume="kernel"] { width:210px; }
  .conv-volume-object[data-volume="output"] { width:270px; }
}
