/* Reference pictures (shared/refpics.js) – the window to pick pictures whose style to match */
.rp { display: flex; flex-direction: column; gap: 10px; }
.rp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.rp-tab { border: 0; border-bottom: 2px solid transparent; background: none; padding: 8px 12px; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
.rp-tab.on { color: var(--text); border-bottom-color: var(--prog); font-weight: 600; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: min(60vh, 520px); overflow: auto; padding: 2px; align-content: start; }
.rp-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.rp-item:hover { border-color: var(--prog); }
.rp-item.on { border-color: var(--prog); box-shadow: inset 0 0 0 2px var(--prog); background: var(--prog-soft, rgba(42,120,214,.08)); }
.rp-img { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; background: repeating-conic-gradient(#e7e9ee 0 25%, #f7f8fa 0 50%) 0 0 / 12px 12px; border-radius: 4px; }
.rp-name { font-size: 11.5px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.rp-from { font-size: 10.5px; color: var(--text-2); }
.rp-x { position: absolute; top: 4px; right: 4px; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); color: var(--text-2); }
.rp-x .material-symbols-outlined { font-size: 14px; }
.rp-empty { grid-column: 1 / -1; padding: 24px 4px; color: var(--text-2); font-size: 13px; }
.rp-note { font-size: 12.5px; color: var(--text-2); }
