/* OSO Colorful v12: OSO Vermilion, #121611 Ink, and subdued #242827 interface surfaces.
   Shared brand tokens color the interface; study swatches and photographs retain their exact colors. Instrument Sans for everything you read, Geist Mono for color values.
   Follows the device's light or dark setting until a choice is made, then remembers it (oso-cc-theme, shared with the other tools).
   No glass, no glow, no soft shadows: surfaces are flat, edges are hairlines. Hovers flip instantly; state changes wipe in 0.5s. */
@import url("/tools/colorful/ui-tokens.css?v=r8");

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(env(safe-area-inset-top,0px) + var(--bar) + var(--rail) + 28px);background:var(--paper)}
body{margin:0;background:var(--paper);color:var(--soft);font:400 15px/1.5 var(--ui);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--paper)}
body.dialog-open{overflow:hidden}
body.has-tray{padding-bottom:96px}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-appearance:none;appearance:none}
button:disabled{cursor:default;opacity:.45}
a{color:inherit;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
::selection{background:var(--action);color:var(--action-ink)}
input{caret-color:var(--focus)}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:fixed;top:-100px;left:16px;z-index:100;padding:12px 16px;background:var(--on-bg);color:var(--on-ink);border-radius:999px;font-weight:600;text-decoration:none}
.skip:focus{top:12px}
.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wrap{padding-left:max(var(--g),env(safe-area-inset-left,0px));padding-right:max(var(--g),env(safe-area-inset-right,0px))}
.label{font:500 13.5px/1.25 var(--ui);color:var(--muted)}
.sep{display:inline-block;margin:0 .38em;color:var(--muted)}
.tray{background:var(--tray);border-radius:var(--r-tray)}
.well{background:var(--well);border-radius:999px}

/* The tray on top: brand, search, the four tools, saved and theme */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;padding-block:10px 0;background:var(--paper)}
.bar{display:flex;align-items:center;gap:14px;height:var(--bar);padding:8px 8px 8px 18px}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;flex:none}
.brand svg{width:40px;height:16px;fill:currentColor}
.brand span{font:650 19px/1 var(--ui);letter-spacing:-.014em}
.search{position:relative;display:flex;align-items:center;gap:10px;flex:1;min-width:0;max-width:560px;height:44px;margin-inline:auto;padding:0 8px 0 15px;color:var(--muted)}
.search:focus-within{box-shadow:inset 0 0 0 1.5px var(--focus)}
.search input{flex:1;min-width:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;background:none;color:var(--ink);font:500 15px/1 var(--ui);text-overflow:ellipsis;-webkit-appearance:none;appearance:none}
.search input::placeholder{color:var(--muted);opacity:1}
.search input::-webkit-search-cancel-button{-webkit-appearance:none}
.search kbd{flex:none;display:grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:8px;background:var(--tray);font:500 12px/1 var(--mono);color:var(--muted)}
.search input:focus + kbd,.search input:not(:placeholder-shown) + kbd{display:none}
.family{display:flex;gap:2px;flex:none;height:44px;padding:4px}
.family a{display:flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;font:550 14px/1 var(--ui);text-decoration:none;color:var(--muted)}
.family a:hover{color:var(--ink)}
.family a[aria-current=page]{background:var(--lift);color:var(--ink)}
:root[data-theme=light] .family a[aria-current=page]{box-shadow:inset 0 0 0 1px var(--hair)}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]) .family a[aria-current=page]{box-shadow:inset 0 0 0 1px var(--hair)}}
.bar-actions{display:flex;gap:6px;flex:none}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;min-width:44px;padding:0 14px;border:0;border-radius:999px;background:var(--well);color:var(--ink);text-decoration:none}
.icon-btn:hover{background:var(--on-bg);color:var(--on-ink)}
.switch{position:relative;flex:none;width:76px;height:44px;padding:0;border:0;border-radius:999px;background:var(--well);color:var(--ink)}
.switch .opt{position:absolute;top:4px;width:36px;height:36px;display:grid;place-items:center;color:var(--muted)}
.switch .opt:first-child{left:4px}.switch .opt:nth-child(2){left:36px}
.switch .opt .icon{width:16px;height:16px}
.switch .knob{position:absolute;top:4px;left:4px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--lift);color:var(--ink);transition:transform .5s var(--wipe)}
:root[data-theme=light] .switch .knob{box-shadow:inset 0 0 0 1px var(--hair)}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]) .switch .knob{box-shadow:inset 0 0 0 1px var(--hair)}}
.switch[aria-checked=true] .knob{transform:translateX(32px)}
.switch:hover .knob{background:var(--on-bg);color:var(--on-ink)}
.switch .knob .icon{width:17px;height:17px}
.count{font:500 13px/1 var(--mono);font-variant-numeric:tabular-nums}

