#tabs { display: flex; flex: none; flex-wrap: wrap; gap: 4px; margin: 0 18px; padding: 4px; border-radius: 20px; background: var(--tile); }
#tabs button { flex: 1 0 auto; height: 32px; padding: 0 8px; font-size: 13px; border-radius: 99px; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
#tabs button:hover { color: var(--ink); }
#tabs [aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
#options { flex: 1; min-height: 0; padding: 4px 18px 18px; overflow-y: auto; scrollbar-width: thin; }
#options h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 14px 4px 10px; font-size: 14px; font-weight: 600; }
#options h3 em { color: var(--muted); font-style: normal; font-weight: 500; }
#options h3 small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.idle .tiles, .idle .dots { opacity: .4; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.tiles button { display: grid; gap: 4px; padding: 4px 4px 2px; border-radius: 18px; color: var(--muted); font-size: 12px; transition: background-color .2s; }
.tiles button:hover { background: var(--tile); color: var(--ink); }
/* a light tile in both themes, so black hair always shows */
.thumb-art { display: block; aspect-ratio: 1; padding: 4px; overflow: hidden; border: 2px solid transparent; border-radius: 15px; background: #f4f4f6; transition: scale .3s var(--spring); }
.thumb-art svg { display: block; width: 100%; height: 100%; }
.tiles button:active .thumb-art { scale: .95; }
.tiles [aria-pressed="true"] { color: var(--ink); }
.tiles [aria-pressed="true"] .thumb-art { border-color: var(--accent); background: #e8efff; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.dots { display: flex; flex-wrap: wrap; gap: 12px; padding: 2px 4px; }
.dots button { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(128 128 128 / .4); transition: scale .3s var(--spring); }
.dots button:hover { scale: 1.12; }
.dots [aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
#colours.backdrop { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px; padding: 2px 4px; }
#colours.backdrop > * { width: 40px; height: 40px; }
@media (max-width: 700px) { #tabs { flex-wrap: nowrap; margin: 0 10px; overflow-x: auto; scrollbar-width: none; } #options { padding: 0 10px 12px; } .tiles { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } #options h3 small { width: 100%; margin: 0; } }
.describe { display: flex; flex: none; gap: 8px; margin: 0 18px 10px; }
.describe input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); font-size: 14px; }
.describe input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent); }
.describe button { height: 40px; padding: 0 18px; border-radius: 99px; background: var(--ink); color: var(--page); }
#understood { flex: none; margin: -4px 24px 10px; color: var(--muted); font-size: 12px; }
#understood:empty { display: none; }
@media (max-width: 700px) { .describe { margin: 0 10px 8px; } #understood { margin: -2px 14px 8px; } }
