@font-face{font-family:classy;src:url('https://vkfonts.storage.googleapis.com/classy.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--bg:#f4f5f7;--surface:#fff;--ink:#17181a;--muted:#777c84;--line:#e1e3e7;--soft:#f0f1f3;--radius:14px;--shadow:0 18px 55px rgba(18,22,28,.14)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;font-family:classy,system-ui,sans-serif;background:var(--bg);color:var(--ink)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.top{position:sticky;top:0;z-index:20;min-height:72px;background:rgba(255,255,255,.96);backdrop-filter:blur(15px);border-bottom:1px solid var(--line);padding:12px 20px;display:flex;align-items:center;gap:10px}.brand{font-size:23px;font-weight:700;flex:0 0 auto}.search-wrap{display:flex;flex:1;min-width:180px}.search-wrap input{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;padding:0 13px;background:#fff;outline:0}.search-wrap input:focus{border-color:#a7abb1;box-shadow:0 0 0 3px rgba(23,24,26,.06)}.select-host{width:150px;flex:0 0 150px}.select{position:relative}.select-trigger{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 11px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.select.open .select-trigger{border-color:#a7abb1;box-shadow:0 0 0 3px rgba(23,24,26,.06)}.select-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:11px;padding:5px;box-shadow:var(--shadow);display:none;z-index:60}.select.open .select-menu{display:block}.select-option{width:100%;height:38px;border:0;border-radius:8px;background:transparent;text-align:left;padding:0 9px;font-size:11px}.select-option:hover,.select-option.selected{background:#f0f1f3}.button{min-height:40px;border:1px solid #d8dbe0;border-radius:10px;background:#fff;padding:0 13px;font-size:11px;font-weight:600;color:var(--ink)}.button:hover{background:#f0f1f3}.button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.top #selectMode.active{background:var(--ink);border-color:var(--ink);color:#fff}.button.primary:hover{background:#2b2d30}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:17px}.mobile-filter{display:none}.count{font-size:10px;color:var(--muted);white-space:nowrap}.selection-bar{position:sticky;top:72px;z-index:19;display:flex;align-items:center;gap:7px;padding:8px 20px;background:#fff;border-bottom:1px solid var(--line);overflow:auto}.selection-bar>span{font-size:11px;font-weight:600;margin-right:auto;white-space:nowrap}.selection-bar .button{min-height:36px;white-space:nowrap}.hidden{display:none!important}main{max-width:1500px;margin:0 auto}.desktop-chips{display:flex;gap:7px;flex-wrap:wrap;padding:16px 20px 4px}.chips button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;font-size:10px}.chips button.active{background:var(--ink);border-color:var(--ink);color:#fff}.toolbar-note{min-height:20px;padding:4px 20px;color:var(--muted);font-size:10px}#grid{padding:10px 20px 34px;display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}.icon-card{position:relative;min-width:0;min-height:174px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;align-items:center;cursor:pointer;outline:0;transition:.16s}.icon-card:hover,.icon-card:focus-visible{border-color:#b5b8bd;transform:translateY(-1px);box-shadow:0 7px 20px rgba(20,23,28,.05)}.icon-card.selected{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}.card-preview{height:94px;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.card-preview delluna-icon{width:50px;height:50px;display:block;line-height:0}.card-preview delluna-icon svg{width:100%;height:100%;display:block;overflow:visible}.name{width:100%;margin-top:9px;text-align:center;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.check{position:absolute;left:9px;top:9px;width:19px;height:19px}.icon-favorite{position:absolute;right:8px;top:8px;width:28px;height:28px;border:1px solid transparent;background:#fff;border-radius:8px;color:#b8bbc0;font-size:13px;z-index:3}.icon-favorite.active,.icon-favorite:hover{color:var(--ink);border-color:var(--line)}.empty-state{background:#fff;border:1px dashed #cfd2d7;border-radius:14px;padding:60px 20px;text-align:center;color:var(--muted)}.empty-state.wide{grid-column:1/-1}.empty-icon{width:46px;height:46px;margin:0 auto 12px;border-radius:50%;background:#f0f1f3;display:flex;align-items:center;justify-content:center;color:var(--ink);font-size:18px}.empty-state h3{margin:0;color:var(--ink);font-size:16px}.empty-state p{font-size:11px;margin:7px 0 18px}.filter-drawer{display:none}.app-dialog{border:0;padding:0;background:transparent;max-width:none;max-height:none}.app-dialog::backdrop{background:rgba(16,18,22,.56);backdrop-filter:blur(4px)}.dialog-panel{width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;box-shadow:var(--shadow);padding:20px}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.dialog-head h2{font-size:19px;margin:3px 0 0}.detail-preview{height:170px;border:1px solid var(--line);border-radius:13px;background:#fafbfc;display:flex;align-items:center;justify-content:center;overflow:hidden}.detail-preview delluna-icon{width:96px;height:96px;display:block}.detail-preview delluna-icon svg{width:100%;height:100%;display:block}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.meta-grid>div{background:#f7f8f9;border-radius:9px;padding:9px;min-width:0}.meta-grid span{display:block;color:var(--muted);font-size:9px;margin-bottom:4px}.meta-grid b{display:block;font-size:10px;overflow-wrap:anywhere;line-height:1.4}.dialog-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.toast-host{position:fixed;right:18px;bottom:18px;z-index:100;display:flex;flex-direction:column;gap:8px;align-items:flex-end}.toast{background:var(--ink);color:#fff;padding:11px 14px;border-radius:10px;box-shadow:var(--shadow);font-size:10px;max-width:min(420px,calc(100vw - 36px))}.toast.success{background:#155b3b}.toast.error{background:#8b231b}
@media(max-width:980px){.top{flex-wrap:wrap;padding:10px 14px}.mobile-filter{display:inline-flex}.brand{font-size:21px}.search-wrap{order:10;flex-basis:100%;min-width:0}.select-host{width:135px;flex:0 0 135px}.selection-bar{top:121px;padding:7px 14px}.desktop-chips{display:none}main{padding:0}.filter-drawer{position:fixed;left:0;top:0;bottom:0;width:min(310px,88vw);background:#fff;z-index:70;display:block;transform:translateX(-105%);transition:.18s;box-shadow:var(--shadow);overflow:auto}.filter-drawer.open{transform:translateX(0)}.drawer-head{height:68px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.drawer-section{padding:18px 14px}.drawer-section .chips{display:flex;padding:12px 0;gap:7px}.drawer-section .chips button{font-size:10px}#grid{padding:10px 14px 28px;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.icon-card{min-height:154px;padding:9px}.card-preview{height:76px}.card-preview delluna-icon{width:46px;height:46px}.name{font-size:10px}.icon-favorite{opacity:1}}
@media(max-width:620px){.top{gap:7px}.brand{margin-right:auto}.count{display:none}.select-host{width:112px;flex-basis:112px}.select-host:nth-of-type(2){display:none}.search-wrap{order:20}.selection-bar{top:118px}.selection-bar .button{font-size:9px;padding:0 10px}#grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:9px}.icon-card{min-height:150px}.card-preview{height:70px}.card-preview delluna-icon{width:42px;height:42px}.detail-preview{height:145px}.detail-preview delluna-icon{width:78px;height:78px}.meta-grid{grid-template-columns:1fr}.dialog-panel{width:calc(100vw - 18px);padding:14px;border-radius:16px}.dialog-actions .button{flex:1}.toast-host{left:9px;right:9px;align-items:stretch}.toast{max-width:none}}


/* V4 compact product controls */
.ui-icon,.button>svg,.icon-button>svg,.select-trigger svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.button{min-height:36px;padding:0 11px;font-size:10px}.icon-button{width:36px;height:36px}.search-wrap input{height:38px;font-size:11px;padding-inline:11px}.select-trigger{height:38px;font-size:11px}.select-option{font-size:10px}.top{min-height:66px;padding:10px 16px;gap:8px}.brand{font-size:21px}.select-host{width:136px;flex-basis:136px}.icon-card{min-height:164px}.card-preview{height:78px}.card-preview delluna-icon{width:44px;height:44px}.detail-preview{height:140px}.detail-preview delluna-icon{width:84px;height:84px}
@media(max-width:900px){.top{min-height:62px;padding:9px 12px}.search-wrap input{height:36px}.select-host{width:124px;flex-basis:124px}.top .button{height:36px}.selection-bar{top:62px}.card-preview delluna-icon{width:42px;height:42px}}
@media(max-width:620px){.top{display:grid;grid-template-columns:36px minmax(0,1fr) 100px 36px;align-items:center}.brand{font-size:19px}.search-wrap{grid-column:1/-1;grid-row:2;order:initial;min-width:0}.select-host{width:100px;flex-basis:100px}.top .select-host:nth-of-type(2){display:block}.top #selectMode{width:36px;padding:0;font-size:0}.top #selectMode:after{content:none}.search-wrap input{height:36px}.selection-bar{top:112px}.selection-bar .button{min-height:34px}.icon-card{min-height:146px}.card-preview{height:66px}.card-preview delluna-icon{width:38px;height:38px}.name{font-size:10px}}
@media(max-width:620px){
  .top{grid-template-columns:36px minmax(0,1fr) 88px 88px 36px;grid-template-rows:36px 36px;align-items:center}
  .top .mobile-filter{grid-column:1;grid-row:1}
  .top .brand{grid-column:2;grid-row:1}
  .top #sort{grid-column:3;grid-row:1;width:88px}
  .top #variant{grid-column:4;grid-row:1;width:88px}
  .top #selectMode{grid-column:5;grid-row:1}
  .top .search-wrap{grid-column:1/-1;grid-row:2;width:100%}
  .top .count{display:none}
  .top .select-trigger{padding:0 8px}
}

/* V7 interaction baseline: theme Studio selection checkboxes instead of browser-native controls. */
.check{appearance:none;-webkit-appearance:none;width:19px;height:19px;margin:0;border:1.5px solid #aeb3ba;border-radius:4px;background:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:none;}
.check::after{content:"";width:9px;height:5px;border-left:1.8px solid transparent;border-bottom:1.8px solid transparent;transform:rotate(-45deg) translateY(-1px);opacity:0;}
.check:checked{background:var(--ink);border-color:var(--ink)}
.check:checked::after{border-color:#fff;opacity:1}
.check:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* V8 visual overhaul */
.eyebrow{text-transform:none;letter-spacing:.04em;font-size:10px;color:var(--muted)}
.desktop-chips{display:none!important}
.filter-drawer{display:block;position:fixed;left:0;right:0;top:0;bottom:0;width:100vw;background:rgba(255,255,255,.98);z-index:70;transform:translateY(-105%);transition:transform .2s ease;box-shadow:var(--shadow);overflow:auto}
.filter-drawer.open{transform:translateY(0)}
.drawer-head{height:64px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.drawer-section{padding:18px 16px}
.drawer-section .chips{display:flex;flex-flow:row wrap;align-items:center;gap:8px;padding:14px 0}
.drawer-section .chips button{flex:0 0 auto;font-size:10px;white-space:nowrap}
.mobile-filter{display:inline-flex}

#grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;padding:12px 16px 34px}
.icon-card{min-height:118px;padding:8px;border-radius:12px}
.card-preview{height:100%;min-height:90px}
.card-preview delluna-icon{width:clamp(34px,4.2vw,56px);height:clamp(34px,4.2vw,56px)}
.name{display:none}
.icon-favorite,.check{width:27px;height:27px;padding:4px;border-radius:8px}
.icon-favorite delluna-icon,.check delluna-icon{width:18px;height:18px;display:block}
.icon-favorite delluna-icon svg,.check delluna-icon svg{width:100%;height:100%}
.icon-favorite{color:#aeb3ba;background:rgba(255,255,255,.92)}
.icon-favorite.active{color:#c99b00;border-color:#e9dfbd}
.icon-favorite[data-filled="true"] delluna-icon svg *,.icon-favorite delluna-icon[data-filled="true"] svg *{fill:#e1ad00!important;stroke:#e1ad00!important}
.check{appearance:none;-webkit-appearance:none;position:absolute;left:8px;top:8px;border:0;background:rgba(255,255,255,.94);display:grid;place-items:center;z-index:3}
.check delluna-icon{pointer-events:none}

.app-dialog{width:100vw}
.detail-panel{width:min(760px,calc(100vw - 20px))}
.detail-preview{width:100%;cursor:pointer}
.tags-meta{grid-column:1/-1}
.tags-list{display:flex;flex-wrap:wrap;gap:6px;max-height:30vh;overflow:auto;padding-right:3px}
.tag-chip{display:inline-flex;align-items:center;max-width:100%;padding:5px 8px;border-radius:7px;background:#fff;border:1px solid var(--line);font-size:9px;line-height:1.2;overflow-wrap:anywhere;word-break:break-word}
.tag-empty{font-size:10px;color:var(--muted)}

.select-modal{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(255,255,255,.98)}
.select-modal::backdrop{background:rgba(16,18,22,.56);backdrop-filter:blur(4px)}
.select-modal-panel{width:100%;min-height:100%;padding:clamp(18px,4vw,34px);display:flex;flex-direction:column}
.select-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;max-width:1100px;width:100%;margin:0 auto 18px}
.select-modal-head h2{margin:4px 0 0;font-size:22px}
.modal-search-wrap{width:100%;max-width:1100px;margin:0 auto 14px}
.modal-search{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;padding:0 13px;background:#fff;outline:0;font-size:12px}
.modal-search:focus{border-color:#a7abb1;box-shadow:0 0 0 3px rgba(23,24,26,.06)}
.select-modal-options{width:100%;max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:7px;overflow:auto;padding-bottom:20px}
.select-modal-options .select-option{height:42px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;font-size:11px}
.select-modal-options .select-option:hover,.select-modal-options .select-option.selected{background:var(--soft);border-color:#c8cbd0}
.option-check{font-weight:700}
.select-chevron{font-size:16px;line-height:1;color:var(--muted)}

@media(min-width:621px){
  .filter-drawer{top:0;bottom:auto;height:auto;transform:translateY(-110%);border-bottom:1px solid var(--line)}
  .filter-drawer.open{transform:translateY(0)}
  .drawer-section .chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
}
@media(max-width:620px){
  #grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;padding:9px}
  .icon-card{min-height:96px;padding:6px}
  .card-preview{min-height:78px}
  .card-preview delluna-icon{width:clamp(30px,9vw,42px);height:clamp(30px,9vw,42px)}
  .detail-panel{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);border-radius:14px;padding:12px}
  .tags-list{max-height:32vh}
}


/* FINAL AUDIT FIXES */
.mobile-filter{display:inline-flex;flex:0 0 40px}
.mobile-filter delluna-icon,.icon-button delluna-icon{width:18px;height:18px;display:block}
.mobile-filter delluna-icon svg,.icon-button delluna-icon svg{width:100%;height:100%}

/* Categories are always reachable from the header; the category list itself is a row. */
.filter-drawer{display:block;position:fixed;left:0;right:0;top:0;bottom:auto;width:100vw;height:auto;max-height:min(48dvh,420px);background:rgba(255,255,255,.98);z-index:70;transform:translateY(-110%);transition:transform .2s ease;box-shadow:var(--shadow);overflow:auto;border-bottom:1px solid var(--line)}
.filter-drawer.open{transform:translateY(0)}
.drawer-section .chips{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;padding:14px 0 6px}
.drawer-section .chips button{flex:0 0 auto;white-space:nowrap}

/* Truly adaptive icon density: never force arbitrary 4/2-column layouts. */
#grid{grid-template-columns:repeat(auto-fill,minmax(clamp(76px,10vw,112px),1fr));gap:clamp(7px,1vw,12px)}
.icon-card{min-height:clamp(96px,11vw,132px);padding:clamp(6px,.8vw,10px)}
.card-preview{min-height:clamp(72px,8vw,104px)}
.card-preview delluna-icon{width:clamp(32px,4vw,56px);height:clamp(32px,4vw,56px)}
@media(max-width:620px){#grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:7px;padding:9px}.icon-card{min-height:94px}.card-preview{min-height:72px}.card-preview delluna-icon{width:clamp(30px,9vw,42px);height:clamp(30px,9vw,42px)}}

/* Delluna is the source of truth for UI icons. */
.check{appearance:none!important;-webkit-appearance:none!important;border:0!important;background:rgba(255,255,255,.94)!important;box-shadow:none!important}
.check::after{display:none!important;content:none!important}
.icon-favorite{display:grid;place-items:center;color:#aeb3ba}
.icon-favorite.active{color:#d4a800;border-color:#eadfb8}
.icon-favorite delluna-icon,.check delluna-icon,.select-chevron{width:18px;height:18px;display:block}
.icon-favorite delluna-icon svg,.check delluna-icon svg,.select-chevron svg{width:100%;height:100%}
.option-check{width:18px;height:18px;flex:0 0 18px}
.option-check svg{width:100%;height:100%}
.select-chevron{color:var(--muted);flex:0 0 16px}

/* No page-level SVG icon styling; Delluna controls its own SVG rendering. */
.ui-icon,.button>svg,.icon-button>svg,.select-trigger svg{all:unset}

/* Detail tags remain independently wrapped/scrollable even with hundreds of tags. */
.tags-list{min-width:0;contain:content;overscroll-behavior:contain}
.tag-chip{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}

.top #selectMode{display:inline-flex;align-items:center;justify-content:center;gap:6px}.top #selectMode delluna-icon{width:16px;height:16px}.top #selectMode delluna-icon svg{width:100%;height:100%}
@media(max-width:620px){.top #selectMode{width:36px;padding:0}.top #selectMode span{display:none}}
