.ref[data-norm]::after { content: "↗"; margin-left: 1px; font-size: 0.92em; opacity: 0.6; }
.norm-pop {
  --hair: rgba(60, 60, 67, 0.12);
  --fill: rgba(118, 118, 128, 0.08);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px -16px rgba(30, 30, 50, 0.38), 0 2px 6px rgba(30, 30, 50, 0.06);
}
.norm-pop[hidden] { display: none; }
.norm-pop.is-sheet { left: 12px; right: 12px; bottom: calc(var(--tabs-h, 0px) + 12px); }
.norm-pop.is-in { animation: norm-pop-in var(--mo-pop-d) var(--mo-pop); }
.norm-pop.is-out { animation: norm-pop-out 110ms ease-in both; pointer-events: none; }
@keyframes norm-pop-out { to { opacity: 0; transform: translateY(4px); } }
@keyframes norm-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.norm-pop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); }
.norm-pop-head b { font-size: var(--fs-m); font-weight: 700; color: var(--accent-dark); }
.norm-pop-head small { font-size: var(--fs-s); color: var(--muted); }
.norm-pop-close { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; min-width: 32px; min-height: 32px; margin: -6px -6px 0 auto; padding: 0; border: 0; border-radius: 50%; background: var(--fill); color: var(--ink-2); cursor: pointer; }
.norm-pop-close:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.norm-pop-close[hidden] { display: none; }
.norm-pop-text { max-height: 6.2em; overflow: hidden; font-size: var(--fs-m); line-height: 1.55; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.norm-pop-text.is-short { -webkit-mask-image: none; mask-image: none; }
.norm-pop.is-open .norm-pop-text { max-height: 45vh; overflow-y: auto; overscroll-behavior: contain; -webkit-mask-image: none; mask-image: none; }
.norm-pop-text p { margin: 0 0 var(--sp-1); color: var(--ink); }
.norm-pop-text p:last-child { margin-bottom: 0; }
.norm-pop-text.is-quiet p { color: var(--muted); }
.norm-pop-note { margin: 0; font-size: var(--fs-s); line-height: 1.45; color: var(--muted); }
.norm-pop-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--sp-3); }
.norm-pop-more { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-m); font-weight: 600; color: var(--ink-2); cursor: pointer; }
.norm-pop-more svg { transition: transform 240ms var(--spring); }
.norm-pop-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.norm-pop-more[hidden] { display: none; }
.norm-pop-go { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-left: auto; font-size: var(--fs-m); font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.norm-pop-go:hover { text-decoration: underline; }
html.is-liquid .norm-pop {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(255, 255, 255, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.45), inset 0 -10px 18px -12px rgba(25, 26, 36, 0.12), 0 1px 2px rgba(16, 24, 40, 0.06), 0 18px 40px -20px rgba(16, 24, 40, 0.45);
  backdrop-filter: url(#norm-glass-pop) blur(4px) saturate(1.7);
}
html.is-liquid .norm-pop.is-open { background: rgba(255, 255, 255, 0.96); }
@media (prefers-reduced-motion: reduce) {
  .norm-pop.is-in, .norm-pop.is-out { animation: none; }
  .norm-pop-more svg { transition: none; }
}
