:root{--ink:#14254a;--muted:#60718f;--blue:#294ea1;--purple:#6e46b8;--stroke:#c8d6f9;--bg:#ecf2ff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(150deg,#d9e7ff 0,#edf2ff 32%,#f2f0ff 100%);font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}a{color:inherit}button,input,select{font:inherit}button{cursor:pointer}.wrap{width:min(1280px,calc(100% - 36px));margin:auto}.nav{background:#163b90;color:#fff;position:sticky;top:0;z-index:20;box-shadow:0 5px 20px #17367b30}.nav-inner{width:min(1320px,calc(100% - 36px));margin:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:22px;font-weight:900;white-space:nowrap;letter-spacing:-.5px}.brand b{color:#f5cffc}.brand-symbol{display:grid;place-items:center;width:44px;height:44px;border:2px solid #a7bafc;border-radius:14px;color:#d3b7ff;font-size:29px}.brandlogo{height:53px;max-width:260px;object-fit:contain}nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}nav a{text-decoration:none;padding:11px 14px;border-radius:10px;font-weight:700;font-size:14px}nav a:hover,nav a.active{background:#ffffff25}.menu-toggle{display:none;background:#ffffff18;color:white;border:1px solid #ffffff66;border-radius:10px;padding:9px 15px}.hero{margin-top:26px;background:linear-gradient(110deg,#284fa3,#5146a5 63%,#7548b6);min-height:296px;border:1px solid #ffffff44;border-radius:24px;box-shadow:0 14px 35px #36468524;color:white;padding:38px 40px;display:grid;grid-template-columns:1fr 260px;gap:25px;align-items:center}.eyebrow,.kicker{font-weight:800;letter-spacing:1.8px;font-size:12px}.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.06;letter-spacing:-2px;margin:14px 0}.hero p{font-size:18px;margin:0 0 16px;color:#e8eaff}.tags{display:flex;flex-wrap:wrap;gap:8px}.tags span{padding:6px 11px;border:1px solid #ffffff66;border-radius:99px;background:#ffffff15;font-size:13px}.heroactions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}.btn{display:inline-block;text-decoration:none;border:1px solid #b9c8ee;border-radius:11px;padding:11px 18px;font-weight:800;font-size:14px;background:white;color:#263e82}.btn.primary{background:#fff;color:#293e94}.btn.outline{color:white;background:#ffffff12;border-color:#ffffff77}.btn.outline.dark{color:#2c4094;border-color:#b3bff1}.hero-logo{min-height:180px;display:grid;place-items:center}.hero-logo img{width:100%;max-height:210px;object-fit:contain}.set-placeholder{text-align:center;opacity:.65;font-size:65px;font-weight:900;line-height:.85}.set-placeholder span{font-size:22px}.set-placeholder small{display:block;font-size:15px;letter-spacing:4px;margin-top:15px}.warning{margin-top:16px;padding:14px 18px;background:#fff0cd;border:1px solid #ecce85;border-radius:13px}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:20px 0}.stat{border:1px solid var(--stroke);border-radius:17px;background:white;box-shadow:0 5px 16px #203e8210;padding:18px 16px;min-height:147px;display:flex;flex-direction:column;gap:8px}.stat small{font-weight:900;color:#53648b;font-size:11px;letter-spacing:.8px}.stat strong{font-size:29px;color:#172e6f;line-height:1.1}.stat strong.date{font-size:15px;word-break:break-word}.stat span{font-size:12px;color:var(--muted)}.source-note{background:#e1eaff;border:1px solid var(--stroke);border-radius:12px;padding:14px 18px;font-size:14px;margin-bottom:20px}.panel{background:#fff;border:1px solid var(--stroke);border-radius:20px;padding:26px;margin:20px 0;box-shadow:0 7px 20px #223f8410}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:21px}.kicker{color:#6a55b2}.heading h2{font-size:27px;margin:5px 0;letter-spacing:-.7px}.heading p{color:var(--muted);margin:3px 0}.chip{background:#e6eaff;color:#3b438d;border-radius:99px;padding:8px 13px;font-size:12px;font-weight:800;white-space:nowrap}.cardgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.card{min-width:0;border:1px solid #d8e2f5;border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#f7f9ff,#fff);display:flex;flex-direction:column}.cardimg{aspect-ratio:0.82;background:#e9eef9;display:flex;justify-content:center;align-items:center;padding:14px}.cardimg img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 7px 6px #23325a25)}.noimg{font-weight:800;color:#8999b2;text-align:center;font-size:12px;line-height:1.8}.carddata{display:flex;flex-direction:column;padding:12px;gap:5px;flex:1}.carddata b{font-size:15px;line-height:1.3}.carddata small{color:#667895;font-size:12px}.carddata strong{font-size:20px;color:#183b86;margin-top:5px}.source{font-size:11px;color:#376fac;font-weight:800}.details{border:1px solid #b9c8ed;border-radius:9px;color:#2f4c9d;background:#eef3ff;font-size:12px;font-weight:800;padding:8px;margin-top:auto}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:17px}.twocol .panel{margin:0}.emptytrend{background:#f4f6ff;border:1px dashed #d0daef;border-radius:13px;padding:22px;text-align:center;min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center}.emptytrend span{font-size:32px;color:#6d76ae}.emptytrend p{color:var(--muted);font-size:13px;max-width:300px}.ranking{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #e7ebf4}.gain{color:#148064}.loss{color:#c44765}.filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:11px;margin-bottom:20px}.filters input,.filters select{width:100%;height:47px;padding:0 12px;background:#f7f9ff;border:1px solid #beccef;border-radius:11px;color:#1d3469}.paginator{text-align:center;padding-top:22px}.more{background:#304cac;color:white}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.status-grid>div{background:#f2f5ff;border:1px solid #e1e6f7;padding:17px;border-radius:12px}.status-grid p{color:#5b6c85;font-size:14px;margin:8px 0}.fine{font-size:13px;color:var(--muted);margin-top:16px}footer{margin-top:30px;background:#173a87;color:white;padding:27px 0}.foot{display:flex;justify-content:space-between;gap:20px;align-items:center}.foot p{font-size:13px;color:#c7d4f5}dialog{border:0;border-radius:20px;padding:28px;width:min(850px,calc(100% - 30px));max-height:85vh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#0a1e53c0}.modalclose{position:absolute;right:14px;top:12px;border:0;background:#e6ecfa;border-radius:9px;padding:7px 13px}.modalgrid{display:grid;grid-template-columns:230px 1fr;gap:24px;margin-top:20px}.modalimg img{max-width:100%;max-height:370px;object-fit:contain}.modalgrid h2{font-size:27px}.modalgrid h3{margin-top:20px}@media(max-width:1080px){.cardgrid{grid-template-columns:repeat(4,minmax(0,1fr))}.stats{grid-template-columns:repeat(3,1fr)}.nav-inner{flex-wrap:wrap}nav a{padding:9px}}@media(max-width:740px){.wrap,.nav-inner{width:min(100% - 24px,1280px)}.nav-inner{min-height:68px;flex-wrap:wrap;padding:9px 0}.brand{font-size:19px}.brand-symbol{width:36px;height:36px}.menu-toggle{display:block}nav{display:none;width:100%;flex-direction:column;align-items:stretch;padding-bottom:9px}nav.open{display:flex}.hero{grid-template-columns:1fr;padding:26px 21px}.hero-logo{min-height:85px;max-height:130px;grid-row:1}.hero-logo img{max-height:120px}.hero h1{font-size:38px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:13px;min-height:125px}.stat strong{font-size:24px}.panel{padding:16px}.cardgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cardimg{padding:7px}.carddata{padding:10px}.carddata b{font-size:14px}.carddata strong{font-size:16px}.twocol,.status-grid{grid-template-columns:1fr}.twocol .panel{margin-bottom:15px}.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}.heading{align-items:flex-start;flex-wrap:wrap}.heading h2{font-size:24px}.foot{display:block}.modalgrid{grid-template-columns:1fr}.modalimg{text-align:center}.modalimg img{max-height:290px}}@media(min-width:741px) and (max-width:850px){.cardgrid{grid-template-columns:repeat(3,1fr)}}

/* V1.2 most-valuable expandable grid */
#valuable .paginator{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin-top:24px}
#valuable .top-counter{font-size:13px;color:#526b98}
#valuable #moreTop[hidden]{display:none}

.hero-logo.empty{display:grid;place-items:center}
.hero-mark{width:220px;height:160px;border-radius:26px;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.25),rgba(255,255,255,.06) 45%,rgba(255,255,255,.02) 70%);border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.card-photo{display:block;height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 7px 6px #23325a25)}
.cardimg.wide{aspect-ratio:1.25}
.details{display:block;border:1px solid #b9c8ed;border-radius:9px;color:#2f4c9d;background:#eef3ff;font-size:12px;font-weight:800;padding:8px;margin-top:auto;text-align:center;text-decoration:none}
.detailpanel{scroll-margin-top:92px}
.detail-grid{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
.detail-image-box{aspect-ratio:auto;min-height:360px;border-radius:16px}
.detail-copy h3{margin:0 0 12px;font-size:20px}
.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}
.detail-list>div{background:#f5f8ff;border:1px solid #d8e2f5;border-radius:12px;padding:14px}
.detail-list span{display:block;color:#60718f;font-size:12px;font-weight:700;margin-bottom:4px}
.detail-list b{font-size:15px}
.detail-prices{background:#fff}
.price-empty{margin:0;color:#60718f}
.emptymsg{margin:0;color:#60718f}
@media(max-width:740px){.detail-grid{grid-template-columns:1fr}.detail-list{grid-template-columns:1fr}.detail-image-box{min-height:260px}}

.cardimg .noimg{padding:12px;line-height:1.6}.hero-logo img{max-height:220px;object-fit:contain;filter:drop-shadow(0 6px 14px #17266366)}

/* V1.6: compact mobile hero, visible search action, non-JS pagination */
.search-wrap{display:flex;grid-column:span 1;min-width:0;gap:7px}
.search-wrap input{flex:1;min-width:0}
.search-submit{flex:none;border:0;border-radius:10px;background:#304cac;color:white;padding:0 16px;font-weight:800}
.more-all{background:#eef2ff;color:#243e91}
.grid-anchor{position:relative;grid-column:1/-1;height:0;margin:0;padding:0;scroll-margin-top:100px}
#directory,#valuable{scroll-margin-top:95px}
@media(max-width:740px){
 .hero{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:26px 21px}
 .hero-logo{order:-1;grid-row:auto;min-height:unset;max-height:unset;align-self:center;width:min(80%,280px);margin:0 auto 5px}
 .hero-logo img{display:block;max-width:100%;width:auto;max-height:155px;height:auto;margin:auto;object-fit:contain}
 .hero h1{margin-top:5px;font-size:clamp(32px,9vw,42px)}
 .filters{grid-template-columns:1fr 1fr}
 .search-wrap{grid-column:1/-1}
 .search-wrap input{grid-column:auto}
 .search-submit{padding:0 14px}
 .grid-anchor{scroll-margin-top:84px}
}

/* V1.7: keep readable image proportions and avoid soft browser stretching */
.cardimg img,.detail-image img{image-rendering:auto;object-fit:contain;max-width:100%;max-height:100%}
.detail-image-box img{width:auto;height:auto;max-height:510px}
