/* Sections, palettes and colors. Loaded after the playground's own sheets. Every rule starts at body.playground so it
   outranks the generic `body.playground button` styles, and every color comes from the page tokens, so the redesign's
   re-skin (which only swaps tokens) carries through. */

body.playground .looks-block{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
body.playground .looks-block[hidden],body.playground .looks-block [hidden],body.playground .looks-for[hidden]{display:none!important}
body.playground .looks-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
body.playground .looks-head h3{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em;line-height:1.2}
body.playground .looks-head__meta{font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;color:var(--ink-3)}
body.playground .looks-hint{margin:12px 0 0;font-size:12.5px;line-height:1.45;color:var(--ink-2)}

/* Whole frame / Each side / Sides only */
body.playground .looks-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;border:1px solid var(--line-2);border-radius:13px;background:var(--panel)}
body.playground .looks-seg button{margin:0;padding:9px 4px;border:0;border-radius:10px;background:transparent;color:var(--ink-2);font-size:13px;font-weight:600;line-height:1.2;transition:background .2s,color .2s}
body.playground .looks-seg button:hover:not(:disabled){border:0;background:var(--panel-2);color:var(--ink)}
body.playground .looks-seg button[aria-pressed=true],body.playground .looks-seg button[aria-pressed=true]:hover:not(:disabled){background:var(--ink);color:#08080a}

/* The live map of the frame, and the sections beside it */
body.playground .looks-map{display:grid;grid-template-columns:104px minmax(0,1fr);gap:16px;align-items:start;margin-top:14px}
body.playground .looks-map__canvas{display:block;width:104px;height:170px;touch-action:manipulation}
body.playground .looks-map__canvas.is-pick{cursor:pointer}
body.playground .looks-map__side{display:grid;min-width:0}
body.playground .looks-list{display:grid;gap:6px}
body.playground .looks-section{display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:10px;row-gap:1px;align-items:center;width:100%;margin:0;padding:7px 10px 7px 7px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink);font-size:13px;text-align:left}
body.playground button.looks-section:hover:not(:disabled){border-color:var(--line-2);background:var(--panel-2)}
body.playground .looks-section[aria-pressed=true],body.playground .looks-section[aria-pressed=true]:hover:not(:disabled){border-color:var(--ink);background:var(--panel-2);box-shadow:inset 0 0 0 1px var(--ink)}
body.playground .looks-section__swatch{grid-row:1/3;width:26px;height:26px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
body.playground .looks-section__name{font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.playground .looks-section__what{font-size:11.5px;line-height:1.3;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.playground .looks-link{justify-self:start;margin:8px 0 0;padding:2px 0;border:0;border-radius:0;background:none;color:var(--ink-2);font-size:12.5px;text-decoration:underline;text-underline-offset:3px}
body.playground .looks-link:hover:not(:disabled){border:0;background:none;color:var(--ink)}

/* Per-section switches */
body.playground .looks-quick{display:grid;gap:12px;margin-top:16px}
body.playground .looks-quick .range-label{margin:0 0 2px}
body.playground .looks-quick .toggle{margin:0}
body.playground .looks-advanced{margin:16px 0 0;padding:0;border:0}
body.playground .looks-advanced>summary{display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:0;color:var(--ink-2)}
body.playground .looks-advanced[open]>summary{color:var(--ink)}
body.playground .looks-advanced>.control-note{margin:10px 0 0;font-size:12px;line-height:1.45}

/* "Changing Left and Right", just above the effect */
body.playground .looks-for{margin:22px 0 0;font-size:13px;color:var(--ink-2)}
body.playground .looks-for strong{color:var(--ink);font-weight:600}
body.playground .looks-for:not([hidden])+.effect-picker{margin-top:10px}

/* Palette: the chosen one large, then families, then the palettes in the family */
body.playground .looks-pal__now{display:grid;gap:8px;margin:0 0 12px}
body.playground .looks-pal__bar{display:block;height:30px;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
body.playground .looks-pal__line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
body.playground .looks-pal__name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.playground .looks-pal__about{flex:none;max-width:60%;font-size:12px;color:var(--ink-3);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.playground .looks-pal__about.is-preview{color:var(--ink)}
body.playground .looks-pal__about.is-preview::before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:1px}
body.playground input.looks-pal__search{display:block;width:100%;margin:0 0 10px;padding:10px 12px;font-size:13px}
body.playground .looks-pal__families{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 10px}
body.playground .looks-chip{display:grid;gap:6px;min-width:0;margin:0;padding:7px 6px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink-2);font-size:12px;font-weight:600;line-height:1.1;text-align:center}
body.playground .looks-chip:hover:not(:disabled){border-color:var(--line-2);background:var(--panel-2);color:var(--ink)}
body.playground .looks-chip[aria-pressed=true],body.playground .looks-chip[aria-pressed=true]:hover:not(:disabled){border-color:var(--ink);background:var(--panel-2);color:var(--ink)}
body.playground .looks-chip__hint{display:block;height:4px;border-radius:3px}
body.playground .looks-chip__label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.playground .looks-pal__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:7px}
body.playground .looks-tile{display:grid;gap:6px;min-width:0;margin:0;padding:6px 6px 7px;border:1px solid var(--line);border-radius:11px;background:transparent;color:var(--ink-2);font-size:12px;font-weight:500;line-height:1.2;text-align:left}
body.playground .looks-tile:hover:not(:disabled){border-color:var(--line-2);background:var(--panel-2);color:var(--ink)}
body.playground .looks-tile[aria-pressed=true],body.playground .looks-tile[aria-pressed=true]:hover:not(:disabled){border-color:var(--ink);background:var(--panel-2);box-shadow:inset 0 0 0 1px var(--ink);color:var(--ink);font-weight:600}
body.playground .looks-tile__swatch{display:block;height:22px;border-radius:7px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
body.playground .looks-tile__name{display:block;padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.playground .looks-pal__empty{margin:8px 0 0;font-size:12.5px;color:var(--ink-2)}

/* Colors: presets in a row, then any color */
body.playground #colorPanel{margin-top:18px}
body.playground #colorPanel .looks-hint{margin:0 0 12px}
body.playground .looks-colors{display:grid;gap:14px}
body.playground .looks-color__label{display:block;font-size:13px;font-weight:600;color:var(--ink)}
body.playground .looks-color__swatches{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
body.playground .looks-swatch{position:relative;flex:none;width:26px;height:26px;margin:0;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:var(--swatch);transition:transform .15s var(--ease-out,ease)}
body.playground button.looks-swatch:hover:not(:disabled){border-color:rgba(255,255,255,.5);background:var(--swatch);transform:scale(1.08)}
body.playground .looks-swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--ink)}
body.playground button.looks-swatch[data-hex="#000000"],body.playground button.looks-swatch[data-hex="#000000"]:hover:not(:disabled){background:linear-gradient(135deg,transparent 45%,rgba(255,255,255,.55) 45% 55%,transparent 55%),#000}
body.playground .looks-swatch--any{display:inline-block;overflow:hidden;cursor:pointer;background:conic-gradient(from 90deg,#ff2d55,#ffd21a,#26f07c,#21c8ff,#2f52ff,#ff3fc8,#ff2d55)}
body.playground .looks-swatch--any input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
body.playground .looks-swatch--any.is-custom{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--ink)}
body.playground .looks-swatch--any.is-custom::after{content:'';position:absolute;inset:5px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px rgba(0,0,0,.45);pointer-events:none}
body.playground .looks-swatch--any:focus-within{outline:2px solid var(--accent);outline-offset:3px}

@media(prefers-reduced-motion:reduce){body.playground .looks-seg button,body.playground .looks-swatch{transition:none}body.playground button.looks-swatch:hover:not(:disabled){transform:none}}
