/* Upload controls follow the existing admin palette; the legend stays compact. */
.site-icon-list{display:grid;gap:14px}
.icon-upload-help{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 20px}
.site-icon-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:16px;background:#112431;border:1px solid var(--line);border-radius:10px}
.site-icon-preview{width:64px;height:64px;display:grid;place-items:center;background:#071119;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.site-icon-preview img{width:44px;height:44px;object-fit:contain}
.site-icon-preview.default-icon img{width:64px;height:64px}
.site-icon-info{align-self:center;min-width:0}
.site-icon-info h2{margin:0 0 6px;font-size:16px;font-weight:550}
.site-icon-info p{margin:0;font-size:12px;color:var(--muted);overflow-wrap:anywhere;line-height:1.5}
.site-icon-actions{grid-column:1/-1;display:flex;gap:8px}
.site-icon-actions button{min-height:44px;flex:1}
.site-icon-actions .icon-reset{color:var(--muted);background:transparent}
.site-icon-status{grid-column:1/-1;margin:0;font-size:12px;line-height:1.6;color:var(--accent);overflow-wrap:anywhere}
.site-icon-status:empty{display:none}
.site-icon-status.error{color:#ffc3bd}
.admin-tabs button{min-height:44px}
.site-icon-legend{position:fixed;left:32px;bottom:max(40px,env(safe-area-inset-bottom));z-index:8;width:max-content;color:#edf4f7;text-shadow:0 1px 4px #000;pointer-events:none}
.site-icon-legend[hidden]{display:none}
.site-icon-legend ul{list-style:none;display:grid;grid-template-columns:1fr;gap:4px;padding:0;margin:0}
.site-icon-legend li{display:flex;align-items:center;gap:6px;height:22px;font-size:11px;white-space:nowrap}
.site-icon-legend img{width:20px;height:20px;object-fit:contain;flex:none}
.site-icon-legend .default-icon img{transform:scale(1.5)}
.immersive.has-site-legend .height-control{bottom:164px}
.immersive.presenting .site-icon-legend{left:auto;right:32px}
@media(max-width:1100px){.site-icon-legend{left:20px}}
@media(max-width:700px){
  .site-icon-legend{left:16px;bottom:max(36px,env(safe-area-inset-bottom))}
  .immersive.has-site-legend .region-nav{bottom:154px}
  .immersive.has-site-legend .height-control,.immersive.has-site-legend .bottom-bar{bottom:222px}
  .immersive.detail-open .site-icon-legend{visibility:hidden}
  .immersive.presenting .site-icon-legend{left:16px;right:auto;bottom:calc(54dvh + 12px);visibility:visible}
}
