.t101pal-stage { position: relative; margin-top: 12px; line-height: 0; }
.t101pal-canvas { display: block; max-width: 100%; height: auto; max-height: 520px; margin: 0 auto; border-radius: 8px; cursor: crosshair; background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0 / 16px 16px; touch-action: manipulation; }
.t101pal-canvas:focus-visible { outline: 3px solid var(--t101-accent); outline-offset: 2px; }
.t101pal-loupe { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 999px; background: rgba(17, 24, 39, .88); color: #fff; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; pointer-events: none; white-space: nowrap; }
.t101pal-loupe-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; }
.t101pal-hint, .t101pal-empty { margin: 8px 0 0; color: var(--t101-muted); font-size: 14px; line-height: 1.5; }
.t101pal-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 4px 0 12px; }
.t101pal-bar span { min-width: 4px; }
.t101pal-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.t101pal-swatch { position: relative; border: 1px solid var(--t101-border); border-radius: 10px; overflow: hidden; background: var(--t101-surface); }
.t101pal-chip { display: flex; align-items: flex-end; width: 100%; height: 72px; padding: 8px; border: 0; cursor: pointer; font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: left; }
.t101pal-chip:focus-visible, .t101pal-val:focus-visible { outline: 3px solid var(--t101-accent); outline-offset: -3px; }
.t101pal-vals { display: grid; padding: 4px 4px 2px; }
.t101pal-val { border: 0; background: none; padding: 3px 4px; text-align: left; font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--t101-text); cursor: pointer; border-radius: 4px; overflow-wrap: anywhere; }
.t101pal-val:hover { background: var(--t101-soft); }
.t101pal-share { position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #111827; }
.t101pal-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #111827; cursor: pointer; font-size: 16px; line-height: 1; }
.t101pal-swatches.is-picked { margin-top: 4px; }
.t101pal-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; margin-top: 8px; }
@media (max-width: 600px) { .t101pal-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