/* Hero */
.hero{padding-block:clamp(40px,6.4vw,104px) clamp(28px,3.2vw,48px)}
.hero h1{margin:0;color:var(--ink);font:650 clamp(52px,10.2vw,172px)/.9 var(--ui);letter-spacing:-.036em;text-wrap:balance}
.hero h1 .h-in{display:inline-block;animation:rise .9s var(--out) both}
.hero h1 .h-word{font-style:italic;font-weight:600;letter-spacing:-.035em;animation-delay:.12s;position:relative;padding-right:.06em}
.hero h1 .k{margin-right:.022em}
.h-band{position:absolute;left:.03em;right:.1em;bottom:-.13em;height:.1em;display:block;cursor:pointer;border:0;padding:0;background:none}
.h-band span{position:absolute;inset:0;display:flex;gap:max(3px,.03em)}
.h-band span i{display:block;height:100%;border-radius:max(3px,.025em);box-shadow:inset 0 0 0 1px var(--tile-edge)}
.h-band .next{clip-path:inset(0 100% 0 0);transition:clip-path .5s var(--wipe)}
.h-band .next.on{clip-path:inset(0 0 0 0)}
@keyframes rise{from{transform:translateY(.4em);opacity:0}to{transform:none;opacity:1}}
.hero-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:20px 40px;margin-top:clamp(36px,4vw,60px)}
.lede{margin:0;max-width:44ch;font:400 clamp(16px,1.3vw,19px)/1.5 var(--ui);color:var(--soft)}
.spot{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.spot-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--muted);font:500 14px/1.3 var(--ui)}
.spot-link b{color:var(--ink);font-weight:600}
.spot-link:hover,.spot-link:hover b{color:var(--soft)}
.spot-link .icon{width:16px;height:16px}
body.is-searching .hero{display:none}

/* The free panel for Illustrator: one tray at the foot of the hero. Its mark wears the palette on the line and
   changes with it in the same 0.5s wipe timing; the whole tray is the link, so its button flips with the tray. */
.promo{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px 18px;margin-top:clamp(28px,3vw,44px);padding:12px;border-radius:var(--r-tray);background:var(--tray);color:var(--soft);text-decoration:none}
.promo:hover{background:var(--tray-hover)}
.promo:hover .promo-btn{background:var(--action-hover);color:var(--action-hover-ink)}
.promo-mark{display:flex;gap:3px;width:56px;height:56px;padding:7px;border-radius:14px;background:var(--well)}
.promo-mark i{flex:1;border-radius:4px;box-shadow:inset 0 0 0 1px var(--tile-edge);transition:background-color .5s var(--wipe)}
.promo-text{display:grid;gap:3px;min-width:0}
.promo-text b{color:var(--ink);font:600 16px/1.3 var(--ui)}
.promo-text span{font:400 14.5px/1.45 var(--ui);text-wrap:pretty}
@media (max-width:700px){.promo{grid-template-columns:auto minmax(0,1fr);padding:12px 12px 14px}.promo-btn{grid-column:1/-1;width:100%}}
@media (prefers-reduced-motion:reduce){.promo-mark i{transition:none}}

