/* Pattern: sides (js/patterns/sides.js): four small number boxes in a 2 x 2 grid and a row of shortcuts. */
.pat-sides .sb-wrap { display: grid; gap: 10px; }
.pat-sides .sb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pat-sides .sb-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 6px; min-width: 0; }
.pat-sides .sb-cell > span { grid-column: 1 / -1; font-size: 12px; color: var(--text-dim, var(--text-faint)); }
.pat-sides .sb-cell .sm-in { min-width: 0; min-height: 40px; }
.pat-sides .sb-cell > i { font-style: normal; font-size: 12px; color: var(--text-faint); }
.pat-sides .sb-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pat-sides .sb-quick > span { font-size: 12px; color: var(--text-dim, var(--text-faint)); margin-inline-end: 4px; }
.pat-sides .sb-quick .sm-q { min-height: 40px; min-width: 40px; }

/* A yes / no box of a form inside a form, drawn as the same switch as everywhere else (the schema of "Extract With Your Schema": "Allow other properties too"). */
.pfw-switchrow { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; position: relative; font-size: 12.5px; color: var(--text-muted); }
.pfw-switchrow .pfw-sw-in { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; margin: 0; }
.pfw-switchrow i { inline-size: 36px; block-size: 20px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .15s; flex: none; }
.pfw-switchrow i::after { content: ''; position: absolute; inset-block-start: 2px; inset-inline-start: 2px; inline-size: 16px; block-size: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pfw-switchrow .pfw-sw-in:checked + i { background: var(--accent); }
.pfw-switchrow .pfw-sw-in:checked + i::after { transform: translateX(16px); }
[dir="rtl"] .pfw-switchrow .pfw-sw-in:checked + i::after { transform: translateX(-16px); }
.pfw-switchrow .pfw-sw-in:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.pfw-switchrow .pfw-sw-in:disabled + i { opacity: .5; }

/* Pattern: frame-range (js/patterns/pages/frame-range.js): the row of frames reuses the page strip (patterns-page-picker.css). */
.pat-frame-range .fr-wrap { display: grid; gap: 8px; }
.pat-frame-range .fr-hint, .pat-frame-range .fr-sum { font-size: 12px; color: var(--text-faint); }
.pat-frame-range .fr-sum[hidden] { display: none; }
.pat-frame-range .fr-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pat-frame-range .fr-box { display: grid; gap: 2px; min-width: 0; font-size: 12px; color: var(--text-dim, var(--text-faint)); }
.pat-frame-range .fr-box .sm-in { min-width: 0; min-height: 40px; }
