/* Whitebox Gallery. DeviantArt-like: a gallery wall of justified rows, the work on a stage. Dark and light themes: the
   visitor's pick (the ☀/☾ button, cookie wg_theme, rendered as <html data-theme>), else their system's. No external fonts. */
:root {
  --bg: #0b0e13; --bg-raised: #12161d; --bg-input: #191e27; --bg-hover: #1e2430; --stage: #050709;
  --line: #242b37; --line-strong: #323b4a;
  --text: #e8ecf2; --text-soft: #d5dbe5; --muted: #98a2b3; --faint: #677184;
  --accent: #19e3a2; --accent-hover: #4cf0bb; --accent-ink: #03140d; --accent-soft: rgba(25, 227, 162, .12);
  --link: #19e3a2; --link-hover: #4cf0bb; --focus: #19e3a2; --ok-text: #19e3a2;
  --danger: #ff5f6d; --danger-soft: rgba(255, 95, 109, .12); --danger-text: #ff7f8b;
  --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .12); --warn-text: #ffb547;
  --info: #6aa8ff; --info-soft: rgba(106, 168, 255, .12); --info-text: #8bbcff;
  --note-info: #c9dcff; --note-ok: #b9f5df; --note-bad: #ffc2c8; --note-warn: #ffe0ad;
  --header-bg: rgba(11, 14, 19, .92); --shadow-pop: 0 14px 40px rgba(0, 0, 0, .5); --shadow-media: 0 10px 50px rgba(0, 0, 0, .6);
  --toast-bg: #f1f4f8; --toast-fg: #0b0e13; --banner-base: #10141b; --banner-l1: 35%; --banner-l2: 30%;
  color-scheme: dark;
  --radius: 10px; --radius-sm: 6px; --row: 230px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6f9; --bg-raised: #ffffff; --bg-input: #f0f2f6; --bg-hover: #e7eaf0; --stage: #e9ecf1;
    --line: #e1e5eb; --line-strong: #cbd2dc;
    --text: #121722; --text-soft: #2b3341; --muted: #586273; --faint: #8a93a3;
    --accent: #19e3a2; --accent-hover: #12c98f; --accent-ink: #03140d; --accent-soft: rgba(16, 185, 129, .13);
    --link: #077d5a; --link-hover: #05664a; --focus: #077d5a; --ok-text: #077d5a;
    --danger: #e5394b; --danger-soft: rgba(229, 57, 75, .1); --danger-text: #c42a3b;
    --warn: #e08a00; --warn-soft: rgba(224, 138, 0, .12); --warn-text: #9a5a00;
    --info: #2f74d0; --info-soft: rgba(47, 116, 208, .1); --info-text: #235ca6;
    --note-info: #1c4a86; --note-ok: #06573f; --note-bad: #9c1f2d; --note-warn: #774700;
    --header-bg: rgba(255, 255, 255, .92); --shadow-pop: 0 14px 40px rgba(16, 24, 40, .16); --shadow-media: 0 10px 40px rgba(16, 24, 40, .2);
    --toast-bg: #121722; --toast-fg: #f4f6f9; --banner-base: #dde3ea; --banner-l1: 70%; --banner-l2: 64%;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6f9; --bg-raised: #ffffff; --bg-input: #f0f2f6; --bg-hover: #e7eaf0; --stage: #e9ecf1;
  --line: #e1e5eb; --line-strong: #cbd2dc;
  --text: #121722; --text-soft: #2b3341; --muted: #586273; --faint: #8a93a3;
  --accent: #19e3a2; --accent-hover: #12c98f; --accent-ink: #03140d; --accent-soft: rgba(16, 185, 129, .13);
  --link: #077d5a; --link-hover: #05664a; --focus: #077d5a; --ok-text: #077d5a;
  --danger: #e5394b; --danger-soft: rgba(229, 57, 75, .1); --danger-text: #c42a3b;
  --warn: #e08a00; --warn-soft: rgba(224, 138, 0, .12); --warn-text: #9a5a00;
  --info: #2f74d0; --info-soft: rgba(47, 116, 208, .1); --info-text: #235ca6;
  --note-info: #1c4a86; --note-ok: #06573f; --note-bad: #9c1f2d; --note-warn: #774700;
  --header-bg: rgba(255, 255, 255, .92); --shadow-pop: 0 14px 40px rgba(16, 24, 40, .16); --shadow-media: 0 10px 40px rgba(16, 24, 40, .2);
  --toast-bg: #121722; --toast-fg: #f4f6f9; --banner-base: #dde3ea; --banner-l1: 70%; --banner-l2: 64%;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column;
  transition: background-color .2s, color .2s; }
main { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
p { margin: 0 0 .8rem; }
code { background: var(--bg-input); padding: .1rem .35rem; border-radius: 4px; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 24px 20px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; height: 60px; padding: 0 20px;
  background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.logo { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); padding: 7px 12px; border-radius: 8px; font-weight: 550; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--bg-hover); }
.nav a.on { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; gap: 10px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pill b { color: var(--text); font-weight: 650; }
.pill:hover { color: var(--text); border-color: var(--muted); }
.theme-btn { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--text); background: var(--bg-hover); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-btn .ic-moon { display: none; fill: currentColor; stroke: none; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .ic-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-btn .ic-moon { display: block; }
}
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; position: relative; display: flex; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--bg-raised); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { color: var(--text); padding: 8px 12px; border-radius: 7px; text-align: left; font: inherit; background: none; border: 0; cursor: pointer; width: 100%; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg-hover); }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head span { color: var(--muted); font-size: .85rem; }
.badge-dot { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.banner { background: var(--warn-soft); color: var(--warn-text); border-bottom: 1px solid rgba(255, 181, 71, .25); padding: 8px 20px; font-size: .9rem; text-align: center; }

/* ---------- avatars ---------- */
.avatar { --h: 160; width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 40) 70% 30%)); color: #fff; font-weight: 750; font-size: 1rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: .9rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.3rem; }
.avatar.xl { width: 104px; height: 104px; font-size: 2.6rem; border: 4px solid var(--bg); }