/* Nature's longer headline leaves room for a dedicated panel callout beside it. */
.hero--nature{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,.8fr);grid-template-areas:"headline panel" "intro panel";column-gap:clamp(36px,4.5vw,76px);row-gap:clamp(36px,4vw,60px);align-items:start}
.hero--nature h1{grid-area:headline}
.hero--nature .hero-row{grid-area:intro;display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin-top:0}
.hero--nature .spot{justify-content:flex-start}
.promo--nature{grid-area:panel;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:20px 14px;width:100%;max-width:400px;justify-self:end;align-self:start;margin-top:0;padding:clamp(22px,2.1vw,32px)}
.promo--nature .promo-mark{width:40px;height:40px;padding:6px;gap:2px;border-radius:11px}
.promo-title{margin:0;color:var(--ink);font:600 clamp(22px,1.8vw,28px)/1.12 var(--ui);letter-spacing:-.02em;text-wrap:balance}
.promo-panel{grid-column:1/-1;display:block;aspect-ratio:680/910;overflow:hidden;border-radius:14px;background:var(--well)}
.promo-panel img{display:block;width:100%;height:auto}
.promo-description{grid-column:1/-1;font:400 15.5px/1.5 var(--ui);color:var(--soft);text-wrap:pretty}
.promo--nature .promo-btn{grid-column:1/-1;width:100%}
@media (max-width:1100px){
  .hero--nature{display:block}
  .hero--nature .hero-row{margin-top:clamp(36px,4vw,60px)}
  .promo--nature{grid-template-columns:40px minmax(0,1fr) auto;gap:6px 18px;max-width:none;margin-top:28px;padding:18px}
  .promo--nature .promo-mark{grid-column:1;grid-row:1/3}
  .promo--nature .promo-title{grid-column:2;grid-row:1;font-size:22px}
  .promo--nature .promo-description{grid-column:2;grid-row:2;font-size:14.5px}
  .promo--nature .promo-panel{display:none}
  .promo--nature .promo-btn{grid-column:3;grid-row:1/3;width:auto}
}
@media (max-width:700px){
  .hero--nature .hero-row{margin-top:40px}
  .promo--nature{grid-template-columns:40px minmax(0,1fr);gap:14px}
  .promo--nature .promo-mark{grid-row:1}
  .promo--nature .promo-description{grid-column:1/-1;grid-row:2}
  .promo--nature .promo-btn{grid-column:1/-1;grid-row:3;width:100%}
}

/* Buttons: a pill one step off its ground; hover flips to the ink */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--btn,var(--tray));color:var(--ink);font:600 14px/1 var(--ui);text-decoration:none;white-space:nowrap}
.btn:hover{background:var(--on-bg);color:var(--on-ink)}
.btn[aria-pressed=true]{background:var(--lift);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn[aria-pressed=true]:hover{background:var(--on-bg);color:var(--on-ink)}
.btn.primary{background:var(--action);color:var(--action-ink)}
.btn.primary:hover{background:var(--action-hover);color:var(--action-hover-ink)}
.btn.small{height:38px;padding:0 15px;font-size:13.5px}
.btn .icon{width:17px;height:17px}
.tray,.info,.cmp,.empty{--btn:var(--well)}

/* Segmented switches: a well, the chosen one lifted */
.seg{display:inline-flex;gap:2px;height:44px;padding:4px;border-radius:999px;background:var(--well)}
.seg button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 14px;border:0;border-radius:999px;background:none;color:var(--muted);font:600 13.5px/1 var(--ui);white-space:nowrap}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed=true]{background:var(--lift);color:var(--ink)}
:root[data-theme=light] .seg button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--hair)}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]) .seg button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--hair)}}
.seg .icon{width:16px;height:16px}
.seg.tight{height:38px;padding:3px}
.seg.tight button{height:32px;padding:0 12px;font-size:12.5px}

