.npcp { position: fixed; z-index: 100000; width: 288px; padding: 14px; border-radius: 14px; background: var(--surface-solid, var(--surface-strong, #1f2023)); color: var(--text, #eee); border: 1px solid var(--line, rgba(128,128,128,.3)); box-shadow: 0 24px 60px rgba(0,0,0,.45); font: 13px/1.3 inherit; display: grid; gap: 12px; user-select: none; touch-action: none; }
.npcp-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.npcp-tools { display: flex; gap: 4px; }
.npcp-ib { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font-size: 16px; }
.npcp-ib:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.npcp-sv { position: relative; height: 150px; border-radius: 8px; cursor: crosshair; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--h, #f00)); }
.npcp-hue, .npcp-alpha { position: relative; height: 12px; border-radius: 6px; cursor: pointer; }
.npcp-hue { background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); }
.npcp-alpha { background: repeating-conic-gradient(#999 0 25%, #ddd 0 50%) 0 0 / 10px 10px; }
.npcp-alpha b { position: absolute; inset: 0; border-radius: inherit; }
.npcp-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.4); pointer-events: none; box-sizing: border-box; }
.npcp-hue .npcp-dot, .npcp-alpha .npcp-dot { top: 50%; }
.npcp :focus-visible { outline: 2px solid var(--accent, #6366f1); outline-offset: 2px; }
.npcp-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px 10px; align-items: center; }
.npcp-sw { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line, rgba(128,128,128,.4)); background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#999 0 25%, #ddd 0 50%) 0 0 / 10px 10px; }
.npcp-fields { display: flex; gap: 6px; min-width: 0; }
.npcp-f { display: grid; gap: 3px; min-width: 0; flex: 1; text-align: center; font-size: 11px; color: var(--muted, #999); }
.npcp-f.wide { flex: 1; }
.npcp-f input { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 13px; text-align: center; padding: 7px 4px; border-radius: 8px; border: 1px solid var(--line, rgba(128,128,128,.4)); background: var(--surface, transparent); color: var(--text, #eee); user-select: text; direction: ltr; }
.npcp-f.wide input { text-align: start; padding-inline: 10px; text-transform: uppercase; }
.npcp-modes { grid-column: 1 / -1; display: flex; gap: 4px; justify-content: flex-end; }
.npcp-modes button { border: 0; background: transparent; color: var(--muted, #999); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.npcp-modes button[aria-pressed="true"] { color: var(--text, #fff); background: color-mix(in srgb, currentColor 12%, transparent); }
input[type=color] { cursor: pointer; }
