.trends-panel{min-width:0}.ref-toolbar{padding:0 24px 16px;display:grid;gap:14px}.ref-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ref-search input{flex:1;min-width:240px;padding:12px 14px;border:1px solid var(--border,#dbe4ea);border-radius:10px;font:inherit}.ref-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.ref-filters .field{min-width:0;margin:0}.ref-filters select,.ref-filters input{width:100%;min-width:0}.ref-more summary{cursor:pointer;color:#365a68;padding:8px 0}.ref-tools{display:flex;gap:8px;justify-content:flex-end}.ref-results{display:flex;justify-content:space-between;gap:12px;margin:0 0 18px;color:#506579}.ref-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px;align-items:start}.ref-card{min-width:0;border:1px solid #dce5eb;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 3px 10px #163c4c05}.ref-cover{height:148px;background:#eff5f5;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto;padding:14px 18px;gap:5px;color:#496c70}.ref-platform{font-size:12px;font-weight:700}.ref-play{grid-column:1/-1;align-self:center;font-size:34px;color:#7a9e9e}.ref-cover small{font-size:11px;align-self:center}.ref-cover a{font-size:12px;align-self:center}.ref-card-body{padding:18px}.ref-card-meta{display:flex;justify-content:space-between;gap:8px}.ref-card h2{font-size:17px;line-height:1.4;margin:12px 0 8px}.ref-card h2 button{border:0;background:none;padding:0;display:block;text-align:left;font-size:inherit;line-height:inherit;color:inherit;font-weight:700;white-space:normal}.ref-author{font-size:12px;color:#567080;margin:0 0 12px}.ref-summary{font-size:13px;line-height:1.5;color:#3d5365;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.ref-tags{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.ref-tags span{font-size:11px;background:#f2f5f8;border-radius:6px;padding:4px 7px;overflow-wrap:anywhere}.ref-metrics{display:flex;gap:18px;padding:14px 0;border-top:1px solid #edf1f5;flex-wrap:wrap}.ref-metrics span{display:flex;flex-direction:column;gap:3px}.ref-metrics strong{font-size:17px;font-variant-numeric:tabular-nums;color:#173948}.ref-metrics small{font-size:10px;color:#718592}.ref-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.ref-card-bottom small{font-size:11px;color:#6a8291}.ref-table-wrap{overflow-x:auto;border:1px solid #dce5eb;border-radius:12px}.ref-table{border-collapse:collapse;width:100%;min-width:730px}.ref-table th,.ref-table td{padding:13px;text-align:left;border-bottom:1px solid #e7edf2;font-size:13px;vertical-align:top}.ref-table th{background:#f4f8fa;font-size:11px;color:#6a7e8b}.ref-table td:first-child{max-width:340px}.ref-table button{text-align:left;white-space:normal}.ref-table small{display:block;color:#718592;margin-top:5px}.ref-detail{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:32px;margin-top:24px}.ref-detail h2{font-size:23px;line-height:1.4;overflow-wrap:anywhere}.ref-detail h3{margin:24px 0 12px}.ref-description{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.ref-properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ref-properties dt{font-size:11px;color:#718592}.ref-properties dd{margin:4px 0 0;font-size:14px;overflow-wrap:anywhere}.ref-discussion{padding:0 20px 20px;border:1px solid #e4ebef;border-radius:14px;background:#f8fafb;min-width:0}.ref-message{padding:13px 0;border-bottom:1px solid #dfe7ec;overflow-wrap:anywhere}.ref-message strong{font-size:13px}.ref-message small{display:block;color:#758794;font-size:10px;margin-top:4px}.ref-message p{font-size:13px;line-height:1.6}.ref-empty{padding:45px 20px;text-align:center;background:#f7fafb;border-radius:14px}.ref-catalogue-edit{grid-column:1/-1;border:1px solid #dce5eb;border-radius:12px;padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ref-catalogue-edit legend{padding:0 8px;font-weight:600}.ref-import-item{border:1px solid #dce5eb;border-radius:12px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.ref-import-item>label{display:flex;gap:12px;align-items:start}.ref-import-item input[type=checkbox]{width:auto;flex:none}.ref-import-item details{margin-top:14px}.ref-nearby{display:flex;align-items:start;gap:8px;padding:12px;background:#fff8e8;border-radius:8px;margin-top:8px}.ref-import-item .trend-text,.ref-detail .trend-text{white-space:pre-wrap;overflow-wrap:anywhere}.ref-toolbar[hidden]{display:none}
@media(max-width:760px){.ref-toolbar{padding:0 16px 12px}.ref-search input{min-width:100%;width:100%}.ref-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-grid{grid-template-columns:1fr}.ref-detail{grid-template-columns:1fr;gap:16px}.ref-catalogue-edit{grid-template-columns:1fr}.ref-results{flex-direction:column}.ref-properties{grid-template-columns:1fr}.ref-tools{justify-content:flex-start;flex-wrap:wrap}.ref-cover{height:132px}}

.ref-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}.ref-preview{min-width:0;background:#eef3f4;position:relative;overflow:hidden}.ref-preview iframe{display:block;width:100%;height:390px;border:0;background:#fff}.ref-embed-wide iframe{height:220px}.ref-embed-profile iframe{height:380px}.ref-embed-post iframe{height:390px}.ref-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;font-size:11px;background:#f4f7f8;color:#627a86}.ref-preview-footer a{font-weight:600}.ref-poster{position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;background:#14232c}.ref-poster img{display:block;width:100%;height:220px;object-fit:cover}.ref-poster span{position:absolute;bottom:16px;left:16px;border-radius:24px;padding:8px 14px;color:#fff;background:#153b4de8}.ref-preview-link{min-height:190px;padding:20px;display:flex;flex-direction:column;gap:16px;justify-content:center;box-sizing:border-box;overflow-wrap:anywhere}.ref-preview-link strong{font-size:20px}.ref-preview-link small{font-size:11px;color:#6e8490}.ref-preview .media-thumbnail{border:0;border-radius:0;max-width:none}.ref-preview .media-thumbnail img{height:310px}.ref-preview .media-preview>p{margin:0;padding:0 12px}.ref-preview-large iframe{height:600px}.ref-preview-large.ref-embed-wide iframe{height:auto;aspect-ratio:16/9}.ref-preview-large .media-thumbnail img{height:380px}.ref-title{font:inherit;line-height:inherit;font-weight:700;text-align:left;color:inherit;background:none;border:0;padding:0;cursor:pointer;overflow-wrap:anywhere}.ref-title:hover{text-decoration:underline;text-underline-offset:3px}.ref-title:focus-visible{outline:3px solid #4b918f;outline-offset:4px}.ref-brief{margin:14px 0}.ref-brief>small{font-size:10px;letter-spacing:.04em;color:#748591;text-transform:uppercase}.ref-summary{margin:5px 0 0}.ref-message-media{display:grid;gap:10px}.ref-message-media .media-thumbnail{min-height:56px}.ref-message-media .media-thumbnail img{height:180px}.ref-message-media .media-preview{margin-top:10px}.ref-card-bottom .button{font-size:11px;white-space:normal}.ref-detail .ref-properties{margin-top:24px}
@media(max-width:760px){.ref-grid{grid-template-columns:minmax(0,1fr)}.ref-preview iframe{height:400px}.ref-embed-wide iframe{height:auto;aspect-ratio:16/9}.ref-preview-large iframe{height:540px}.ref-preview-large .media-thumbnail img{height:300px}}

/* Keep reference cards and third-party previews narrow, without nested scrollbars. */
.ref-grid{grid-template-columns:repeat(auto-fill,minmax(0,min(100%,300px)))}
.ref-preview{width:min(100%,300px);max-width:300px}
.ref-preview iframe{overflow:hidden}
.ref-preview-footer{flex-wrap:wrap}
.ref-preview-footer a{overflow-wrap:anywhere}
@media(max-width:760px){.ref-grid{grid-template-columns:minmax(0,min(100%,300px))}}

.ref-poster-empty{min-height:220px;display:grid;place-items:center}
.ref-poster-empty span{position:static}
.ref-detail-dialog,.ref-player-dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #c1d0d9;border-radius:14px;padding:20px;background:#fff;color:#16344a}
.ref-detail-dialog{width:min(760px,calc(100vw - 24px))}
.ref-detail-dialog::backdrop,.ref-player-dialog::backdrop{background:#061b2bd9}
.ref-detail-head,.ref-player-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.ref-detail-head strong,.ref-player-head strong{overflow-wrap:anywhere}
.ref-detail-dialog .ref-detail{display:block;margin-top:0}
.ref-detail-dialog .ref-discussion{margin-top:24px;padding:14px 18px}
.ref-discussion>summary{cursor:pointer;font-weight:600}
.ref-discussion:not([open]){padding-bottom:14px}
.ref-player-dialog{width:min(560px,calc(100vw - 24px))}
.ref-player-dialog iframe{display:block;width:min(100%,300px);height:min(70dvh,533px);border:0;margin:auto;background:#fff;overflow:hidden}
.ref-player-dialog.ref-embed-wide iframe{width:100%;height:auto;aspect-ratio:16/9}
.ref-player-dialog .ref-preview-footer{margin-top:12px}
@media(max-width:760px){.ref-detail-dialog,.ref-player-dialog{padding:12px}.ref-detail-dialog .ref-properties{grid-template-columns:1fr}}
/* Gallery: scan many references before opening one in a modal. */
.ref-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px}
.ref-card{border-radius:10px;box-shadow:none}
.ref-card-body{padding:10px}.ref-card h2{font-size:13px;line-height:1.3;margin:7px 0 5px}.ref-author{font-size:11px;margin-bottom:5px}
.ref-preview:not(.ref-preview-large) .ref-poster img,.ref-preview:not(.ref-preview-large) .media-thumbnail img{height:138px;object-fit:cover}
.ref-preview:not(.ref-preview-large) .ref-poster{min-height:138px}.ref-preview:not(.ref-preview-large).ref-preview-link{min-height:138px;padding:10px;gap:7px}
.ref-preview:not(.ref-preview-large).ref-preview-link strong{font-size:13px}
.ref-card .ref-summary{-webkit-line-clamp:2;font-size:11px}.ref-card .ref-tags{margin:6px 0}.ref-card .ref-tags span{font-size:10px;padding:2px 5px}
.ref-card .ref-metrics{gap:9px;padding:7px 0}.ref-card .ref-metrics strong{font-size:13px}.ref-card .ref-metrics small{font-size:9px}
.ref-card .ref-card-bottom{gap:5px;flex-wrap:wrap}.ref-card .ref-card-bottom .button{min-height:28px;padding:4px 6px;font-size:10px}
.ref-toolbar{gap:8px;padding:0 16px 10px}.ref-search input{padding:7px 10px;min-height:34px}.ref-filters{gap:7px}.ref-filters .field{gap:3px}.ref-filters .field span{font-size:11px}.ref-filters select{min-height:34px;padding:6px 8px}.ref-more summary{padding:3px 0}.ref-tools .button{min-height:30px;padding:4px 8px}
.ref-table th{position:sticky;top:0;background:#f4f8fa}.ref-table th,.ref-table td{padding:8px 10px}.ref-table th:first-child,.ref-table td:first-child{position:sticky;left:0;background:#fff}.ref-table th:first-child{background:#f4f8fa}
@media(max-width:760px){.ref-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr))}.ref-results{flex-wrap:wrap}}
.ref-platform-icon{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid #d8e4e8;border-radius:7px;background:#f2f7f8;color:#24485a;font-size:16px;font-weight:750;line-height:1}
.ref-card-meta{align-items:center}.ref-card-meta small{margin-right:auto;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ref-card-actions{display:flex;gap:2px;flex:none}.ref-icon-action{display:grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#476474;font-size:17px;line-height:1}
.ref-icon-action:hover{border-color:#ccdce2;background:#eef5f6}.ref-icon-action:last-child:hover{color:#a43636;background:#fff0ef;border-color:#efc8c6}
.ref-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.ref-platform-icon[data-platform="Instagram"]{color:#a93683;background:#fff0f7}.ref-platform-icon[data-platform="YouTube"]{color:#d12727;background:#fff3f1}.ref-platform-icon[data-platform="TikTok"]{color:#f7ffff;background:#17252b}.ref-platform-icon[data-platform="Facebook"]{color:#2467bb;background:#eff5ff}.ref-platform-icon[data-platform="Telegram"]{color:#1684b8;background:#eaf8ff}.ref-platform-icon[data-platform="Threads"],.ref-platform-icon[data-platform="X"]{color:#171c22;background:#f2f3f4}.ref-platform-icon[data-platform="Reddit"]{color:#b33b18;background:#fff0e9}.ref-platform-icon[data-platform="VK"]{color:#1875bd;background:#eef6ff}
.ref-viewbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px 10px;flex-wrap:wrap}.ref-category-tabs,.ref-layout-tabs{display:flex;gap:4px;align-items:center}.ref-category-tabs{overflow-x:auto;max-width:100%;padding-bottom:2px}.ref-view-option{flex:none;border:1px solid #d9e4e9;border-radius:7px;background:#fff;color:#365569;padding:6px 10px;min-height:32px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.ref-view-option[aria-selected="true"],.ref-view-option[aria-pressed="true"]{background:#173f50;border-color:#173f50;color:#fff;font-weight:700}.ref-view-option:focus-visible{outline:3px solid #4b918f;outline-offset:2px}.ref-card-body>.button{width:100%;justify-content:center;min-height:30px;margin-top:5px}.ref-account-preview{background:linear-gradient(135deg,#e9f4f4,#f7f2fb)}.ref-account-preview>.ref-platform-icon{width:38px;height:38px;font-size:24px}.ref-table{min-width:1060px}.ref-table td:first-child,.ref-table th:first-child{width:76px;max-width:76px}.ref-table-thumbnail{width:62px;height:46px;border-radius:5px;background:#edf3f5;overflow:hidden;display:grid;place-items:center}.ref-table-thumbnail img{width:100%;height:100%;object-fit:cover}.ref-table-title{padding:0;border:0;background:none;color:#173f50;font:inherit;font-weight:700;cursor:pointer;text-align:left}.ref-table-title:hover{text-decoration:underline}.ref-table td:last-child .button{white-space:nowrap}.ref-table td:nth-child(5),.ref-table td:nth-child(6),.ref-table td:nth-child(7){font-variant-numeric:tabular-nums;white-space:nowrap}@media(max-width:760px){.ref-viewbar{align-items:stretch}.ref-layout-tabs{margin-left:0}}
.ref-table-thumbnail .media-thumbnail{width:62px;height:46px;min-height:0;padding:0;border:0;border-radius:0}.ref-table-thumbnail .media-thumbnail img{height:46px;object-fit:cover}.ref-table-thumbnail .media-thumbnail span,.ref-table-thumbnail .media-preview>p{display:none}
.ref-layout-tabs{flex-wrap:nowrap;white-space:nowrap}.ref-layout-tabs .ref-view-option{white-space:nowrap}
.ref-table-actions{display:flex;align-items:center;gap:4px;white-space:nowrap}.ref-table-actions .button{flex:none}.ref-table-actions .ref-icon-action{flex:none;width:30px;height:30px}
.ref-tag-chips{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}.ref-tag-chips button,.ref-tag-chips span{border:1px solid #d4e4e8;border-radius:999px;background:#eef6f6;color:#245262;padding:2px 6px;font:inherit;font-size:10px;line-height:1.3}.ref-tag-chips button{cursor:pointer}.ref-tag-chips button:hover{background:#dceff0}.ref-tag-chips button:focus-visible{outline:2px solid #4b918f;outline-offset:2px}.ref-table{min-width:1190px}.ref-table td:nth-child(6),.ref-table td:nth-child(7),.ref-table td:nth-child(8){font-variant-numeric:tabular-nums;white-space:nowrap}.ref-table td:nth-child(5){min-width:110px}.ref-tag-editor{display:grid;gap:6px}.ref-tag-entry{display:flex;gap:6px;align-items:center}.ref-tag-entry input{min-width:0;flex:1}.ref-tag-entry .button{flex:none}.ref-edit-tags{display:flex;flex-wrap:wrap;gap:5px}.ref-edit-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 6px;border-radius:7px;background:#eaf4f5;color:#245262;font-size:12px}.ref-edit-tag button{border:0;background:none;color:inherit;cursor:pointer;font-size:16px;line-height:1}.ref-tag-editor small{font-size:10px}
.ref-table td:nth-child(5){font-variant-numeric:normal;white-space:normal}
/* Use the full gallery width with two equally sized finding cards per row. */
.ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ref-card .ref-preview{width:100%;max-width:none}
@media(max-width:360px){.ref-grid{grid-template-columns:minmax(0,1fr)}}