/* Topic rail */
.topics{position:sticky;top:calc(env(safe-area-inset-top,0px) + 10px + var(--bar));z-index:30;padding-block:6px 10px;background:var(--paper)}
.rail{padding:0 8px}
.chips{display:flex;align-items:center;gap:2px;height:var(--rail);overflow-x:auto;scrollbar-width:none;scroll-padding-inline:48px}
.chips::-webkit-scrollbar{display:none}
.chips.more{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 48px),transparent)}
.chips.more.end{-webkit-mask-image:none;mask-image:none}
.chip{flex:none;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 15px;border:0;border-radius:999px;background:none;color:var(--muted);font:550 14px/1 var(--ui);white-space:nowrap}
.chip:hover{color:var(--ink);background:var(--hover)}
.chip[aria-pressed=true]{background:var(--action);color:var(--action-ink)}
.chip:focus-visible{outline-offset:-2px}
.chip[aria-pressed=true]:focus-visible{outline-color:var(--action-ink)}

/* Results line */
.results{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding-block:12px 16px}
.results-text{display:flex;align-items:baseline;gap:14px;min-width:0;padding-left:4px}
#results{margin:0;white-space:nowrap;font-size:15px}
#results b{color:var(--ink);font-weight:600}
#results .hit-dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin:0 6px 0 4px;vertical-align:-1px;box-shadow:0 0 0 1px var(--edge)}
#results .hex{font:500 14px/1 var(--mono);color:var(--ink)}
.filter-desc{margin:0;color:var(--muted);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.results-tools{display:flex;align-items:center;gap:8px}
.sort select{field-sizing:content;-webkit-appearance:none;appearance:none;height:44px;border:0;border-radius:999px;background-color:var(--tray);color:var(--ink);padding:0 36px 0 18px;font:600 14px/1 var(--ui);cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 22px) 52%,calc(100% - 17px) 52%;background-size:5px 5px;background-repeat:no-repeat}
.sort select:hover{background-color:var(--on-bg);color:var(--on-ink)}
.sort select option{background:var(--tray);color:var(--ink)}

