/* The web library, account and sign-in pages in the "Nocturne" look (design/web-library-mocks.html,
   direction A): an immersive dark gallery with a glass top bar (logo, section tabs, search) over the
   art (on phones the sections sit in a floating glass drawer), a full-bleed featured hero on the section pages and a masonry wall of large images.
   Beige and gold are the only accents. Dark by default; html[data-theme="light"] (set by the
   head script from localStorage, toggled in shell.js) switches every token to the light set.
   Self-contained: these pages do not load styles.css or fonts.css. Fonts are self-hosted. */

/* ---------------------------------------------------------------- fonts (self-hosted, SIL OFL) */
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/instrumentsans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/instrumentsans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/unbounded-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/jetbrainsmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/jetbrainsmono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #080707;
  --bg2: #100e0d;
  --surf: #161413;
  --surf2: #1f1c1a;
  --line: rgba(241, 236, 226, .09);
  --line2: rgba(241, 236, 226, .18);
  --tx: #f1ece2;
  --tx2: #b9b1a5;
  --tx3: #8a8278;
  --acc: #ecd9b4;
  --focus: #ecd9b4;
  --glass: rgba(16, 14, 13, .55);
  --glass2: rgba(26, 23, 21, .78);
  --shade: rgba(0, 0, 0, .55);
  --danger: #eba293;
  --danger-line: rgba(235, 162, 147, .45);
  --on-gold: #0b0a0a;
  --gold-grad: linear-gradient(120deg, #f6ead2 0%, #e6cb95 28%, #c69a52 52%, #e9cf98 74%, #f8eedb 100%);
  --sand: #ecd9b4;
  --mark-filter: none;

  --display: "Unbounded", "Segoe UI Variable Display", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --tb-h: 72px;
  --gut-l: 40px;
  --gut-r: 40px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3eee5;
  --bg2: #ebe4d8;
  --surf: #fffdf9;
  --surf2: #e6dece;
  --line: rgba(30, 24, 18, .1);
  --line2: rgba(30, 24, 18, .2);
  --tx: #17130f;
  --tx2: #5a5147;
  --tx3: #73695d;
  --acc: #8a6428;
  --focus: #8a6428;
  --glass: rgba(255, 253, 249, .6);
  --glass2: rgba(255, 253, 249, .86);
  --shade: rgba(60, 45, 25, .18);
  --danger: #a3392b;
  --danger-line: rgba(163, 57, 43, .45);
  --mark-filter: invert(1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--sand); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
html:not(.js) .js-mode, html:not(.js) .js-only { display: none !important; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--tx); color: var(--bg); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  height: 40px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--line2); background: transparent;
  color: var(--tx); font: 500 14px var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .3s var(--ease), background-position .5s var(--ease), box-shadow .3s ease;
}
.btn:hover { border-color: var(--tx3); background: var(--surf2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-line { background: transparent; }
.btn-gold {
  border-color: transparent; color: var(--on-gold); font-weight: 600;
  background: var(--gold-grad); background-size: 200% 100%; background-position: 0 0;
}
.btn-gold:hover { background: var(--gold-grad); background-size: 200% 100%; background-position: 100% 0; border-color: transparent; transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(217, 181, 116, .55); }
.btn-gold:active { transform: scale(.98); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { border-color: var(--danger); background: transparent; }

.tb-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line2); background: transparent;
  color: inherit; cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.tb-icon:hover { background: var(--surf2); }
.tb-icon svg { width: 18px; height: 18px; }
.js-mode .i-sun { display: none; }
[data-theme="light"] .js-mode .i-sun { display: block; }
[data-theme="light"] .js-mode .i-moon { display: none; }

/* heart + bookmark (no numbers on them; counts live in the stats) */
.soc {
  width: 36px; height: 36px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(12, 10, 9, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.soc:hover { background: rgba(12, 10, 9, .7); }
.soc svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.soc:active svg { transform: scale(.8); }
.soc[aria-pressed="true"] { color: var(--sand); }
.soc[aria-pressed="true"] svg path { fill: currentColor; }
.soc.pop svg { animation: pop .32s var(--ease); }
.soc.is-busy { opacity: .6; pointer-events: none; }
.soc.framed {
  width: auto; height: 42px; padding: 0 16px; gap: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-color: var(--line2); color: var(--tx); font: 500 14px var(--body);
}
.soc.framed:hover { background: var(--surf2); }
.soc.framed[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }

@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- top bar */
.tb {
  position: sticky; top: 0; z-index: 40;
  height: var(--tb-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 28px;
  color: var(--tx);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  transition: background-color .3s ease, color .3s ease;
}
.tb-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  text-decoration: none; font: 600 16px/1 var(--body); letter-spacing: -.01em; color: inherit;
}
.tb-brand img { width: 28px; height: 28px; filter: var(--mark-filter); }
.tb-menu { display: none; }
/* Section tabs (desktop): the current one gets the gold underline. */
.tb-tabs { display: flex; align-items: center; gap: 2px; flex: none; margin-left: 6px; }
.tb-tab {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font: 500 14px/1.2 var(--body); color: var(--tx2); text-decoration: none; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.tb-tab:hover { color: var(--tx); background: var(--line); }
.tb-tab[aria-current="page"] { color: var(--tx); font-weight: 600; }
.tb-tab[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px; border-radius: 2px;
  background: var(--gold-grad);
}
[data-theme="light"] .tb-tab[aria-current="page"]::after { background: var(--acc); }
.tb-search {
  flex: 1 1 auto; min-width: 0; max-width: 680px; margin: 0 auto;
  height: 46px; display: flex; align-items: center; gap: 12px;
  padding: 0 14px 0 18px;
  border-radius: 999px; border: 1px solid var(--line2); background: var(--glass2);
  color: var(--tx2);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .3s ease;
}
.tb-search:hover { border-color: var(--tx3); }
.tb-search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(236, 217, 180, .12); }
.tb-search > svg { width: 18px; height: 18px; flex: none; }
.tb-search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: none; color: var(--tx);
  font: 400 14.5px var(--body); text-overflow: ellipsis;
}
.tb-search input::placeholder { color: var(--tx2); opacity: .9; }
.tb-search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; cursor: pointer; }
.tb-kbd { font: 500 11px var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid currentColor; opacity: .55; flex: none; }
.tb-search:focus-within .tb-kbd { display: none; }
.tb-right { display: flex; align-items: center; gap: 10px; flex: none; }
.tb-acct { position: relative; display: flex; }
.tb-signin { padding: 0 20px; }

/* Over the hero: transparent, light text, glass controls. Becomes solid glass once scrolled. */
.js .has-hero .tb:not(.is-solid) {
  color: #f1ece2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.js .has-hero .tb:not(.is-solid) .tb-brand img { filter: none; }
.js .has-hero .tb:not(.is-solid) .tb-tab { color: rgba(241, 236, 226, .8); }
.js .has-hero .tb:not(.is-solid) .tb-tab:hover { color: #f1ece2; background: rgba(241, 236, 226, .1); }
.js .has-hero .tb:not(.is-solid) .tb-tab[aria-current="page"] { color: #f1ece2; }
.js .has-hero .tb:not(.is-solid) .tb-tab[aria-current="page"]::after { background: var(--gold-grad); }
.js .has-hero .tb:not(.is-solid) .tb-search {
  background: rgba(20, 18, 16, .42); border-color: rgba(241, 236, 226, .2); color: rgba(241, 236, 226, .78);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
}
.js .has-hero .tb:not(.is-solid) .tb-search input { color: #f1ece2; }
.js .has-hero .tb:not(.is-solid) .tb-search input::placeholder { color: rgba(241, 236, 226, .78); }
.js .has-hero .tb:not(.is-solid) .tb-icon,
.js .has-hero .tb:not(.is-solid) .btn-line,
.js .has-hero .tb:not(.is-solid) .tb-menu {
  border-color: rgba(241, 236, 226, .26); background: rgba(20, 18, 16, .3); color: #f1ece2;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.js .has-hero .tb:not(.is-solid) .av-btn { box-shadow: 0 0 0 1px rgba(241, 236, 226, .3); }

/* account avatar + menu (opens on click only) */
.av {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  font: 700 13px var(--body); color: var(--on-gold); background: var(--gold-grad);
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-btn { padding: 0; border: 0; cursor: pointer; transition: box-shadow .2s ease; }
.av-btn:hover, .av-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(236, 217, 180, .3) !important; }
.menu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
  width: 240px; padding: 8px;
  color: var(--tx);
  background: var(--glass2); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid var(--line2); border-radius: 18px;
  box-shadow: 0 30px 60px -20px var(--shade);
  animation: rise .2s var(--ease);
}
.menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.menu-head .av { width: 34px; height: 34px; font-size: 13px; }
.menu-head div { min-width: 0; }
.menu-head div b, .menu-head div span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head b { font-weight: 600; font-size: 14px; }
.menu-head div span { color: var(--tx3); font-size: 12.5px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--tx); text-decoration: none; text-align: left; cursor: pointer; font: 500 14px var(--body);
}
.menu-item svg { width: 17px; height: 17px; color: var(--tx2); }
.menu-item:hover, .menu-item:focus-visible { background: var(--surf2); outline: none; }

/* ---------------------------------------------------------------- the phone drawer
   Phones only (see the 860 px block). On desktop the sections are top-bar tabs and Saved, Liked and
   Account sit in the avatar menu, so the library gets the full width. */
.side {
  display: none; position: fixed; z-index: 35; flex-direction: column;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line);
  color: var(--tx);
}
.side-head, .side-sec, .side-foot, .side-sep { display: none; }
.side-item {
  display: flex; align-items: center; border-radius: 16px; color: var(--tx2); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.side-item svg { flex: none; }
.side-item:hover { color: var(--tx); background: var(--line); }
.side-item[aria-current="page"] { color: var(--tx); background: var(--surf2); }
.side-item[aria-current="page"] svg { color: var(--acc); }
.side-scrim { display: none; }

/* ---------------------------------------------------------------- main */
.main { position: relative; min-width: 0; overflow-x: clip; min-height: calc(100vh - var(--tb-h)); display: flex; flex-direction: column; }
.main:focus { outline: none; }
.wrap { position: relative; z-index: 3; padding: 34px var(--gut-r) 0 var(--gut-l); flex: 1; }
.has-hero .wrap { margin-top: -56px; padding-top: 0; }
.no-side .wrap { padding-left: var(--gut-r); }
.main-foot {
  position: relative; z-index: 3;
  margin-top: 64px; padding: 22px var(--gut-r) 30px var(--gut-l);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  border-top: 1px solid var(--line);
  color: var(--tx3); font-size: 13px;
}
.no-side .main-foot { padding-left: var(--gut-r); }
.main-foot a { color: var(--tx2); text-decoration: none; }
.main-foot a:hover { color: var(--tx); }

/* A soft beige glow behind the pages without a hero (search, lists, account, sign-in, errors). */
body:not(.has-hero) .main::before {
  content: ""; position: absolute; z-index: 0; inset: 0 0 auto 0; height: 520px; pointer-events: none;
  background: radial-gradient(60% 80% at 20% 0%, rgba(236, 217, 180, .09), transparent 70%), radial-gradient(40% 60% at 90% 0%, rgba(198, 154, 82, .07), transparent 70%);
}
[data-view="Theme"] .main::before, [data-view="Wallpaper"] .main::before, [data-view="Widget"] .main::before { display: none; }

/* ---------------------------------------------------------------- featured hero */
.hero {
  position: relative; overflow: hidden; color: #f1ece2;
  height: clamp(520px, 80vh, 680px);
  margin-top: calc(-1 * var(--tb-h));
  background: #0b0a0a;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.04); }
.hero-slide.is-on .hero-bg { animation: drift 18s ease-out both; }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1.04); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(8, 7, 7, .25) 40%, transparent 70%), linear-gradient(to right, rgba(0, 0, 0, .55), transparent 58%);
}
[data-theme="light"] .hero::after {
  background: linear-gradient(to top, var(--bg) 0%, rgba(243, 238, 229, .55) 9%, rgba(8, 7, 7, .12) 24%, transparent 60%), linear-gradient(to right, rgba(0, 0, 0, .5), transparent 58%);
}
/* Widgets: the card shown whole, over a blurred copy of itself; a shorter hero than the art sections. */
.hero.is-contain { height: clamp(440px, 62vh, 540px); }
.hero.is-contain .hero-row { bottom: 84px; }
.hero.is-contain h2 { font-size: clamp(32px, 3.6vw, 46px); }
.hero.is-contain .hero-about { font-size: 15.5px; }
.hero.is-contain .hero-strip a, .hero.is-contain .hero-strip img, .hero.is-contain .hero-strip .ph-img { width: 120px; }
.hero.is-contain .hero-strip img, .hero.is-contain .hero-strip .ph-img { height: 68px; object-fit: contain; background: #fff; }
.hero.is-contain .hero-bg { filter: blur(48px) saturate(1.3) brightness(.55); transform: scale(1.25); animation: none; }
.hero-art {
  position: absolute; z-index: 1; right: var(--gut-r); top: calc(var(--tb-h) + 40px);
  width: min(46%, 620px); height: auto; border-radius: 22px;
}
.hero.is-contain .hero-art {
  top: calc(var(--tb-h) + 28px); width: min(30%, 400px); border-radius: 18px; background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero-row {
  position: absolute; z-index: 2; left: var(--gut-l); right: var(--gut-r); bottom: 110px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px;
}
.hero-texts { flex: 1 1 380px; max-width: 580px; min-width: 0; }
.hero-in { animation: rise .45s var(--ease); }
.eyebrow { font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.hero h2 { font: 500 clamp(40px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.03em; margin: 14px 0 16px; overflow-wrap: anywhere; }
.hero h2 a { color: inherit; text-decoration: none; }
.hero h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-about { font-size: 17px; line-height: 1.55; color: rgba(241, 236, 226, .84); margin-bottom: 20px; max-width: 52ch; }
.hero-stats, .item-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(241, 236, 226, .86); margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.hero-stats .stat b, .item-counts .stat b { font-weight: 600; }
.hero-stats small, .item-counts small { font-size: inherit; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 9px; background: currentColor; opacity: .55; flex: none; }
.hero-acts { display: flex; gap: 10px; align-items: center; }
.hero-acts .btn-gold { height: 44px; padding: 0 20px; }
.hero-socs { display: flex; gap: 8px; }
.hero-socs .soc { width: 40px; height: 40px; border-color: rgba(241, 236, 226, .3); background: rgba(20, 18, 16, .35); }
.hero-strip { display: flex; gap: 12px; flex: none; }
.hero-strip a { width: 150px; color: #f1ece2; text-decoration: none; opacity: .72; transition: opacity .3s ease; }
.hero-strip a:hover, .hero-strip a[aria-current="true"] { opacity: 1; }
.hero-strip img, .hero-strip .ph-img {
  width: 150px; height: 84px; object-fit: cover; border-radius: 12px; margin-bottom: 8px;
  border: 2px solid transparent; background: rgba(255, 255, 255, .06); display: block;
  transition: border-color .3s ease;
}
.hero-strip a[aria-current="true"] img { border-color: var(--sand); }
.hero-strip span { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- bar: heading, chips, sort */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.bar h1 { font: 500 22px/1.2 var(--display); letter-spacing: -.02em; margin-right: 4px; }
.bar-count { font-size: 11.5px; letter-spacing: .04em; color: var(--tx3); margin-right: 14px; white-space: nowrap; }
.bar-note, .bar-blurb { color: var(--tx2); margin: -10px 0 22px; max-width: 70ch; }
.bar-note a, .bar-note b { color: var(--tx); }
.bar-note b { font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-f {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--tx2); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip-f:hover { color: var(--tx); border-color: var(--line2); }
.chip-f.is-on { background: var(--tx); color: var(--bg); border-color: transparent; }
.sortm { margin-left: auto; position: relative; }
.sortm summary {
  display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: 8px 10px 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--tx2);
}
.sortm summary::-webkit-details-marker { display: none; }
.sortm summary:hover { color: var(--tx); background: var(--line); }
.sortm summary svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sortm[open] summary svg { transform: rotate(180deg); }
.strip {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px;
  display: grid; padding: 6px;
  background: var(--glass2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 24px 50px -20px var(--shade);
  animation: rise .18s var(--ease);
}
.strip-f { padding: 9px 12px; border-radius: 10px; color: var(--tx); text-decoration: none; font-size: 14px; }
.strip-f:hover { background: var(--surf2); }
.strip-f.is-on { color: var(--acc); font-weight: 600; }

/* ---------------------------------------------------------------- cards */
.lib-grid { list-style: none; margin: 0; padding: 0; }
.lib-card { position: relative; min-width: 0; }
.lc-shot { position: relative; overflow: hidden; border-radius: 16px; background: var(--surf); }
.lc-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.lib-card:hover .lc-shot img { transform: scale(1.06); }
.lib-card:has(.lc-name:focus-visible) .lc-shot { outline: 2px solid var(--focus); outline-offset: 3px; }
.lc-acts {
  position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; gap: 6px;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lib-card:hover .lc-acts, .lib-card:focus-within .lc-acts, .lc-acts:has([aria-pressed="true"]) { opacity: 1; transform: none; }
@media (hover: none) { .lc-acts { opacity: 1; transform: none; } }
.lc-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 4px 0; }
.lc-txt { min-width: 0; }
.lc-name {
  display: block; font: 600 15px/1.3 var(--body); color: var(--tx); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-name:focus-visible { outline: none; }
.lc-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lc-by { font-size: 12.5px; color: var(--tx3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-stats { display: flex; align-items: center; gap: 6px; flex: none; font: 500 12.5px var(--body); color: var(--tx2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-stats .stat { display: inline-flex; align-items: center; gap: 4px; }
.lc-stats svg { width: 13px; height: 13px; stroke-width: 2; }
.lc-stats .cnt { font-weight: 500; }
/* On cards a count below 10 is left out entirely (icon too), and the dot only sits between two shown counts. */
.lc-stats .stat.is-hid, .lc-stats .stat.is-hid + .dot, .lc-stats .dot:has(+ .stat.is-hid) { display: none; }
.stat.is-hid .cnt { color: var(--tx3); }

/* Masonry wall: a container-sized row unit keeps the card shapes steady at every width. */
.mas-wrap { container-type: inline-size; }
.lib-grid.mas {
  --cols: 4; --gap: 18px; --cap: 6; /* the caption, in rows */
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap); row-gap: 0; grid-auto-flow: row dense;
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) / 25);
}
.mas .lib-card { --img: 14; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); padding-bottom: 22px; grid-row: span calc(var(--img) + var(--cap)); }
.mas .lc-shot { height: 100%; }
/* Eight image shapes, in rows of 1/25 of a column's width (so --img = 25 / aspect ratio). */
.mas .lib-card[data-r="1"] { --img: 31; }  /* 4:5 */
.mas .lib-card[data-r="2"] { --img: 25; }  /* 1:1 */
.mas .lib-card[data-r="3"] { --img: 16; }  /* 16:10 */
.mas .lib-card[data-r="4"] { --img: 33; }  /* 3:4 */
.mas .lib-card[data-r="5"] { --img: 19; }  /* 4:3 */
.mas .lib-card[data-r="7"] { --img: 30; }  /* 5:6 */

/* Even grid: search groups, Saved, Liked, More like this, and the Widgets wall. */
.lib-grid.even { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px 18px; }
.even .lc-shot { aspect-ratio: 16 / 10; }
/* Widget cards: the preview always whole (contain, no hover zoom). */
.lib-card[data-kind="Widget"] .lc-shot { background: #fff; }
.lib-card[data-kind="Widget"] .lc-shot img { object-fit: contain; }
.lib-card[data-kind="Widget"]:hover .lc-shot img { transform: none; }
/* Widget-only grids (the Widgets wall, the Widgets search group, More like this): small cards,
   about six across at 1440 px, the caption stacked so name and stats always fit. */
.lib-grid.is-widgets { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 14px; }
.is-widgets .lc-shot { aspect-ratio: 16 / 9; border-radius: 12px; }
.is-widgets .lc-cap { flex-direction: column; align-items: stretch; gap: 3px; padding: 8px 2px 0; }
.is-widgets .lc-name { font-size: 13.5px; }
.is-widgets .lc-by { font-size: 12px; margin-top: 1px; }
.is-widgets .lc-stats { font-size: 12px; }
.is-widgets .lc-acts { top: 7px; right: 7px; gap: 5px; }
.is-widgets .soc { width: 30px; height: 30px; }
.is-widgets .soc svg { width: 14px; height: 14px; }

.lib-group + .lib-group { margin-top: 44px; }
.grp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.grp-head h2 { font: 500 20px/1.2 var(--display); letter-spacing: -.02em; }
.grp-n { font-size: 11px; color: var(--tx2); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 9px; }
.grp-all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--tx2); font-size: 13.5px; text-decoration: none; }
.grp-all svg { width: 15px; height: 15px; }
.grp-all:hover { color: var(--tx); }

.lib-empty { padding: 56px 0; color: var(--tx2); }
.lib-empty b { display: block; font: 500 18px var(--display); letter-spacing: -.02em; color: var(--tx); margin-bottom: 6px; }
.lib-empty a, .prompt a:not(.btn), .notice a, .panel a:not(.btn):not(.row) { color: var(--tx); text-underline-offset: 2px; }

/* ---------------------------------------------------------------- item page */
.det-bg { position: absolute; z-index: 0; inset: 0 0 auto 0; height: 900px; overflow: hidden; pointer-events: none; }
.det-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(60px) saturate(1.3); opacity: .45; transform: scale(1.2); }
.det-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0, var(--bg) 860px); }
[data-theme="light"] .det-bg img { opacity: .35; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--tx2); min-width: 0; }
.crumbs a { color: var(--tx2); text-decoration: none; }
.crumbs a:hover { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; }
.crumbs svg { width: 15px; height: 15px; flex: none; }
.crumbs b { color: var(--tx); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.item-media { min-width: 0; }
.item-stage { position: relative; border-radius: 22px; overflow: hidden; background: var(--surf); box-shadow: 0 40px 90px -30px var(--shade); aspect-ratio: 16 / 9; }
.item-stage img { width: 100%; height: 100%; object-fit: cover; }
.item.is-wide .item-stage { background: #fff; }
.item.is-wide .item-stage img { object-fit: contain; }
.item-stage:fullscreen { border-radius: 0; background: #000; }
.item-stage:fullscreen img { object-fit: contain; }
.zoom {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(12, 10, 9, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.zoom svg { width: 15px; height: 15px; }
.zoom:hover { background: rgba(12, 10, 9, .72); }
.item-stage:fullscreen .zoom { display: none; }
.item-thumbs { list-style: none; display: flex; gap: 10px; margin: 14px 0 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.item-thumbs a { display: block; width: 132px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; opacity: .6; transition: opacity .2s ease; outline-offset: 2px; }
.item-thumbs a:hover { opacity: 1; }
.item-thumbs a[aria-current="true"] { opacity: 1; outline: 2px solid var(--acc); }
.item-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item-plate {
  min-width: 0; padding: 26px; border-radius: 22px;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid var(--line);
}
.item-plate .eyebrow { color: var(--acc); }
.item-plate h1 { font: 500 34px/1.08 var(--display); letter-spacing: -.03em; margin: 8px 0 10px; overflow-wrap: anywhere; }
.item-by, .item-orig { color: var(--tx2); font-size: 14px; overflow-wrap: anywhere; }
.item-by b { color: var(--acc); font-weight: 600; }
.item-orig { margin-top: 4px; }
.item-orig b { color: var(--tx); font-weight: 600; }
.item-orig a, .item-get a, .item-desc a { color: var(--tx); text-underline-offset: 2px; }
.item-plate .item-counts { color: var(--tx2); margin: 16px 0 18px; }
.item-plate .item-counts .stat b { color: var(--tx); }
.item-plate .item-counts .stat.is-hid b { color: var(--tx3); }
.item-desc { font-size: 15px; line-height: 1.6; color: var(--tx2); margin-bottom: 22px; }
.item-desc p + p { margin-top: 10px; }
.item-cta { display: grid; gap: 10px; }
.item-cta .btn-lg { width: 100%; }
.item-get { color: var(--tx2); font-size: 13px; text-align: center; }
.item-acts { display: flex; gap: 8px; margin-top: 14px; }
.item-acts .soc.framed { flex: 1; }
.item-acts #item-share { flex: 0 0 52px; padding: 0; }
.item-msg { color: var(--tx2); font-size: 13px; margin-top: 10px; }
.spec { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 13.5px; }
.spec dt { color: var(--tx3); }
.spec dd { text-align: right; overflow-wrap: anywhere; }
.spec .stat small { display: none; }
.spec .stat.is-hid b { color: var(--tx3); }
.spec b { font-weight: 500; }
.item-tags { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; }
.tag { display: inline-block; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--surf2); color: var(--tx2); text-decoration: none; }
.tag:hover { color: var(--tx); }
.more { margin-top: 54px; }

/* ---------------------------------------------------------------- states, prompts, errors */
.state { display: grid; justify-items: center; gap: 4px; padding: 72px 0; color: var(--tx2); text-align: center; }
.spinner { width: 24px; height: 24px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--acc); animation: spin .9s linear infinite; }
.prompt, .panel {
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 22px;
}
.prompt { max-width: 540px; margin: 40px auto; padding: 36px 30px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.prompt-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--surf2); color: var(--acc); }
.prompt-icon svg { width: 22px; height: 22px; }
.prompt h2 { font: 500 21px/1.25 var(--display); letter-spacing: -.02em; }
.prompt p { color: var(--tx2); max-width: 44ch; }
.prompt .prompt-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.oops { max-width: 620px; padding: 72px 0 24px; }
.oops-code { font: 500 clamp(64px, 12vw, 120px)/1 var(--display); letter-spacing: -.05em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .oops-code { background: none; color: var(--acc); }
.oops h1 { font: 500 clamp(26px, 4vw, 36px)/1.1 var(--display); letter-spacing: -.03em; margin: 18px 0 12px; }
.oops p { color: var(--tx2); }
.oops .btn { margin-top: 24px; }
.notice {
  padding: 12px 16px; margin: 0 0 16px;
  border: 1px solid var(--line2); border-radius: 14px; background: var(--glass);
  color: var(--tx2); font-size: 13.5px;
}
.notice.is-error { border-color: var(--danger-line); color: var(--danger); }

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 11px 18px;
  color: var(--tx); background: var(--glass2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line2); border-radius: 999px;
  box-shadow: 0 18px 40px -16px var(--shade); font-size: 13.5px;
  animation: rise .25s var(--ease);
}

/* ---------------------------------------------------------------- account + sign-in */
.acct { position: relative; width: 100%; max-width: 760px; }
.acct-narrow { max-width: 540px; margin: 0 auto; }
.page-head { margin-bottom: 8px; }
.page-head h1 { font: 500 clamp(28px, 4vw, 40px)/1.08 var(--display); letter-spacing: -.03em; margin-bottom: 10px; overflow-wrap: anywhere; }
.page-head p { color: var(--tx2); max-width: 60ch; }
.panel { margin-top: 18px; padding: 26px; }
.panel h2 { font: 500 19px/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.panel > p { color: var(--tx2); margin-bottom: 16px; }
.signin { display: grid; gap: 10px; max-width: 400px; }
/* Signed out (sign-in, loading, accounts off): one centred column. Signed in keeps the left-aligned page. */
.acct:not(:has(#state-in:not([hidden]))) { max-width: 480px; margin: 0 auto; text-align: center; }
.acct:not(:has(#state-in:not([hidden]))) .page-head p { margin-inline: auto; }
.acct:not(:has(#state-in:not([hidden]))) .signin { margin-inline: auto; }
.acct:not(:has(#state-in:not([hidden]))) .field { text-align: left; }
.btn-provider { height: 48px; width: 100%; font-size: 14.5px; background: var(--surf); }
.btn-provider:hover { background: var(--surf2); }
.btn-provider svg { width: 18px; height: 18px; }
.btn-provider[data-provider="azure"] svg { fill: currentColor; }
.signin .btn { width: 100%; height: 48px; }
.signin .btn[type="submit"] { background: var(--gold-grad); background-size: 200% 100%; border-color: transparent; color: var(--on-gold); font-weight: 600; }
.signin .btn[type="submit"]:hover { background-position: 100% 0; }
.or { display: flex; align-items: center; gap: 12px; margin: 6px 0; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tx3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.field { display: grid; gap: 6px; }
.field span { font: 500 13px var(--body); color: var(--tx2); }
.field input {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line2); border-radius: 14px; background: var(--surf);
  color: var(--tx); font: 400 15px var(--body); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--tx3); }
.field input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(236, 217, 180, .12); }
.field input.code-input { height: 58px; font: 500 24px var(--mono); letter-spacing: .3em; text-align: center; }
.turnstile { min-height: 65px; }
.fine { font-size: 12.5px; color: var(--tx3) !important; }
.fine a { color: var(--tx2); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--tx); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.me { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.me-avatar { width: 56px; height: 56px; font-size: 20px; }
.me-who { min-width: 0; flex: 1; }
.me-name { font: 500 18px/1.25 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.me-email { color: var(--tx2); overflow-wrap: anywhere; }
.me-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rows { margin: 20px -26px -26px; border-top: 1px solid var(--line); }
.row {
  display: flex; align-items: center; gap: 14px; padding: 15px 26px;
  color: var(--tx); text-decoration: none; transition: background-color .2s ease;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--line); }
.row:last-child { border-radius: 0 0 22px 22px; }
.row svg { width: 19px; height: 19px; flex: none; color: var(--acc); }
.row span { flex: 1; font-weight: 500; }
.row b { font: 500 12px var(--mono); color: var(--tx2); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 10px; }
.danger summary { cursor: pointer; font-weight: 500; color: var(--tx2); list-style: none; display: flex; align-items: center; gap: 8px; }
.danger summary::-webkit-details-marker { display: none; }
.danger summary::after { content: "+"; margin-left: auto; font: 400 18px var(--mono); }
.danger[open] summary::after { content: "−"; }
.danger summary:hover { color: var(--tx); }
.danger > p { color: var(--tx2); margin: 12px 0 14px; }
.danger form { display: grid; gap: 12px; max-width: 400px; }

/* desktop handoff + callback */
.handoff { text-align: center; }
.handoff .signin { margin: 0 auto; text-align: left; }
.handoff-code {
  display: inline-block; margin: 16px 0 8px; padding: 18px 24px;
  font: 600 clamp(24px, 6vw, 40px)/1 var(--mono); letter-spacing: .06em;
  border-radius: 16px; border: 1px dashed var(--line2); background: var(--surf);
  user-select: all; -webkit-user-select: all; overflow-wrap: anywhere;
}
.handoff-code b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
[data-theme="light"] .handoff-code b { background: none; color: var(--acc); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .lib-grid.mas { --cols: 3; --cap: 5; }
  .hero-strip a, .hero-strip img, .hero-strip .ph-img { width: 124px; }
  .hero-strip img, .hero-strip .ph-img { height: 70px; }
  .tb-brand { width: auto; }
}
@media (max-width: 1080px) {
  .tb { gap: 14px; }
  .tb-brand span { display: none; }
  .tb-get { width: 40px; padding: 0; }
  .tb-get span { display: none; }
  .item { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
  .hero-art { width: min(52%, 520px); }
}

@media (max-width: 860px) {
  :root { --tb-h: 64px; --gut-l: 16px; --gut-r: 16px; }
  .tb { padding: 0 16px; gap: 10px; }
  .tb-menu { display: grid; }
  .tb-brand, .tb-tabs { display: none; }
  .no-side .tb-brand { display: inline-flex; }
  .no-side .tb-brand span { display: none; }
  .tb-search { height: 40px; margin: 0; padding: 0 12px 0 14px; gap: 10px; }
  .tb-search input { font-size: 16px; } /* no zoom-on-focus on phones */
  .tb-kbd, .tb-get { display: none; }
  .shell:not(.no-side) .tb-mode { display: none; }
  .tb-right { gap: 8px; }
  .tb-signin { height: 38px; padding: 0 16px; }

  /* The rail becomes a floating glass sheet behind the menu button. */
  .side {
    display: flex;
    left: 10px; top: 10px; bottom: 10px; z-index: 70;
    width: min(300px, calc(100vw - 20px)); padding: 22px 16px 18px;
    align-items: stretch; gap: 4px; overflow-y: auto;
    border-radius: 30px; background: var(--glass2); border-color: var(--line2);
    -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
    transform: translate3d(calc(-100% - 24px), 0, 0); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .side.is-open, .side:target { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 2px 0 6px; }
  .side-head .tb-brand { display: inline-flex; width: auto; }
  .side-head .tb-brand span { display: inline; }
  .side-item { width: auto; flex-direction: row; gap: 14px; padding: 13px 14px; font: 500 16px/1.2 var(--body); color: var(--tx); }
  .side-item svg { width: 20px; height: 20px; }
  .side-sep { display: none; }
  .side-sec { display: block; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tx3); padding: 16px 14px 6px; margin: 0; }
  .side-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 18px; }
  .side-mode { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px; color: var(--tx2); font-size: 14px; }
  .side-foot .btn { width: 100%; height: 46px; }
  .side-legal { text-align: center; color: var(--tx3); font-size: 12px; padding-top: 4px; }
  .side-legal a { color: var(--tx2); text-decoration: none; }
  .side-scrim {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: fade .25s ease;
  }

  .hero { height: 460px; }
  .hero-row { bottom: 34px; }
  .hero-strip { display: none; }
  .hero-about { display: none; }
  .hero h2 { font-size: 36px; margin: 10px 0; }
  .hero-stats { margin-bottom: 18px; }
  .hero-bg { object-position: 30% 50%; }
  .hero.is-contain .hero-row { bottom: 28px; }
  .hero-art { left: 16px; right: auto; width: calc(100% - 32px); top: calc(var(--tb-h) + 18px); border-radius: 16px; }
  .has-hero .wrap { margin-top: -10px; }
  .wrap { padding-top: 24px; }

  .lib-grid.mas { --cols: 2; --gap: 10px; --cap: 12; }
  .mas .lib-card { padding-bottom: 14px; }
  .lc-cap { flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 8px; }
  .lc-name { font-size: 13.5px; max-width: 100%; }
  .lc-txt { width: 100%; }
  .lib-grid.even { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 18px 10px; }
  .lib-grid.is-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .hero.is-contain { height: 450px; }
  .hero.is-contain .hero-row { bottom: 28px; }
  .hero.is-contain h2 { font-size: 28px; }
  .hero.is-contain .hero-art { width: min(calc(100% - 32px), 300px); left: 50%; transform: translateX(-50%); top: calc(var(--tb-h) + 14px); }
  .bar { gap: 8px; }
  .bar h1 { font-size: 20px; }
  .bar-count { margin-right: auto; }
  .chips { order: 5; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 0 16px; width: calc(100% + 32px); }
  .chips::-webkit-scrollbar { display: none; }
  .sortm { margin-left: 0; }

  .item { grid-template-columns: minmax(0, 1fr); }
  .item-stage { border-radius: 18px; }
  .item-thumbs a { width: 104px; }
  .item-plate { padding: 22px 20px; }
  .item-plate h1 { font-size: 28px; }
  .more .lib-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 22px 18px; }
  .rows { margin: 18px -18px -22px; }
  .row { padding: 14px 18px; }
  .main-foot { flex-direction: column; margin-top: 48px; }
}
@media (max-width: 380px) {
  .tb-signin { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .lib-card:hover .lc-shot img { transform: none; }
}
