.hc-palette-share-open{overflow:hidden}
.hc-palette-share-layer{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:20px}
.hc-palette-share-layer[hidden]{display:none!important}
.hc-palette-share-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.58);backdrop-filter:blur(8px);cursor:default}
.hc-palette-share-dialog{box-sizing:border-box;position:relative;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #dce2ea;border-radius:22px;background:#fff;padding:24px;box-shadow:0 28px 80px rgba(15,23,42,.3);color:#111827;font-family:Inter,system-ui,sans-serif}
.hc-palette-share-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.hc-palette-share-header h2{margin:0;font-size:clamp(1.65rem,3vw,2.2rem);line-height:1.05;letter-spacing:-.045em}
.hc-palette-share-close{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid #d8dee8;border-radius:12px;background:#f8fafc;color:#344054;font-size:1.6rem;line-height:1;cursor:pointer}
.hc-palette-share-preview{overflow:hidden;border:1px solid #d7dde7;border-radius:16px;background:#eef2f6;aspect-ratio:1200/630;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.hc-palette-share-swatches{display:grid;width:100%;height:100%;grid-template-columns:repeat(5,1fr)}
.hc-palette-share-swatches span{display:block;min-width:0}
.hc-palette-share-swatches span+span{border-left:1px solid rgba(17,24,39,.12)}
.hc-palette-share-labels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:10px 0 20px}
.hc-palette-share-labels code{overflow:hidden;border:1px solid #e1e6ed;border-radius:9px;background:#f8fafc;padding:8px 6px;color:#344054;font:700 .72rem/1.2 "Space Mono",monospace;text-align:center;text-overflow:ellipsis}
.hc-palette-share-link-group{display:grid;gap:8px}
.hc-palette-share-link-group label{color:#344054;font-size:.78rem;font-weight:800}
.hc-palette-share-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.hc-palette-share-link-row input{box-sizing:border-box;min-width:0;width:100%;height:48px;border:1px solid #d4dae4;border-radius:12px;background:#f8fafc;padding:0 14px;color:#344054;font:600 .78rem/1.2 Inter,system-ui,sans-serif}
.hc-palette-share-copy{min-width:116px;border:1px solid #111827;border-radius:12px;background:#111827;padding:0 18px;color:#fff;font:800 .78rem/1 Inter,system-ui,sans-serif;cursor:pointer}
.hc-palette-share-destinations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.hc-palette-share-destinations a{display:flex;min-height:44px;align-items:center;justify-content:center;border:1px solid #d8dee8;border-radius:11px;background:#fff;color:#344054;font-size:.76rem;font-weight:800;text-decoration:none}
.hc-palette-share-destinations a:hover{background:#f8fafc}
.hc-palette-share-status{min-height:1.2em;margin:8px 0 0;color:#245c3d;font-size:.75rem;font-weight:750}
.hc-palette-share-dialog :focus-visible{outline:3px solid rgba(99,102,241,.32);outline-offset:2px}
@media(max-width:620px){
  .hc-palette-share-layer{padding:10px}
  .hc-palette-share-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:17px;padding:18px}
  .hc-palette-share-labels{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hc-palette-share-labels code:last-child{grid-column:1/-1}
  .hc-palette-share-link-row{grid-template-columns:1fr}
  .hc-palette-share-copy{min-height:46px}
  .hc-palette-share-destinations{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:no-preference){
  .hc-palette-share-dialog{animation:hc-palette-share-enter .16s ease-out}
  @keyframes hc-palette-share-enter{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
}