/* Cards: a tray, the subject, its colors as separate tiles, then the name */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1vw,14px)}
.card{position:relative;display:grid;grid-template-rows:auto 40px auto;gap:10px;min-width:0;padding:10px;border-radius:var(--r-card);background:var(--tray)}
.card:hover{background:var(--tray-hover)}
.art{grid-area:1/1/2/2;position:relative;aspect-ratio:4/5;max-width:100%;overflow:hidden;border-radius:var(--r-photo);background:var(--well)}
.art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tag{position:absolute;top:8px;left:8px;padding:5px 9px;border-radius:999px;background:var(--scrim);color:var(--oso-paper);font:500 11.5px/1 var(--ui)}
.tiles{grid-area:2/1/3/2;position:relative;z-index:2;display:flex;gap:4px;min-width:0;pointer-events:none}
.tile{position:relative;min-width:12px;height:100%;padding:0;border:0;border-radius:var(--r-tile);background:var(--c);color:var(--on);box-shadow:inset 0 0 0 1px var(--tile-edge);pointer-events:auto}
.tile::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--on);opacity:0;pointer-events:none}
.tile:hover::after{opacity:.6}
.tile.hit{z-index:1;box-shadow:inset 0 0 0 1px var(--tile-edge),0 0 0 2px var(--tray),0 0 0 3.5px var(--ink)}
.tile:focus-visible{outline:0;z-index:1;box-shadow:inset 0 0 0 1px var(--tile-edge),0 0 0 2px var(--tray),0 0 0 3.5px var(--ink)}
.tile i{position:absolute;left:50%;bottom:12px;transform:translateX(-50%) rotate(180deg);writing-mode:vertical-rl;font:500 11px/1 var(--mono);font-style:normal;letter-spacing:.04em;white-space:nowrap;display:none}
.tile.flow{flex:1;background:var(--g);pointer-events:none}
/* No photo, or the Swatches view: the colors take the photo's place */
.no-photo .art,[data-mode=swatch] .art{visibility:hidden}
.no-photo .tiles,[data-mode=swatch] .tiles{grid-area:1/1/3/2}
.no-photo .tile,[data-mode=swatch] .tile{border-radius:var(--r-photo)}
.no-photo .tile i,[data-mode=swatch] .tile i{display:block}
.no-photo .tile::after,[data-mode=swatch] .tile::after{top:16px;margin-top:0}
.no-photo .tile.hit,[data-mode=swatch] .tile.hit{box-shadow:inset 0 0 0 1px var(--tile-edge),0 0 0 2px var(--tray),0 0 0 3.5px var(--ink)}
.meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:2px 0 0 4px}
.meta h2{margin:0;color:var(--ink);font:600 16.5px/1.2 var(--ui);letter-spacing:-.01em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.meta h2 a{text-decoration:none}
.meta h2 a::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.meta h2 a:focus-visible{outline:0}
.meta h2 a:focus-visible::after{outline:2px solid var(--ink);outline-offset:2px}
.meta p{margin:3px 0 0;color:var(--muted);font-size:13.5px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meta .src{color:var(--soft)}
.meta .peek .hex{font:500 13px/1 var(--mono);color:var(--ink)}
.meta .peek .dot{display:inline-block;width:10px;height:10px;margin-right:7px;border-radius:50%;vertical-align:-1px;box-shadow:0 0 0 1px var(--edge)}
.card.peeking .sub{display:none}
.card:not(.peeking) .peek{display:none}
/* Save: the palette's own colors turned around a knob, as on the panel's add tile */
.keep{position:relative;z-index:2;flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:var(--r-tile);background:conic-gradient(var(--g));box-shadow:inset 0 0 0 1px var(--tile-edge)}
.keep .knob{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--tray);color:var(--ink)}
.keep .icon{width:14px;height:14px;stroke-width:2.1}
.keep:hover .knob,.keep[aria-pressed=true] .knob{background:var(--ink);color:var(--tray)}
.keep[aria-pressed=true] .icon{fill:currentColor}
.keep:focus-visible{outline:0;box-shadow:inset 0 0 0 1px var(--tile-edge),0 0 0 2px var(--tray),0 0 0 3.5px var(--ink)}
.empty{padding:clamp(32px,5vw,64px) clamp(20px,3vw,40px);border-radius:var(--r-card);background:var(--tray)}
.empty h3{margin:0 0 10px;color:var(--ink);font:650 clamp(30px,3.6vw,52px)/.98 var(--ui);letter-spacing:-.03em}
.empty p{margin:0 0 22px;max-width:46ch;color:var(--muted)}
.more-row{display:flex;justify-content:center;padding-block:40px 8px}

/* Footer */
.foot{margin-top:64px;border-top:1px solid var(--line);padding-block:28px calc(28px + env(safe-area-inset-bottom,0px))}
.foot-row{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap}
.foot-row nav{display:flex;gap:22px;flex-wrap:wrap}
.foot-row a{text-decoration:none;color:var(--muted);font-weight:500}
.foot-row a:hover{color:var(--ink)}
.foot-mark svg{width:46px;height:18px;fill:var(--ink);display:block}
.foot p{margin:18px 0 0;max-width:70ch;color:var(--muted);font-size:13.5px}
.foot .sign{font:600 24px/1.1 var(--ui);letter-spacing:-.025em;color:var(--ink);margin-top:22px}

/* Sheet: trays on the ground, photo beside the colors */
dialog.sheet{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:var(--paper);color:var(--soft);overflow:hidden;
  display:none;flex-direction:column;gap:10px;padding:max(10px,env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) max(10px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))}
