
.rm-database-page .rm-main{display:flex;flex-direction:column;gap:14px}.rm-database-page .rm-header{aspect-ratio:1672/190}.rm-database-page .rm-sidebar{margin-top:calc(var(--rm-canvas)*.09)}.rm-database-page .rm-top-actions{left:77%;right:1%;top:13%;height:38%}.rd-hero{display:grid;grid-template-columns:1.1fr 1.5fr 1.7fr;gap:10px;align-items:center;min-height:170px}.rd-hero-art{height:150px;overflow:hidden}.rd-hero-art svg{width:100%;height:100%}.rd-intro h2{color:#6e238a;font-size:24px;line-height:1.3;margin:0 0 10px}.rd-intro p{font-size:13px;line-height:1.7;margin:4px 0}.rd-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.rd-counts>a{display:flex;gap:4px;align-items:center;justify-content:center;text-decoration:none;padding:7px 3px;border:1px solid #deb978;box-shadow:inset 0 0 0 2px white;border-radius:12px;background:linear-gradient(#fff8ff,#f1dff7);font-size:10px}.rd-counts svg{width:23px;height:25px;color:#bb76cb}.rd-counts strong{display:block;font-size:22px;color:#6c187d}.rd-search{display:flex;gap:12px;align-items:center;padding:13px}.rd-search input{min-width:0;flex:1;border:1px solid #cba5ec;border-radius:25px;padding:12px 16px;background:#fffbff;color:#5a377a}.rd-search label{display:flex;gap:8px;align-items:center;white-space:nowrap}.rd-search select{border:1px solid #cba5ec;background:#fffbff;border-radius:12px;padding:10px;color:#573276}.rd-search button{background:linear-gradient(#f397cf,#d452a0);color:white;min-width:110px}.rd-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rd-category .rm-section-title{padding:3px 6px}.rd-category .rm-section-title h2{font-size:16px;gap:4px;white-space:nowrap}.rd-category h2 small{font-size:11px}.rd-category-body{display:grid;grid-template-columns:1fr 1.1fr;gap:7px;min-height:125px}.rd-art{height:125px;overflow:hidden;border-radius:12px}.rd-art svg{height:100%;width:100%}.rd-category-body>div:last-child{display:flex;flex-direction:column;justify-content:space-between;min-width:0}.rd-category-body p{font-size:12px;line-height:1.65;margin:6px 0}.rd-category-body .rm-button{font-size:11px;white-space:nowrap;padding:4px 7px;text-align:center}.rd-note{font-size:11px;text-align:center;color:#866297}.rd-results{padding:14px}.rd-results h3{margin:10px 0 5px;font-size:15px}.rd-result-links{display:flex;gap:8px;flex-wrap:wrap}.rd-result-links a{border:1px solid #dcbbeb;padding:7px 12px;border-radius:10px;background:#faf2ff}
@media(max-width:1200px) and (min-width:761px){.rd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rd-hero{grid-template-columns:1fr 2fr}.rd-counts{grid-column:1/-1}.rd-intro h2{font-size:23px}.rd-counts>a{font-size:12px}.rd-search{flex-wrap:wrap}.rd-search input{flex-basis:50%}}
@media(max-width:760px){.rm-database-page .rm-header{height:174px;aspect-ratio:auto;background:#76509d}.rm-database-page .rm-header-art .rm-art-header-mobile{display:none!important}.rm-database-page .rm-header-art .rm-art-header{display:block!important;height:115px!important;margin-top:56px;object-fit:cover}.rm-database-page .rm-brand{width:140px;height:62px;left:44%;top:0;overflow:hidden}.rm-database-page .rm-brand>.rm-art{visibility:visible}.rm-database-page .rm-header .rm-top-actions{left:auto;right:5px;top:10px;height:43px;width:104px}.rd-hero{grid-template-columns:1fr 1.5fr;gap:8px}.rd-hero-art{height:125px}.rd-intro h2{font-size:19px}.rd-intro p{font-size:11px}.rd-counts{grid-column:1/-1;gap:5px}.rd-counts>a{font-size:10px;flex-direction:column;gap:0}.rd-counts svg{width:22px;height:23px}.rd-counts strong{font-size:21px}.rd-counts span{text-align:center}.rd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.rd-category .rm-section-title h2{font-size:13px;gap:3px}.rd-category h2 small{display:none}.rd-category-body{display:flex;flex-direction:column;gap:4px}.rd-art{height:100px}.rd-category-body p{font-size:11px;min-height:54px}.rd-category-body .rm-button{font-size:10px;min-height:28px}.rd-search{flex-wrap:wrap;gap:8px}.rd-search input{flex:1 0 100%;width:100%;padding:10px}.rd-search label{flex:1;font-size:11px;gap:5px}.rd-search select{min-width:0;width:100%;padding:8px}.rd-search button{min-width:80px}.rd-note{font-size:10px}.rm-database-page .rm-sidebar{margin-top:0}}
/* Keep shared header height; mobile uses the title crop, without a second tiny logo. */
@media(min-width:761px){.rm-database-page .rm-header{aspect-ratio:1280/205}.rm-database-page .rm-sidebar{margin-top:calc(var(--rm-canvas)*.125)}}
@media(max-width:760px){.rm-database-page .rm-header-art .rm-art-header{display:none!important}.rm-database-page .rm-header-art .rm-art-header-mobile{display:block!important;width:100%;height:105px!important;margin-top:64px}.rm-database-page .rm-brand{width:152px;height:65px;left:44%;top:0}.rm-database-page .rm-brand>.rm-art{height:80px;transform:translateY(-4px)}}
