/* Style research (#/research/<kit>): pages/research.js */
.lib-intro-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lib-intro-row p { flex: 1 1 320px; margin-top: 0; }
.rs-form { display: grid; gap: 14px; margin: 14px 0 24px; }
.rs-form h2 { margin: 0; font-size: 18px; }
.rs-form textarea { width: 100%; box-sizing: border-box; font: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--panel); color: var(--ink); }
.rs-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0; }
.rs-files:empty { display: none; }
.rs-file { position: relative; display: grid; gap: 3px; }
.rs-file img, .rs-file-blank { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.rs-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-file button { position: absolute; top: 2px; right: 2px; padding: 0 7px; background: var(--panel); }
.rs-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rs-kinds legend { width: 100%; margin-bottom: 4px; }
.rs-runs { display: grid; gap: 8px; }
.rs-run { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; background: var(--panel); }
.rs-run:hover { border-color: var(--brand); }
.rs-run-top strong { min-width: 0; flex: 1 1 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-run-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rs-run-top h2 { margin: 0; font-size: 20px; }
.rs-summary { margin: 14px 0; }
.rs-summary p { margin: 6px 0 0; }
.rs-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 14px; }
.rs-idea { display: grid; gap: 10px; align-content: start; }
.rs-idea p { margin: 0; }
.rs-idea-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rs-idea-head h3 { margin: 0; font-size: 17px; }
.rs-feels { color: var(--muted); font-style: italic; }
.rs-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rs-examples figure { margin: 0; display: grid; gap: 4px; }
.rs-examples img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; background: var(--soft); }
.rs-examples figcaption { overflow-wrap: anywhere; }
.rs-how { margin: 4px 0 0; padding-left: 18px; }
.rs-how li { margin: 2px 0; }
.rs-sources { overflow-wrap: anywhere; }
.rs-bold { white-space: nowrap; }
.rs-bold-bold { background: var(--brand); color: #fff; }
.rs-brands textarea { min-height: 64px; }
.rs-brand-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0; }
.rs-brand-viewrow { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; }
.rs-brand-view { width: auto; max-width: 100%; }
.rs-brand-opts label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: normal; }
.rs-brand-opts select { width: auto; }
.rs-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.rs-brand-grid:empty { display: none; }
.rs-brand { position: relative; display: grid; gap: 4px; align-content: start; padding: 4px; border: 2px solid transparent; border-radius: 10px; cursor: pointer; background: var(--panel); }
.rs-brand.on { border-color: var(--brand); }
.rs-brand img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 7px; display: block; background: var(--soft); }
.rs-brand input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; accent-color: var(--brand); }
.rs-brand-meta { display: grid; gap: 1px; min-width: 0; }
.rs-brand-meta strong, .rs-brand-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .rs-brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .rs-ideas { grid-template-columns: 1fr; } }