dialog.sheet[open]{display:flex;animation:sheet-in .7s var(--out)}
dialog.sheet::backdrop{background:var(--paper);opacity:.6}
dialog.sheet.closing{animation:sheet-out .42s var(--in) forwards}
@keyframes sheet-in{from{transform:translateY(100%)}to{transform:none}}
@keyframes sheet-out{to{transform:translateY(100%)}}
.sheet-top{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--bar);padding:8px 8px 8px 20px!important;border-radius:var(--r-tray);background:var(--tray)}
.crumb{margin:0;color:var(--ink);font-weight:600}
.crumb span{color:var(--muted);font-weight:500}
.sheet-nav{display:flex;gap:6px}
.sheet-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:10px}
.media{position:relative;overflow:hidden;border-radius:var(--r-tray);background:var(--tray);min-height:0}
.media-panel{position:absolute;inset:0}
.media-panel>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.media .seg{position:absolute;top:10px;left:10px;z-index:3;background:var(--tray)}
.credit{position:absolute;left:12px;bottom:12px;z-index:3;max-width:calc(100% - 24px);margin:0;padding:6px 11px;border-radius:999px;background:var(--scrim);color:var(--oso-paper);font:500 12px/1.3 var(--ui)}
.credit a{color:var(--oso-paper);text-decoration:none}
.credit a:hover{text-decoration:underline}
.bigband{position:absolute;inset:10px;top:64px;display:flex;gap:6px}
.bigband span{position:relative;display:block;min-width:0;border-radius:var(--r-photo);background:var(--c);color:var(--on);box-shadow:inset 0 0 0 1px var(--tile-edge)}
.bigband i{position:absolute;left:50%;bottom:20px;transform:translateX(-50%) rotate(180deg);writing-mode:vertical-rl;font:500 12.5px/1 var(--mono);font-style:normal;letter-spacing:.04em;white-space:nowrap}
.bigband.flow{border-radius:var(--r-photo);background:var(--g);box-shadow:inset 0 0 0 1px var(--tile-edge)}
.info{overflow-y:auto;min-height:0;overscroll-behavior:contain;border-radius:var(--r-tray);background:var(--tray)}
.info-body{display:flex;flex-direction:column;gap:26px;padding:clamp(22px,2.6vw,38px);max-width:760px}
.d-name{margin:0;color:var(--ink);font:650 clamp(40px,4.8vw,80px)/.94 var(--ui);letter-spacing:-.032em;text-wrap:balance;overflow-wrap:anywhere}
.d-subject{margin:14px 0 0;color:var(--ink);font:550 17px/1.4 var(--ui)}
.d-subject em{display:block;margin-top:1px;font:italic 400 17px/1.4 var(--ui);color:var(--soft)}
.d-appear{margin:10px 0 0;color:var(--soft);max-width:52ch}
.swatches{display:flex;flex-direction:column;gap:12px}
.col-head{display:flex;align-items:center;justify-content:space-between;gap:10px 12px;flex-wrap:wrap}
.column{display:flex;flex-direction:column;gap:4px;height:clamp(280px,38vh,440px);container-type:inline-size}
.column .grad{flex:2.4 1 0;min-height:96px;border-radius:10px;box-shadow:inset 0 0 0 1px var(--tile-edge)}
.row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-basis:0;min-height:48px;padding:11px 14px;border:0;border-radius:10px;background:var(--c);color:var(--on);text-align:left;box-shadow:inset 0 0 0 1px var(--tile-edge)}
.row .r-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 15px/1.2 var(--ui);letter-spacing:-.005em}
.row .r-hex{flex:none;display:flex;align-items:baseline;gap:12px;font:500 13px/1 var(--mono);white-space:nowrap}
.row .r-hex i{font-style:normal;opacity:.72;font-size:12px}
.row .r-copy{font:600 12px/1 var(--ui);opacity:0}
.row:hover .r-copy,.row:focus-visible .r-copy,.row.copied .r-copy{opacity:1}
.row:focus-visible{outline:2px solid var(--on);outline-offset:-5px}
@container (max-width:460px){.row .r-copy{display:none}.column:not([data-format=hex]) .r-hex i{display:none}}
.note{margin:0;color:var(--soft);max-width:56ch}
.note span{display:block;margin-top:6px;color:var(--muted);font-size:13.5px}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.formats{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-14px 0 0}
.formats .label{margin-right:6px}
.fmt{height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--well);color:var(--ink);font:500 12.5px/1 var(--mono)}
.fmt:hover{background:var(--on-bg);color:var(--on-ink)}
.links{display:flex;flex-wrap:wrap;gap:10px 26px;margin:0}
.links a{display:inline-flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font:600 14.5px/1 var(--ui);padding:7px 0;border-bottom:1.5px solid var(--line)}
.links a:hover{border-color:var(--ink)}
.links .icon{width:16px;height:16px}
.about-photo{border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:13.5px}
.about-photo summary{cursor:pointer;color:var(--ink);font-weight:600;font-size:14.5px;list-style:none}
.about-photo summary::-webkit-details-marker{display:none}
.about-photo summary::before{content:"+ "}
.about-photo[open] summary::before{content:"– "}
.about-photo p{margin:10px 0 0;max-width:60ch}
.about-photo a{color:var(--ink)}
.fine{margin:0;color:var(--muted);font-size:13px;max-width:60ch}
.dialog-status{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:10}