/* ---------- buttons, chips, notes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--bg-input); color: var(--text); font: 600 .92rem/1.2 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--bg-hover); border-color: var(--muted); color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover { background: var(--bg-hover); border-color: transparent; }
.btn-danger-quiet { background: transparent; color: var(--danger-text); border-color: rgba(255, 95, 109, .35); }
.btn-danger-quiet:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger-text); }
.btn-sm { padding: 5px 10px; font-size: .84rem; border-radius: 7px; }
.btn-lg { padding: 11px 22px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-like .heart { color: var(--muted); transition: color .15s, transform .15s; }
.btn-like.on .heart { color: var(--danger); transform: scale(1.15); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--bg-input); border: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
a.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-ok { color: var(--ok-text); background: var(--accent-soft); border-color: transparent; }
.chip-wait { color: var(--warn-text); background: var(--warn-soft); border-color: transparent; }
.chip-run { color: var(--info-text); background: var(--info-soft); border-color: transparent; }
.chip-bad { color: var(--danger-text); background: var(--danger-soft); border-color: transparent; }
.note { padding: 9px 13px; border-radius: 8px; background: var(--info-soft); color: var(--note-info); font-size: .9rem; margin: 10px 0; }
.note-ok { background: var(--accent-soft); color: var(--note-ok); }
.note-bad { background: var(--danger-soft); color: var(--note-bad); }
.note-warn { background: var(--warn-soft); color: var(--note-warn); }

/* ---------- explore ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 36px; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.hero-small { font-size: .95rem !important; }
.hero-cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-steps b { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--ok-text); }
.hero-steps strong { color: var(--text); }
.hero-steps span { color: var(--muted); }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 12px; }
.feed-head .chips { margin: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.feed-head .tabs { margin: 0; border: 0; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs-big a { font-size: 1.02rem; padding: 10px 18px; }
.tabs-big small { color: var(--faint); font-weight: 500; margin-left: 6px; }

/* justified rows: every tile is as wide as its picture at row height, then rows stretch to the edge */
.tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tiles::after { content: ""; flex-grow: 1e4; }
.tiles-sm { --row: 170px; }
.tile { position: relative; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row)); max-width: calc(var(--ar) * var(--row) * 2.2);
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-raised); color: #fff; }
.tile:hover { color: #fff; }
.tile-media { display: block; position: relative; height: 0; }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tag { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: .75rem; font-weight: 650; backdrop-filter: blur(4px); }
.tag svg { width: 9px; height: 9px; fill: currentColor; }
.tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82)); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.tile:hover .tile-info, .tile:focus-visible .tile-info { opacity: 1; transform: none; }
@media (hover: none) { .tile-info { opacity: 1; transform: none; } }
.tile-title { font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: #cfd6e2; }
.tile-meta .by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta .stats { display: flex; gap: 8px; flex: none; }
.more-row { display: flex; justify-content: center; margin: 22px 0 8px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; fill: none; stroke: var(--line-strong); stroke-width: 3; margin-bottom: 8px; }
.empty svg path { fill: var(--line-strong); stroke: none; }
.empty h2 { color: var(--text); margin-top: 0; }
.error-code { font-size: 4rem; color: var(--line-strong); }

/* ---------- work page ---------- */
.work-main { padding: 0; }
.stage { background: var(--stage); display: flex; justify-content: center; align-items: center; min-height: 320px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stage-media { max-width: min(100%, 1200px); max-height: 76vh; width: auto; height: auto; border-radius: 4px; box-shadow: var(--shadow-media); }
video.stage-media { background: #000; }
.stage-wait { color: var(--muted); text-align: center; padding: 60px 20px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); margin: 0 auto 14px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.work-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding-top: 24px; padding-bottom: 12px; }
.work-title { font-size: 1.6rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.author { display: flex; align-items: center; gap: 10px; color: var(--text); }
.author span { display: flex; flex-direction: column; line-height: 1.25; }
.author small { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.owner-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-bottom: 18px; }
.owner-box .note { flex-basis: 100%; margin: 4px 0 0; }
.owner-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-soft); margin-bottom: 18px; }
.lineage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.mini { display: flex; align-items: center; gap: 10px; color: var(--text); }
.mini img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.mini span { display: flex; flex-direction: column; line-height: 1.3; }
.mini small { color: var(--muted); }
.work-side { display: flex; flex-direction: column; gap: 14px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--bg-raised); padding: 10px 12px; }
.facts div:last-child:nth-child(odd) { grid-column: span 2; }
.facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.prompt-box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.prompt-box summary { cursor: pointer; font-weight: 650; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.prompt-box p { margin: 8px 0; color: var(--text-soft); font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.start-pic { margin: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.start-pic img { border-radius: 6px; max-height: 220px; margin: 0 auto; }
.start-pic figcaption { color: var(--muted); font-size: .8rem; text-align: center; margin-top: 6px; }
.mod-box { border: 1px solid rgba(255, 181, 71, .35); background: var(--warn-soft); border-radius: var(--radius); padding: 12px 14px; }
.mod-box h3 { margin: 0 0 6px; color: var(--warn-text); }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.section { padding-bottom: 8px; }
.section h2 .muted { font-weight: 500; font-size: .95rem; }

/* ---------- create ---------- */
.create { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 26px 0; }
.create-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 650; font-size: .9rem; }
.field small { font-weight: 450; }
input, textarea, select { font: inherit; color: var(--text); background: var(--bg-input); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; width: 100%; }
textarea { resize: vertical; min-height: 44px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--accent); }
#prompt { font-size: 1.02rem; min-height: 130px; }
.prompt-meta { display: flex; justify-content: flex-end; margin-top: -8px; }
.checks:empty { display: none; }
.checks .note { margin: 0 0 6px; }
.aspects { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.aspects legend { font-weight: 650; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.aspects label { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.aspects input { position: absolute; opacity: 0; pointer-events: none; }
.aspects label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.aspects label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.shape { display: inline-block; border: 2px solid currentColor; border-radius: 3px; opacity: .8; }
.shape-portrait { width: 12px; height: 16px; } .shape-square { width: 15px; height: 15px; } .shape-landscape { width: 18px; height: 13px; }
.create-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.source-card { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 6px; }
.source-thumb img { width: 120px; max-height: 160px; object-fit: cover; border-radius: 8px; }
.source-what { margin-bottom: 4px; }
.create-side h2 { margin-top: 4px; }
.create-side h2 + * { margin-bottom: 26px; }
.active-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.active-list:empty::before { content: attr(data-empty); color: var(--faint); font-size: .88rem; }
.active-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 9px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 9px; }
.active-thumb { width: 52px; height: 52px; border-radius: 6px; background: var(--bg-input); display: grid; place-items: center; overflow: hidden; font-size: 1.3rem; }
.active-thumb img { width: 100%; height: 100%; object-fit: cover; }
.active-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.active-text b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-text span { font-size: .8rem; color: var(--muted); }
.bar { height: 5px; border-radius: 3px; background: var(--bg-input); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .6s ease; }
.bar.wait > span { background: var(--warn); }
.active-item.failed { border-color: rgba(255, 95, 109, .35); }
.active-item.done { border-color: rgba(25, 227, 162, .35); }
.quota-bars { display: flex; flex-direction: column; gap: 10px; }
.qbar { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.qbar-track { height: 7px; border-radius: 4px; background: var(--bg-input); overflow: hidden; }
.qbar-fill { display: block; height: 100%; background: var(--accent); }

/* ---------- my creations ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; }
.page-head h1 { margin: 0; }
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 14px 0 30px; }
.mine-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mine-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-input); }
.mine-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mine-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; opacity: .5; }
.mine-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .5); }
.mine-progress span { display: block; height: 100%; background: var(--accent); transition: width .6s; }
.mine-card[data-status=pending] .mine-media img, .mine-card[data-status=submitted] .mine-media img, .mine-card[data-status=running] .mine-media img { opacity: .55; }
.mine-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mine-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mine-title { margin: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-state { margin: 0; min-height: 1.2em; overflow-wrap: anywhere; }
.mine-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ---------- profile ---------- */
.profile-head { margin-bottom: 18px; }
.profile-banner { --h: 160; height: 150px; border-radius: 0 0 var(--radius) var(--radius);
  background: radial-gradient(circle at 20% 30%, hsl(var(--h) 70% var(--banner-l1) / .9), transparent 60%), radial-gradient(circle at 80% 70%, hsl(calc(var(--h) + 60) 70% var(--banner-l2) / .8), transparent 55%), var(--banner-base); }
.profile-row { display: flex; align-items: flex-end; gap: 18px; margin-top: -46px; padding: 0 12px; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 200px; padding-bottom: 6px; }
.profile-id h1 { margin: 0; }
.profile-id p { margin: 0; }
.profile-stats { display: flex; gap: 22px; margin: 0; padding-bottom: 8px; }
.profile-stats dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.profile-stats dd { margin: 0; font-size: 1.2rem; font-weight: 750; }
.profile-bio { max-width: 760px; margin: 14px 12px 0; color: var(--text-soft); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- forms, auth, settings ---------- */
.auth { display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; }
.card-form { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.card-form h2 { margin: 0; }
.avatar-now { display: flex; align-items: center; gap: 12px; }
.avatar-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-pick legend { font-weight: 650; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.avatar-pick input { position: absolute; opacity: 0; }
.avatar-opt { display: block; border-radius: 50%; padding: 3px; border: 2px solid transparent; cursor: pointer; }
.avatar-pick label:has(input:checked) .avatar-opt { border-color: var(--accent); }
.prose { line-height: 1.65; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 1.8rem; }

/* ---------- admin ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.review-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.review-card.gone { opacity: .35; pointer-events: none; }
.review-media img { width: 120px; height: 150px; object-fit: cover; border-radius: 6px; }
.review-body p { margin: 0 0 6px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 8px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table select { width: auto; padding: 4px 8px; }
.table-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.table-dense td { padding: 5px 8px; }
.search-row { display: flex; gap: 8px; max-width: 420px; }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { width: 150px; }
.inline-form .grow { flex: 1; min-width: 200px; }
.codes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.codes code { font-size: 1rem; padding: 6px 10px; background: var(--accent-soft); color: var(--ok-text); cursor: pointer; }
.status-box { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised); line-height: 1.7; }
.status-box.ok { border-color: rgba(25, 227, 162, .35); }
.status-box.bad { border-color: rgba(255, 95, 109, .45); }
.pause-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ---------- dialogs, toast, footer ---------- */
.dialog { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg-raised); color: var(--text); padding: 22px; width: min(480px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, .65); }
.dialog form { display: flex; flex-direction: column; gap: 12px; }
.dialog h2 { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50;
  background: var(--toast-bg); color: var(--toast-fg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); color: #fff; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 20px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.foot a { color: var(--muted); }

/* ---------- search, tags, uploads ---------- */
.search { flex: 1 1 260px; max-width: 420px; }
.search input, .search-big input { width: 100%; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-input);
  color: var(--text); font: inherit; font-size: .92rem; }
.search input:focus, .search-big input:focus { outline: none; border-color: var(--accent); }
.search-btn { display: none; padding: 7px 10px; }
.search-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.search-big { display: flex; gap: 8px; max-width: 560px; margin: 8px 0 12px; }
.list-head { margin: 22px 0 6px; }
.list-head h1 { margin: 0 0 4px; overflow-wrap: anywhere; }
.people-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.person:hover { border-color: var(--line-strong); background: var(--bg-hover); color: var(--text); }
.person span { display: flex; flex-direction: column; line-height: 1.2; }
.person small { color: var(--muted); }
.chip-tag { font-weight: 550; }
.chip-tag .muted { font-weight: 450; margin-left: 4px; }
.tag-chips { margin: 4px 0 14px; }
.tag-row { margin: -2px 0 14px; }
.tag-cloud { gap: 8px; }
.drop { position: relative; display: grid; place-items: center; min-height: 220px; padding: 18px; border: 2px dashed var(--line-strong); border-radius: 14px;
  background: var(--bg-raised); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft, var(--bg-hover)); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.drop-empty b { color: var(--text); font-size: 1.1rem; }
.drop-empty small { font-size: .82rem; }
.drop-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.drop-preview img, .drop-preview video { max-width: 100%; max-height: 360px; border-radius: 10px; }
.drop [hidden] { display: none; }
label.tick { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0; font-size: .92rem; }
label.tick input { margin-top: 4px; flex: none; }
.upload-progress { display: flex; flex-direction: column; gap: 6px; }
.upload-progress[hidden] { display: none; }
.upload-progress .bar > span { transition: width .2s linear; width: 0; }
.plain-list { padding-left: 18px; }
.plain-list li { margin: 6px 0; }

/* ---------- follows, comments, notifications ---------- */
.btn-follow .f-on { display: none; }
.btn-follow.on .f-on { display: inline; }
.btn-follow.on .f-off { display: none; }
.btn-follow:not(.on) { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-follow:not(.on):hover { opacity: .88; background: var(--text); color: var(--bg); }
.btn-follow.on:hover .f-on::after { content: " ✕"; }
.bell { position: relative; width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted); }
.bell:hover, .bell.on { color: var(--text); background: var(--bg-hover); }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.bell .badge-dot { top: -2px; right: -4px; }
.people-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 8px 0 20px; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.person-row .person { border: 0; padding: 0; background: none; min-width: 0; }
.person-row .person span { min-width: 0; }
.person-row .person b, .person-row .person small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-stats a { color: inherit; }
.profile-stats a:hover { color: var(--accent); }
.comments { max-width: 860px; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 18px; }
.comment-input { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.comment-input textarea { width: 100%; resize: vertical; min-height: 64px; }
.comment-go { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.comment-go [hidden] { display: none; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.comment:target { background: var(--accent-soft, var(--bg-hover)); border-radius: 8px; }
.comment.held { opacity: .75; }
.comment-av { flex: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { margin: 0 0 2px; }
.comment-head a { color: var(--text); }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-soft); }
.comment-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); font: 600 .82rem/1.4 var(--font); cursor: pointer; }
.btn-link:hover { color: var(--text); }
.btn-link.danger:hover { color: var(--danger-text); }
.replies { margin-top: 6px; }
.replies .comment { padding: 10px 0 4px; }
.reply-slot .comment-form { margin: 10px 0 4px; }
.chip-sm { padding: 0 7px; font-size: .72rem; }
.notes { list-style: none; padding: 0; margin: 10px 0; }
.notes li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.notes li.new { background: var(--accent-soft, var(--bg-hover)); }
.notes li > div { flex: 1; min-width: 0; }
.notes p { margin: 0; }
.note-quote { color: var(--text-soft); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px !important; }
.note-thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
tr.gone { opacity: .35; pointer-events: none; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- small screens ---------- */
@media (max-width: 1360px) { .nav a[href="/rules"] { display: none; } .top { gap: 14px; } }   /* Rules: in the footer */
@media (max-width: 1180px) { .quota-pill { display: none; } .search { flex-basis: 160px; } .nav a { padding: 7px 9px; } }
@media (max-width: 900px) { .search { display: none; } .search-btn { display: inline-flex; } }
@media (max-width: 980px) {
  .work-body, .create { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 30px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --row: 150px; }
  .tiles-sm { --row: 120px; }
  .wrap, .narrow { padding: 0 16px; }
  .narrow { padding-top: 16px; }
  .top { gap: 10px; padding: 0 12px; }
  .brand-name, .quota-pill, .search, .upload-btn { display: none; }
  .search-btn { display: inline-flex; }
  .nav a[href="/me"], .nav a[href="/following"] { display: none; }   /* in the account menu */
  .top-right { gap: 6px; }
  .nav a { padding: 6px 8px; }
  .top-right .btn { padding: 7px 11px; }
  .stage { padding: 0; min-height: 200px; }
  .stage-media { max-height: 70vh; border-radius: 0; }
  .profile-banner { height: 100px; }
  .profile-row { margin-top: -38px; }
  .avatar.xl { width: 84px; height: 84px; font-size: 2rem; }
  .mine { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .review-card { grid-template-columns: 90px minmax(0, 1fr); }
  .review-media img { width: 90px; height: 120px; }
  .table { display: block; overflow-x: auto; }
  .source-card { flex-direction: column; align-items: flex-start; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) { .nav a[href="/rules"] { display: none; } }
.menu-small { display: none; }
@media (max-width: 520px) {
  .nav { display: none; }                         /* the logo is Explore; the rest is in the account menu */
  .menu-small { display: block; }
  .top-right { gap: 4px; }
  .top-right .btn { padding: 7px 9px; }
  .btn-label { display: none; }
}
@media (max-width: 520px) { body:has(.menu) .top .theme-btn { display: none; } }

/* ---------- the 🔞 Blackbox: the 18+ section (a darker, red-accented look, so nobody mistakes where they are) ---------- */
.nav-bb { color: var(--bb, #e5484d); }
.chip-bb { color: #fff; background: var(--bb, #e5484d); border-color: transparent; }
.note-bb { background: rgba(229, 72, 77, .12); color: var(--text); border-left: 3px solid var(--bb, #e5484d); }
body.bb { --accent: #e5484d; --accent-hover: #f2555a; --accent-ink: #fff; --accent-soft: rgba(229, 72, 77, .14); }
.bb-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 8px 0 18px; }
.bb-head h1 { margin: 0 0 4px; }
.bb-head p { max-width: 70ch; margin: 0; }
.gate { max-width: 680px; margin: 32px auto; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--bb, #e5484d); border-radius: 14px; background: var(--bg-raised); }
.gate h1 { margin-top: 0; }
.gate ul { padding-left: 20px; }
.gate li { margin: 6px 0; }
.gate label.tick { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.gate label.tick input { margin-top: 4px; flex: none; }
.gate .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* 🔞 Blackbox media: blurred until tapped (gallery.js, data-nsfw); the cover says what's under it */
.nsfw:not(.shown) img, .nsfw:not(.shown) video { filter: blur(28px) saturate(.7) brightness(.75); }
.mini.nsfw:not(.shown) img, .note-thumb.nsfw:not(.shown) img { filter: blur(7px) saturate(.7) brightness(.75); }
.nsfw { cursor: pointer; }
.nsfw.shown { cursor: auto; }
.tile.nsfw.shown, .mini.nsfw.shown, .note-thumb.nsfw.shown { cursor: pointer; }
.nsfw-cover { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 10px; border: 0; background: rgba(10, 4, 6, .3); color: #fff; font: 600 .8rem/1.3 var(--font); text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7); cursor: pointer; }
.nsfw-cover b { font-size: .95rem; padding: 2px 9px; border-radius: 6px; background: var(--bb, #e5484d); text-shadow: none; }
.nsfw.shown .nsfw-cover { display: none; }
.nsfw-box { position: relative; display: flex; overflow: hidden; border-radius: 4px; max-width: min(100%, 1200px); }
.nsfw-box .stage-media { max-width: 100%; border-radius: 0; }
.nsfw-box .nsfw-cover { font-size: .95rem; }
.nsfw-box .nsfw-cover b { font-size: 1.15rem; padding: 4px 12px; }
.start-pic.nsfw { position: relative; overflow: hidden; }
.nsfw-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 9px 13px;
  border-radius: 8px; background: rgba(229, 72, 77, .12); border-left: 3px solid var(--bb, #e5484d); font-size: .9rem; }
.nsfw-bar span { flex: 1 1 320px; }

/* "made by people, with AI": the notice on top until "Got it", the footer line, the line under a work */
.ai-notice { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 8px 20px; font-size: .88rem;
  background: var(--info-soft); color: var(--note-info); border-bottom: 1px solid var(--line); }
.ai-notice p { margin: 0; max-width: 100ch; }
.ai-notice a { color: inherit; text-decoration: underline; }
.foot-note { flex-basis: 100%; margin: 0; max-width: 120ch; }
.ai-note { color: var(--muted); font-size: .85rem; margin: 10px 0; }
.ai-note .btn-link { font-size: inherit; text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 72px; }

/* the settings chips of a work (works.chips), as the studio shows them: on its page under the picture's facts, and on a tile
   as one line over the picture (the tile's caption is always dark, so its chips are too) */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 7px; border-radius: 6px; font-size: .76rem; line-height: 1.55;
  white-space: nowrap; background: var(--bg-input); border: 1px solid var(--line); color: var(--text-soft); max-width: 100%; }
.chip .ci { font-size: .8em; align-self: center; }
.chip i { font-style: normal; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.chip b { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.chip small { color: var(--muted); font-size: .68rem; }
.chip.made { border-color: rgba(6, 182, 212, .5); }
.chip.lora { background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .38); }
.work-chips { margin: 0 0 12px; }
.tile-chips { flex-wrap: nowrap; overflow: hidden; margin-top: 4px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.tile-chips .chip { background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .16); color: #e8ecf2; font-size: .68rem; padding: 0 5px; flex: none; }
.tile-chips .chip i { color: #aab3c2; font-size: .58rem; }
.tile-chips .chip b { color: #fff; }
.tile-chips .chip small { color: #c4b5fd; }
.tile-chips .chip.made { border-color: rgba(34, 211, 238, .5); }
.tile-chips .chip.lora { background: rgba(124, 92, 255, .3); border-color: rgba(167, 139, 250, .5); }
@media (hover: hover) { .tile-chips { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; } }   /* shown on hover only: every chip fits */
