.cg,.cg-dialog{--cg-accent:var(--purple,#7c3aed);--cg-button:var(--cc-accent,#6d28d9);--cg-button-ink:var(--cc-on-accent,#fff);color:var(--ink);font-size:1rem;line-height:1.5}.cg{min-width:0;margin-top:1.5rem}.cg-accent-blue{--cg-button-ink:#fff;--cg-button:#225bc1;--cg-accent:#3673df}.cg-accent-green{--cg-button-ink:#fff;--cg-button:#0b6c50;--cg-accent:#12815f}.cg-accent-rose{--cg-button-ink:#fff;--cg-button:#b02069;--cg-accent:#c43d85}.cg button,.cg-dialog button,.cg input,.cg select,.cg textarea,.cg-dialog input,.cg-dialog textarea{font:inherit}.cg button,.cg-dialog button{border:1px solid var(--line);background:var(--panel);min-height:44px;color:var(--ink);cursor:pointer;border-radius:12px;padding:.55rem .85rem}.cg button:hover,.cg-dialog button:hover{border-color:var(--cg-accent)}.cg button:disabled,.cg-dialog button:disabled{cursor:default;opacity:.55}.cg button:focus-visible,.cg-dialog button:focus-visible,.cg input:focus-visible,.cg-dialog input:focus-visible,.cg select:focus-visible,.cg textarea:focus-visible{outline:3px solid var(--cg-accent);outline-offset:3px}.cg .cg-primary,.cg-dialog .cg-primary{background:var(--cg-button);color:var(--cg-button-ink);border-color:var(--cg-button);font-weight:700}.cg-heading{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;display:flex}.cg-heading h2{margin:.3rem 0;font-size:clamp(1.5rem,4vw,2rem)}.cg-heading p{color:var(--muted);margin:0}.cg-badge{white-space:nowrap;background:var(--surface-muted);border:1px solid var(--line);border-radius:30px;padding:.5rem .8rem;font-size:.85rem}.cg-toolbar,.cg-view-bar,.cg-actions,.cg-pagination{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.cg-toolbar,.cg-view-bar{margin:.9rem 0}.cg-view-bar{justify-content:space-between}.cg-view-bar [role=group]{flex-wrap:wrap;gap:.4rem;display:flex}.cg button[aria-pressed=true]{border-color:var(--cg-accent);background:var(--surface-muted);font-weight:700}.cg label,.cg-dialog label{flex-direction:column;gap:.35rem;font-size:.9rem;font-weight:600;display:flex}.cg input:not([type=checkbox]):not([type=range]),.cg select,.cg textarea,.cg-dialog input:not([type=checkbox]),.cg-dialog textarea{background:var(--field);width:100%;min-height:44px;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:.65rem}.cg-view-select{flex:1;min-width:min(100%,220px)}.cg .cg-check,.cg-dialog .cg-check{flex-direction:row;align-items:center;gap:.7rem;margin:.7rem 0;font-weight:500}.cg input[type=checkbox],.cg-dialog input[type=checkbox]{width:21px;height:21px;accent-color:var(--cg-accent);flex-shrink:0}.cg-cards{grid-template-columns:repeat(var(--cg-columns,3),minmax(0,1fr));gap:1.1rem;margin-top:1.3rem;display:grid}.cg-card{border:1px solid var(--line);background:var(--panel);min-width:0;box-shadow:0 6px 22px var(--shadow);border-radius:18px;overflow:hidden}.cg .cg-image,.cg-dialog .cg-image{width:100%;height:var(--cg-image-height,320px);background:var(--surface-soft);opacity:1;border:0;border-radius:0;justify-content:center;align-items:center;padding:1rem;display:flex;overflow:hidden}.cg-bg-soft .cg-image{background:var(--surface-muted)}.cg-image img{object-fit:contain;object-position:center;width:100%;max-width:100%;height:100%;max-height:100%;display:block}.cg-placeholder{max-width:190px;color:var(--muted);flex-direction:column;align-items:center;font-size:.8rem;display:flex}.cg-placeholder>span{color:var(--cg-accent);opacity:.5;font-size:3rem}.cg-card-copy{padding:1rem}.cg-card-copy h3{overflow-wrap:anywhere;margin:0 0 .7rem;font-size:1.05rem;line-height:1.4}.cg-value{overflow-wrap:anywhere;flex-direction:column;gap:.1rem;margin:.35rem 0;display:flex}.cg-value small{color:var(--muted);font-size:.7rem}.cg-value span{white-space:pre-wrap;font-size:.9rem}.cg-value-price span{color:var(--cg-accent);font-size:1.15rem;font-weight:800}.cg-card-tools{flex-wrap:wrap;gap:.4rem;margin-top:.7rem;display:flex}.cg-card-tools button{padding:.4rem .55rem;font-size:.8rem}.cg-dense .cg-card-copy{padding:.7rem}.cg-dense .cg-value{margin:.15rem 0}.cg-dense .cg-value small{display:none}.cg-list .cg-cards{grid-template-columns:1fr}.cg-list .cg-card{grid-template-columns:130px minmax(0,1fr);display:grid}.cg-list .cg-image{align-self:start;height:180px}.cg-list .cg-card-copy{flex-wrap:wrap;align-content:center;gap:.7rem;display:flex}.cg-list .cg-card-copy h3{flex-basis:100%;margin:0}.cg-list .cg-value{min-width:110px}.cg-list .cg-card-tools{flex-basis:100%}.cg-settings{border:1px solid var(--line);background:var(--panel);border-radius:18px;margin:1rem 0;padding:1.3rem}.cg-settings header{justify-content:space-between;align-items:center;display:flex}.cg-settings fieldset{border:0;border-top:1px solid var(--line);margin:.5rem 0;padding:1rem 0}.cg-settings legend{padding-right:.7rem;font-weight:700}.cg-detail-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:.75rem 0;display:grid}.cg-full{grid-column:1/-1}.cg-muted{color:var(--muted);margin:.7rem 0;font-size:.85rem}.cg-field-table>div{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1.6fr) 1fr 1fr;align-items:center;gap:.5rem;padding:.55rem 0;font-size:.85rem;display:grid}.cg-field-table input{justify-self:center}.cg-field-table strong{text-align:center;font-size:.75rem}.cg-savebar{z-index:3;border:1px solid var(--cg-accent);background:var(--panel);box-shadow:0 5px 30px var(--shadow);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.7rem;padding:.7rem 1rem;display:flex;position:sticky;top:4px}.cg-savebar span{font-size:.85rem}.cg-error{background:var(--surface-muted);color:var(--ink);border:1px solid #d45252;border-radius:12px;padding:.85rem}.cg-notice{background:var(--surface-muted);border-radius:12px;padding:.8rem;font-size:.9rem}.cg-empty{text-align:center;border:1px dashed var(--line);background:var(--panel);border-radius:20px;margin:1.5rem 0;padding:3rem 1rem}.cg-empty>span{color:var(--cg-accent);font-size:3rem}.cg-empty p{color:var(--muted);max-width:560px;margin:.8rem auto 1.3rem}.cg-pagination{justify-content:center;margin:1.5rem 0}.cg-dialog{border:1px solid var(--line);background:var(--panel);overscroll-behavior:contain;border-radius:20px;width:min(760px,100% - 24px);max-height:90dvh;margin:auto;padding:1.2rem;position:fixed;inset:0;overflow:auto}.cg-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#090512b8}.cg-dialog>header{justify-content:space-between;align-items:center;gap:.7rem;margin-bottom:1rem;display:flex}.cg-dialog>header h3{margin:0;font-size:1.3rem}.cg-dialog>header button{font-size:1.5rem}.cg-dialog details{border:1px solid var(--line);border-radius:14px;margin:1rem 0;padding:1rem}.cg-dialog summary{cursor:pointer;min-height:32px;font-weight:700}.cg-dialog footer{justify-content:flex-end;margin-top:1rem}.cg-selection{background:var(--surface-muted);border-radius:12px;flex-direction:column;margin:1rem 0;padding:1rem;display:flex}.cg-selection span{color:var(--muted);font-size:.9rem}.cg-editor-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.cg-editor-photos>div{border:1px solid var(--line);border-radius:14px;padding:.7rem}.cg-editor-photos .cg-image{height:220px}.cg-editor-photos strong,.cg-editor-photos small{display:block}.cg-editor-photos small{color:var(--muted)}.cg-editor-photos .cg-check{font-size:.8rem}.cg-upload{flex-wrap:wrap;gap:.7rem;margin:1rem 0;display:flex}.cg-upload label{border:1px dashed var(--cg-accent);border-radius:12px;flex:1;min-width:200px;padding:.75rem}.cg-dialog .cg-upload input{max-width:100%;font-size:.75rem}.cg-search-results{gap:.6rem;margin:1rem 0;display:grid}.cg-search-results button{text-align:left;flex-direction:column;gap:.2rem;display:flex}.cg-search-results span,.cg-search-results small{color:var(--muted);font-size:.8rem}.cg-lightbox .cg-image{background:var(--surface-soft);height:min(65dvh,750px);padding:0}.cg-moderation .cg-cards{--cg-columns:3;--cg-image-height:250px}@media (width<=900px){.cg-cards{grid-template-columns:repeat(min(var(--cg-columns,3),3),minmax(0,1fr));gap:.7rem}.cg-heading{flex-wrap:wrap}}@media (width<=640px){.cg-cards{grid-template-columns:1fr}.cg-compact .cg-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-compact .cg-image{height:min(var(--cg-image-height),230px);padding:.5rem}.cg-compact .cg-card-copy{padding:.7rem}.cg-compact h3{font-size:.9rem}.cg-list .cg-cards{grid-template-columns:1fr}.cg-list .cg-card{grid-template-columns:90px minmax(0,1fr)}.cg-list .cg-image{height:140px;padding:.35rem}.cg-list .cg-value{min-width:80px}.cg-heading h2{font-size:1.5rem}.cg-toolbar>.cg-primary{width:100%}.cg-detail-fields,.cg-editor-photos{grid-template-columns:1fr}.cg-settings{padding:1rem}.cg-field-table>div{grid-template-columns:minmax(0,1.5fr) .8fr .8fr}.cg-moderation .cg-cards{grid-template-columns:1fr}}