/* Stepping between palettes, and changing light and dark: the new state wipes in */
html[data-wipe]::view-transition-old(root){animation:none;mix-blend-mode:normal}
html[data-wipe]::view-transition-new(root){mix-blend-mode:normal;animation:.5s cubic-bezier(.77,0,.18,1) both wipe-next}
html[data-wipe=prev]::view-transition-new(root){animation-name:wipe-prev}
@keyframes wipe-next{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}
@keyframes wipe-prev{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}

/* Poster (Try it) */
.try{position:absolute;inset:0;display:flex;flex-direction:column}
.poster{flex:1;display:flex;flex-direction:column;gap:20px;padding:clamp(20px,3vw,40px);padding-top:72px;background:var(--pp);color:var(--pi);min-height:0;overflow:hidden}
.p-top,.p-foot{display:flex;justify-content:space-between;gap:12px;font:500 11px/1.2 var(--mono);letter-spacing:.05em;text-transform:uppercase}
.p-words{margin:clamp(28px,7vh,88px) 0 0;font:650 clamp(40px,6vw,104px)/.92 var(--ui);letter-spacing:-.032em;outline:none;overflow-wrap:anywhere;cursor:text}
.p-words:focus-visible{outline:2px dashed currentColor;outline-offset:8px}
.p-bars{margin-top:auto;display:flex;height:16px;gap:4px}
.p-bars span{flex:1;border-radius:4px;box-shadow:inset 0 0 0 1px currentColor}
.p-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;padding:12px 16px;background:var(--tray);border-top:1px solid var(--hair)}
.pick{display:flex;align-items:center;gap:7px}
.pick>span{color:var(--muted);margin-right:4px;font:500 13px/1 var(--ui)}
.dot{width:28px;height:28px;border-radius:50%;border:0;background:var(--c);box-shadow:inset 0 0 0 1px var(--tile-edge);padding:0}
.dot[aria-checked=true]{box-shadow:inset 0 0 0 1px var(--tile-edge),0 0 0 2px var(--tray),0 0 0 3.5px var(--ink)}
.score{margin:0 0 0 auto;display:flex;align-items:baseline;gap:10px;color:var(--ink);font:500 13px/1 var(--mono)}
.score span{color:var(--muted);font:500 13px/1 var(--ui)}
.score.pass span{color:var(--ink)}

/* Compare */
.shortlist{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:45;display:flex;align-items:center;gap:6px;max-width:calc(100% - 32px);padding:6px;border-radius:999px;background:var(--tray);color:var(--ink);box-shadow:0 0 0 1px var(--line);--btn:var(--well)}
.tray-items{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;min-width:0}
.tray-item{display:flex;align-items:center;gap:9px;height:40px;padding:0 12px 0 5px;border:0;border-radius:999px;background:none;color:var(--ink);font:600 13.5px/1 var(--ui);white-space:nowrap}
.tray-item:hover{background:var(--hover)}
.tray-item .mini{display:flex;gap:2px;width:30px;height:30px;flex:none}
.tray-item .mini i{flex:1;border-radius:3px;box-shadow:inset 0 0 0 1px var(--tile-edge)}
.shortlist .btn{height:40px}
.shortlist .icon-btn{height:40px;min-width:40px;padding:0}
.compare{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:10px;overflow-y:auto;padding:0!important}
.cmp{display:flex;flex-direction:column;gap:14px;min-width:0;padding:16px;border-radius:var(--r-tray);background:var(--tray);align-self:start}
.cmp h3{margin:0;color:var(--ink);font:650 clamp(26px,2.6vw,40px)/.95 var(--ui);letter-spacing:-.028em}
.cmp-art{position:relative;aspect-ratio:4/3;max-width:100%;overflow:hidden;border-radius:var(--r-photo);background:var(--well)}
.cmp-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cmp-art .bigband{inset:0}
.cmp .column{height:300px}

