.hubCatalog{--hc-border:#28364d;--hc-muted:#8c9bb0;--hc-panel:#101a2b;color:#edf3ff;padding-bottom:32px}
.hcHero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:4px 0 26px}
.hcEyebrow{font-size:11px;color:#81a9e4;letter-spacing:.14em;font-weight:800}
.hcHero h1{font-size:32px;line-height:1.2;margin:9px 0;color:#f2f6ff}
.hcHero p,.hcSectionTitle p{color:var(--hc-muted);font-size:13px;margin:0;line-height:1.6}
.hcHeroActions,.hcHistoryActions{display:flex;gap:10px;flex-wrap:wrap}
.hcFilters{display:grid;grid-template-columns:minmax(190px,1.4fr) repeat(4,minmax(120px,1fr)) auto;gap:12px;padding:18px;border:1px solid var(--hc-border);border-radius:18px;background:var(--hc-panel);align-items:end}
.hcFilters label,.hcModalFields label{display:grid;gap:8px;color:#a9b7cc;font-size:12px;font-weight:700;min-width:0}
.hcFilters .inp,.hcModalFields .inp{width:100%;box-sizing:border-box;min-width:0;font-size:13px;color:#edf3ff;background:#0c1423;border:1px solid #2c3c56;border-radius:11px;padding:11px 12px;height:43px}
.hcFilters .inp:focus,.hcModalFields .inp:focus{outline:2px solid #367bd3;outline-offset:1px}
.hcSectionTitle{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 16px}
.hcSectionTitle h2{font-size:18px;color:#eaf0fc;margin:0 0 3px;font-weight:800}
.hcSectionTitle>span{font-size:12px;color:var(--hc-muted);border:1px solid var(--hc-border);padding:5px 10px;border-radius:99px}
.hcGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}
.hcTemplate{min-width:0;border:1px solid var(--hc-border);background:var(--hc-panel);border-radius:17px;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.hcTemplate:hover{border-color:#466c9e;box-shadow:0 8px 24px #0003}
.hcTemplateTop{padding:12px 14px 5px;display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.hcTemplateTop strong{font-size:12px;color:#9dadc4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.hcEdit{flex:none;display:grid;place-items:center;background:transparent;border:1px solid #32435d;color:#a9c7f0;width:27px;height:27px;border-radius:8px;cursor:pointer;font-size:16px}
.hcEdit:hover{background:#1d3555;color:white}
.hcTemplateTags{padding:4px 14px 13px;color:#e7effc;font-size:13px;font-weight:800;letter-spacing:.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcPreview{position:relative;aspect-ratio:390/440;background:#09121f;border-top:1px solid var(--hc-border);border-bottom:1px solid var(--hc-border);overflow:hidden}
.hcPreview img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;background:#e6eaf0}
.hcPreview img[hidden]{display:none}.hcPreviewMessage[hidden]{display:none}
.hcPreviewMessage{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;padding:24px;box-sizing:border-box;color:#8a9ab2;font-size:13px;text-align:center;line-height:1.5}
.hcLanguage{position:absolute;bottom:12px;right:12px;background:#101c2eed;border:1px solid #506888a6;border-radius:8px;color:#dfeafb;padding:5px 8px;font-size:10px;font-weight:800;letter-spacing:.06em}
.hcTemplateActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px}
.hcTemplateActions .btn{padding:10px 6px;font-size:13px;min-width:0;border-radius:10px}
.hcEmpty{grid-column:1/-1;padding:52px 24px;text-align:center;border:1px dashed var(--hc-border);border-radius:16px;color:var(--hc-muted);font-size:14px}
.hcSpinner{width:24px;height:24px;border:2px solid #344862;border-top-color:#68a5ff;border-radius:50%;animation:hcSpin 1s linear infinite}
@keyframes hcSpin{to{transform:rotate(360deg)}}
.hcHistoryTitle{margin-top:36px}.hcHistoryTitle p{margin-top:6px;font-size:12px}
.hcHistoryTable{border:1px solid var(--hc-border);border-radius:15px;overflow:auto;background:var(--hc-panel)}
.hcHistoryTable table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
.hcHistoryTable th{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#8092ac;padding:14px 16px;background:#0c1524}
.hcHistoryTable td{padding:16px;vertical-align:top;border-top:1px solid var(--hc-border);line-height:1.6}
.hcHistoryTable td:first-child{min-width:180px;width:27%}.hcHistoryTable td:last-child{width:220px}
.hcHistoryMeta{display:block;font-size:11px;color:var(--hc-muted);margin-top:5px;word-break:break-word}
.hcHistoryActions{gap:8px}.hcWarnings{font-size:11px;color:#8fa3c0;margin-top:8px;max-width:600px}.hcWarnings summary{cursor:pointer}
.hcHistoryEmpty{padding:26px}
.hcModal{width:min(740px,95vw)!important;max-height:92vh;overflow:auto;box-sizing:border-box}
.hcModal .hubRow{display:flex;justify-content:space-between;align-items:center;gap:16px}.hcModal h2{margin:0 0 18px;font-size:23px}
.hcModal .hubClose{width:32px;height:32px;flex:none;border:1px solid #34455f;background:#162239;border-radius:9px;color:#ccd8ed;font-size:21px;cursor:pointer}
.hcModal .hubActions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:20px}
.hcModalTemplate{display:flex;flex-direction:column;gap:7px;padding:14px 16px;border:1px solid #2a456b;background:#10213a;border-radius:12px;margin-bottom:20px}
.hcModalTemplate strong{font-size:15px}.hcModalTemplate span{font-size:11px;color:#a7c6f0;font-weight:800;letter-spacing:.07em}
.hcModalFields{display:grid;grid-template-columns:1fr 1fr;gap:17px}.hcModalFields .hcFull{grid-column:1/-1}
.hcModalFields textarea.inp{height:auto;min-height:96px;resize:vertical}.hcModalFields input[type=file]{height:auto;min-height:43px;padding:9px}
.hcModalFields small{font-size:11px;font-weight:400;color:#8094b0;line-height:1.4}
.hcSummary{margin-top:18px;border-radius:12px;border:1px solid #2a3b53;background:#101d30;padding:13px 15px;color:#a6b8d1;font-size:12px;line-height:1.7}
.hcUploadState{margin-top:12px;font-size:12px;color:#90bdfb}
.hubCatalog .hubError,.hcModal .hubError{background:#3b1c28;border:1px solid #723343;color:#ffb9c1;border-radius:10px;padding:12px;margin:10px 0;font-size:12px}
.hubCatalog .hubSuccess{background:#103727;border:1px solid #286647;color:#9fe2bc;border-radius:10px;padding:13px;margin:12px 0;font-size:13px}
.hubCatalog .hubBadge{display:inline-block;border:1px solid #405470;border-radius:99px;padding:3px 8px;font-size:10px;margin:0 4px 4px 0;color:#c8d7eb}
.hubCatalog .hubBadge.good{border-color:#286448;background:#133529;color:#91d7b2}.hubCatalog .hubBadge.bad{border-color:#77364a;background:#391d2a;color:#f4a9ba}.hubCatalog .hubBadge.warn{border-color:#6f5930;background:#312a1d;color:#e0c284}
@media(min-width:1700px){.hcGrid{grid-template-columns:repeat(auto-fill,minmax(275px,1fr))}}
@media(max-width:1150px){.hcFilters{grid-template-columns:repeat(3,minmax(0,1fr))}.hcSearch{grid-column:span 2}.hcGrid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}}
@media(max-width:680px){.hcHero{align-items:flex-start;flex-direction:column;gap:16px}.hcHero h1{font-size:27px}.hcFilters{grid-template-columns:1fr 1fr;padding:13px;gap:10px}.hcGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hcTemplateTop{padding:9px 9px 3px}.hcTemplateTags{font-size:10px;padding:4px 9px 10px}.hcTemplateActions{padding:9px;gap:6px}.hcTemplateActions .btn{font-size:11px;padding:9px 3px}.hcModalFields{grid-template-columns:1fr}.hcModalFields .hcFull{grid-column:auto}.hcModal .hubActions .btn{width:100%}}
@media(max-width:390px){.hcGrid{grid-template-columns:1fr}.hcPreview{aspect-ratio:390/380}}

.hcPreviewLink{display:block;width:100%;height:100%;cursor:zoom-in;color:inherit;text-decoration:none}
.hcPreviewLink:focus-visible{outline:3px solid #68a5ff;outline-offset:-3px}
.hcPreview .hcLanguage{pointer-events:none}
