.pal-layout{display:grid;gap:1.25rem;margin-top:1rem}@media (min-width:56rem){.pal-layout{grid-template-columns:minmax(0,1fr) minmax(0,26rem);align-items:start}}.pal-stage{--stage-h:clamp(22rem,68vh,44rem);height:var(--stage-h);display:flex;align-items:center;justify-content:center;padding:1rem;border:1px solid #d6d9d2;border-radius:.5rem;background:#eef0eb}.pal-stage.dragging{border-color:#171816}.pal-frame{position:relative;display:inline-block;max-width:100%;line-height:0;background-color:#fff;background-image:linear-gradient(45deg,#e5e5e5 25%,transparent 0,transparent 75%,#e5e5e5 0),linear-gradient(45deg,#e5e5e5 25%,transparent 0,transparent 75%,#e5e5e5 0);background-size:16px 16px;background-position:0 0,8px 8px;box-shadow:0 0 0 1px #8f948a;user-select:none;-webkit-user-select:none}.pal-frame img{display:block;max-width:100%;max-height:calc(var(--stage-h) - 2rem - 2px);width:auto;height:auto}.pal-zones{position:absolute;inset:0;display:grid;grid-template:repeat(3,1fr) /repeat(3,1fr);pointer-events:none}.pal-zones span.on{background:rgba(26,115,232,.14);box-shadow:inset 0 0 0 2px #1a73e8}.pal-dims{margin:.5rem 0 0}.pal-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}.pal-stepper{display:inline-flex;align-items:stretch;height:2.5rem;border:1px solid #b9bdb4;border-radius:.5rem;background:#fff;overflow:hidden}.pal-stepper-label{display:flex;align-items:center;padding:0 .75rem;border-right:1px solid #e3e5df;background:#f3f4f0;font-size:.875rem;font-weight:600}.pal-stepper button{width:2.5rem;min-height:0;padding:0;border:0;border-radius:0;background:transparent;font-size:1.15rem;line-height:1}.pal-stepper button:hover:not(:disabled){background:#eceee8}.pal-stepper output{display:flex;align-items:center;justify-content:center;min-width:2.25rem;font-weight:600;font-variant-numeric:tabular-nums}.pal-selected{margin:.75rem 0 0;font-size:.9rem}.pal-list{flex-direction:column;margin:.75rem 0;padding:0;list-style:none}.pal-card,.pal-list{display:flex;gap:.5rem}.pal-card{flex-wrap:wrap;align-items:center;justify-content:space-between;padding:.5rem;border:1px solid #d6d9d2;border-radius:.5rem;background:#fff}.pal-card.on{border-color:#1a73e8;box-shadow:0 0 0 1px #1a73e8;background:#f5f9ff}.pal-pick{display:flex;flex:1 1 12rem;align-items:center;justify-content:flex-start;gap:.75rem;min-width:0;padding:0;border:0;text-align:left;white-space:normal}.pal-pick,.pal-pick:active:not(:disabled),.pal-pick:hover:not(:disabled){background:none}.pal-swatch{flex:none;width:3.25rem;height:3.25rem;border-radius:.5rem;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.pal-info{display:flex;flex-direction:column;min-width:0;font-size:.85rem;line-height:1.35}.pal-info strong{font-size:1rem}.pal-ratio{font-weight:600}.pal-info .note{margin:0}.pal-copy{display:flex;gap:.375rem}.pal-copy .btn{min-height:2rem;padding:0 .6rem;font-size:.8rem}.pal-pick-img{cursor:crosshair}.pal-picked{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .75rem;min-height:2.5rem;margin:.5rem 0 0;font-size:.9rem}.pal-picked .note{margin:0}.pal-picked .btn{min-height:2rem;padding:0 .75rem}.pal-picked-swatch{width:1.25rem;height:1.25rem;border:1px solid #8f948a;border-radius:.2rem;background-color:#fff;background-image:linear-gradient(45deg,#ddd 25%,transparent 0,transparent 75%,#ddd 0),linear-gradient(45deg,#ddd 25%,transparent 0,transparent 75%,#ddd 0);background-size:8px 8px;background-position:0 0,4px 4px}.pal-picked-hex{min-height:0;padding:0 .2rem;border:0;background:none;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-decoration:underline dotted}