/* Toast */
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:70;display:flex;align-items:center;gap:10px;padding:11px 16px;border-radius:14px;background:var(--toast);color:var(--toast-ink);box-shadow:0 0 0 1px var(--toast-rim);font:500 14px/1.3 var(--ui);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;animation:toast-in .32s var(--out)}
.toast .lead{flex:none;width:16px;height:16px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.28)}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,10px)}}
body.has-tray .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}

/* Widths */
@media (max-width:1180px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bar{gap:10px}.family a{padding:0 11px}.search{min-width:180px}}
@media (max-width:900px){
  .family{display:none}
  .filter-desc{display:none}
  .d-name{font-size:clamp(40px,11vw,72px)}
  dialog.sheet{overflow-y:auto;display:none}
  dialog.sheet[open]{display:block}
  .sheet-top{position:sticky;top:0;z-index:5;margin-bottom:10px}
  .sheet-body{display:flex;flex-direction:column;gap:10px;height:auto}
  .media{aspect-ratio:1/1;max-width:100%;flex:none}
  .info{overflow:visible}
  .info-body{padding:24px 18px 26px}
  .actions.main{position:sticky;bottom:0;z-index:4;margin:0 -18px;padding:10px 18px calc(10px + env(safe-area-inset-bottom,0px));background:var(--tray);border-top:1px solid var(--hair);flex-wrap:nowrap}
  .actions.main .btn{flex:1;padding:0 12px}
  .actions.main .btn.copyhex{display:none}
  .poster{padding-top:64px}
  .media:has(.try){aspect-ratio:auto}
  .media:has(.try) .media-panel,.try{position:relative;inset:auto}
  .try .poster{aspect-ratio:1/1;flex:none}
  .p-words{font-size:clamp(40px,12vw,72px)}
  .compare{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(80%,1fr);overflow-x:auto;scroll-snap-type:x mandatory;height:auto}
  .cmp{scroll-snap-align:start}
}
@media (max-width:760px){
  :root{--bar:56px;--g:14px}
  .top{position:static;padding-block:max(10px,env(safe-area-inset-top,0px)) 0}
  .bar{flex-wrap:wrap;height:auto;gap:8px;padding:8px 8px 8px 14px}
  .bar-actions{margin-left:auto}
  .search{order:3;flex-basis:calc(100% + 6px);max-width:none;margin:0 0 0 -6px}
  html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + var(--rail) + 20px)}
  .topics{top:env(safe-area-inset-top,0px)}
  .hero{padding-block:36px 28px}
  .hero h1{font-size:clamp(50px,15.6vw,84px);line-height:.92}
  .hero-row{grid-template-columns:1fr;gap:20px;margin-top:40px}
  .spot{justify-content:flex-start}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .card{padding:7px;gap:7px;grid-template-rows:auto 30px auto;border-radius:16px}
  .art{border-radius:10px}
  .tiles{gap:3px}
  .tile{border-radius:6px;min-width:8px}
  .no-photo .tile,[data-mode=swatch] .tile{border-radius:10px}
  .tile i{font-size:10px;bottom:9px}
  .meta{padding:0 0 1px 3px;gap:6px}
  .meta h2{font-size:14.5px}
  .meta p{font-size:12.5px}
  .meta .src{display:none}
  .keep{width:32px;height:32px}
  .keep .knob{width:22px;height:22px}
  .results{padding-block:8px 12px}
  .results-tools{gap:6px;width:100%}
  .results-tools .seg{margin-right:auto}
  .results-tools .seg button:not([aria-pressed=true]){padding:0 11px}
  .results-tools .seg button:not([aria-pressed=true]) span{display:none}
  .results-tools .btn{height:44px;padding:0 15px}
  #download-selection{display:none}
  .foot-row{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important}
}
