
@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --black: #000;
  --panel: #1c1c1e;
  --raised: #2c2c2e;
  --text: #f5f5f7;
  --muted: #aeaeb2;
  --dim: #8e8e93;
  --line: rgb(255 255 255 / .08);
  --line-hover: rgb(255 255 255 / .22);
  --highlight: rgb(255 255 255 / .06);
  --glass: rgb(28 28 30 / .6);
  --glass-solid: rgb(28 28 30 / .92);
  --veil: rgb(0 0 0 / .58);
  --shadow: 0 16px 48px rgb(0 0 0 / .28);
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 28px;
  --pill: 999px;
  --spring: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
  font: 16px var(--font);
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
:is(html, .filter-options, .search-suggestions, .mobile-nav) { scrollbar-width: none; }
:is(html, .filter-options, .search-suggestions, .mobile-nav)::-webkit-scrollbar { display: none; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; }
main { flex: 1; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1.16em; height: 1.16em; flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 20; top: 16px; left: 16px; padding: 12px; border-radius: var(--radius-sm); background: var(--panel); }
.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.muted { color: var(--muted); }
.snow { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.header { position: sticky; top: 12px; z-index: 10; margin-top: 12px; }
.header-inner {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px;
  min-height: 64px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--highlight), var(--shadow); transition: background 320ms var(--spring);
}
.brand { display: inline-flex; align-items: center; justify-self: start; max-width: 100%; border-radius: 6px; }
.brand-image {
  width: 128px;
  height: auto;
  /* Align the lettering with the menu while the hat extends above it. */
  transform: translate(-2%, -11%);
}
.nav { display: none; }
.nav a, .mobile-nav nav a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; border-radius: var(--pill); }
.nav a:hover, .nav a[aria-current], .mobile-nav nav a:hover, .mobile-nav nav a[aria-current] { color: var(--text); background: var(--raised); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.effects, .mobile-toggle {
  display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px;
  color: var(--text); background: var(--glass); border: 1px solid var(--line); border-radius: var(--pill); font-size: 12px;
}
.mobile-toggle { width: 40px; padding: 0; font-size: 17px; }
.effects:hover, .mobile-toggle:hover { background: var(--raised); }
.effects[aria-pressed="true"] { border-color: var(--line-hover); }
.snow-toggle[aria-pressed="true"] { background: var(--raised); }
.mobile-nav {
  width: 100%; max-width: 100%; max-height: 85dvh; inset: auto 0 0; margin: 0; padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  color: var(--text); background: var(--glass-solid); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow);
}
.mobile-nav[open] { animation: sheet-in 350ms var(--spring) both; }
.mobile-nav::backdrop { background: var(--veil); }
@keyframes sheet-in { from { opacity: .4; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-heading h2 { font-size: 22px; }
.sheet-heading .button { width: 44px; padding: 0; }
.mobile-nav nav { display: grid; gap: 8px; }
.mobile-nav nav a { min-height: 48px; padding: 8px 16px; background: var(--glass); }
html:has(.mobile-nav[open]) { overflow: hidden; }

.search {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 5px;
  border: 1px solid var(--line); border-radius: var(--pill); background: var(--glass);
  box-shadow: inset 0 1px 0 var(--highlight); backdrop-filter: blur(20px) saturate(180%);
}
.search:focus-within { border-color: var(--dim); }
.search-icon { margin-left: 10px; color: var(--muted); }
.search input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search .button { min-height: 44px; padding-inline: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--pill); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 280ms var(--spring), transform 280ms var(--spring), border-color 280ms var(--spring);
}
.primary { color: var(--text); background: var(--control-accent); border-color: var(--control-accent-line); }
.primary:hover { background: var(--control-accent-hover); border-color: #ffb8c47d; }
.secondary { color: var(--text); border-color: var(--control-line); background: var(--control-glass); }
.secondary:hover { background: var(--control-hover); border-color: var(--control-line-hover); }
.wide { width: 100%; white-space: normal; overflow-wrap: anywhere; }
.wide + .wide { margin-top: 8px; }

.resource-section { margin-top: 48px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-title h2 { font-size: clamp(25px, 4vw, 36px); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.more:hover { color: var(--text); }
.categories, .cards { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 8px; }
.category {
  grid-column: span 6; position: relative; display: flex; min-width: 0; align-items: center; gap: 8px; padding: 8px;
  min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass);
  box-shadow: inset 0 1px 0 var(--highlight); transition: transform 300ms var(--spring), border-color 300ms var(--spring);
}
.category:hover { border-color: var(--line-hover); transform: translateY(-2px); }
.category-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 12px; overflow: hidden; background: var(--raised); color: var(--text); }
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-copy { flex: 1; min-width: 0; }
.category b { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.category small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.category > svg { display: none; }
.category-feature {
  isolation: isolate; overflow: hidden; min-height: 120px; align-items: flex-end; padding: 12px;
  background: var(--panel); box-shadow: var(--shadow); border-radius: var(--radius);
}
.category-feature:first-child { grid-column: span 12; min-height: 176px; }
.category-feature:nth-child(2) { grid-column: span 12; }
.category-feature > img, .category-feature::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-feature > img { z-index: -2; object-fit: cover; filter: brightness(.7); transition: filter 350ms var(--spring); }
.category-feature:hover > img { filter: brightness(.85); }
.category-feature::before { content: ""; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .94), rgb(0 0 0 / .15) 85%); }
.category-feature .category-icon { display: none; }
.category-feature small { color: var(--text); }
.category-feature > svg { display: block; align-self: flex-end; width: 13px; height: 13px; }
.more-categories { margin-top: 16px; }
.more-categories summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--glass); color: var(--muted); font-size: 13px; }
.more-categories summary::-webkit-details-marker { display: none; }
.more-categories summary:hover { color: var(--text); }
.nav-chevron svg { transform: rotate(90deg); transition: transform 300ms var(--spring); }
details[open] > summary .nav-chevron svg { transform: rotate(-90deg); }
.other-categories { margin-top: 8px; }

.card {
  grid-column: span 6; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass); box-shadow: inset 0 1px 0 var(--highlight);
  transition: border-color 280ms ease, box-shadow 320ms ease, background-color 280ms ease;
}
.card-link { display: flex; height: 100%; flex-direction: column; }
.card-link:focus-visible { outline-offset: -3px; border-radius: inherit; }
.card-media, .detail-placeholder, .video-preview { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16/10; background: var(--raised); }
.card-media > img, .video-preview img, .category-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media > img { transition: opacity 300ms var(--spring); }
.card-media.is-loading > img[data-cover] { opacity: 0; }
.card-media .category-art img { opacity: .68; }
.resource-poster {
  position:absolute; inset:0; display:grid; align-content:center; justify-items:start; gap:8px;
  padding:clamp(16px,5%,28px); overflow:hidden; isolation:isolate;
  background:
    radial-gradient(ellipse at var(--poster-x) var(--poster-y),#63202c88 0,transparent 48%),
    linear-gradient(145deg,#201b1d,#101012 72%);
}
.resource-poster::before, .resource-poster::after { content:""; position:absolute; z-index:-1; pointer-events:none; }
.resource-poster::before {
  width:42%; aspect-ratio:1; right:-10%; top:-35%; border:1px solid #ffffff13; border-radius:35%;
  transform:rotate(24deg); box-shadow:0 0 0 18px #ffffff05,0 0 0 38px #ffffff04;
}
.resource-poster::after {
  inset:auto 0 0; height:1px; background:linear-gradient(90deg,transparent,#ffffff24,transparent);
}
.resource-poster-icon { color:#f5f5f7; opacity:.82; }
.resource-poster-icon svg { width:21px; height:21px; }
.resource-poster-category { color:var(--muted); font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.resource-poster strong { max-width:100%; color:var(--text); font-size:clamp(14px,1.5vw,19px); line-height:1.18; font-weight:650; text-wrap:pretty; }
.resource-poster small { color:var(--muted); font-size:10px; }
.resource-poster-empty { justify-items:center; gap:12px; background:radial-gradient(ellipse at 50% 40%,#242427,#141416 75%); }
.resource-poster-empty::before, .resource-poster-empty::after { display:none; }
.resource-poster-empty .resource-poster-icon { color:#8e8e93; opacity:1; }
.resource-poster-empty .resource-poster-icon svg { width:32px; height:32px; }
.resource-poster-empty small { color:#aeaeb2; font-size:13px; font-weight:400; }
.card-video-mark { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--pill); background: #101012c9; color: #fff; }
.category-art { position: absolute; isolation: isolate; inset: 0; display: grid; place-items: center; background: var(--panel); }
.category-art img { z-index: -1; opacity: .32; }
.category-art > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass-solid); }
.no-preview-label { position: absolute; inset: auto 8px 8px; text-align: center; color: var(--text); font-size: 10px; }
.cover-caption { display: none; }
.card-media:has(> img[data-cover][hidden]) .cover-caption { display: block; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 12px; }
.card h3 { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.card-summary { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 12px; }
.badge, .card-category { padding: 3px 7px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--raised); color: var(--text); font-size: 10px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.card-meta time { white-space: nowrap; }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.crumb a:hover { color: var(--text); }
.page-heading { margin-block: 24px; }
.page-heading h1, .error-page h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.06; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.catalog-tools, .gallery, .panel, .detail-description, .detail-placeholder, .empty, .video-preview, .preview-frame {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); box-shadow: inset 0 1px 0 var(--highlight);
}
.catalog-tools { display: grid; justify-items: start; gap: 12px; padding: 12px; margin-bottom: 24px; }
.catalog-tools .search { width: 100%; }
.catalog-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 100%; padding: 4px;
  border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line);
}
.catalog-tabs a { display: inline-flex; align-items: center; gap: 5px; padding: 8px; color: var(--muted); border-radius: 12px; font-size: 11px; }
.catalog-tabs a:hover, .catalog-tabs a[aria-current] { background: var(--raised); color: var(--text); }
.filters { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-items: end; }
.filter-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-field legend { margin-bottom: 5px; padding: 0; color: var(--muted); font-size: 11px; }
.filter-picker { position: relative; }
.filter-picker[open] { z-index: 3; }
.filter-picker summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 36px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--glass); color: var(--text); font-size: 12px;
  cursor: pointer; list-style: none;
}
.filter-picker summary::-webkit-details-marker { display: none; }
.filter-picker summary:hover, .filter-picker[open] summary { border-color: var(--line-hover); }
.filter-picker summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-picker[open] summary svg { transform: rotate(180deg); }
.filter-options {
  position: absolute; inset: calc(100% + 5px) auto auto 0; width: max-content; min-width: 100%;
  max-width: min(260px, calc(100vw - 40px)); max-height: min(296px, 50vh); overflow: auto;
  padding: 5px; border: 1px solid var(--line-hover); border-radius: 14px;
  background: var(--glass-solid); backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
.filter-option {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 32px; padding: 6px 9px; border-radius: 8px;
  color: var(--text); font-size: 12px; cursor: pointer;
}
.filter-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-option svg { visibility: hidden; color: var(--season-red); }
.filter-option:hover, .filter-option:has(:checked) { background: var(--raised); }
.filter-option:has(:focus-visible) { outline: 1px solid var(--text); outline-offset: -2px; }
.filter-option:has(:checked) svg { visibility: visible; }
.filters .button { justify-self: start; }
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 24px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 32px; min-height: 36px; padding: 4px 6px; border-radius: var(--pill); color: var(--muted); font-size: 12px; }
.pagination a { border: 1px solid var(--control-line); background: var(--control-glass); color: var(--text); }
.pagination a:hover { border-color: var(--control-line-hover); background: var(--control-hover); }
.pagination [aria-current] { background: var(--control-accent); border: 1px solid var(--control-accent-line); color: var(--text); font-weight: 650; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--text); margin-block: 8px; font-size: 22px; }

.heading-tags, .resource-heading p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.heading-tags { margin-bottom: 8px; font-size: 13px; }
.dot { width: 4px; height: 4px; background: var(--dim); border-radius: var(--pill); }
.detail { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.detail-content { display: contents; }
.detail-side { display: grid; grid-row: 2; gap: 16px; }
.gallery { overflow: hidden; }
.gallery-hero { display: grid; place-items: center; background: var(--panel); }
.gallery-hero img { width: 100%; max-height: 600px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; padding: 8px; overflow-x: auto; }
.thumbs a { width: 80px; flex: none; aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thumbs a[aria-current] { border: 2px solid var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); max-width: calc(100% - 24px); }
.lightbox::backdrop { background: var(--veil); backdrop-filter: blur(10px); }
.lightbox button { display: flex; margin: 0 0 8px auto; }
.lightbox img { max-height: calc(100dvh - 96px); object-fit: contain; }
.video-preview, .preview-frame { display: block; width: 100%; aspect-ratio: 16/9; }
.preview-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--pill); background: var(--text); color: var(--black); }
.panel, .detail-description { padding: 16px; }
.detail h2 { font-size: 20px; margin-bottom: 12px; }
.description-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); line-height: 1.65; }
.description-text a { color: var(--text); text-decoration: underline; }
.video-link { margin-top: 12px; }
.video button { margin-right: 8px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16/9; margin-top: 12px; border: 0; border-radius: var(--radius-sm); }
.access-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.panel dl { margin: 0; }
.panel dl div { display: flex; justify-content: space-between; gap: 8px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }
.error-page { display: grid; justify-items: start; align-content: center; min-height: 65vh; gap: 16px; }

.footer { margin-block: 64px 16px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; min-height: 60px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--highlight), var(--shadow);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 12px; }
.footer nav a { padding: 7px 10px; border-radius: var(--pill); }
.footer nav a:hover { color: var(--text); background: var(--raised); }

@media (min-width: 680px) {
  .wrap { width: min(1200px, calc(100% - 64px)); }
  .resource-section { margin-top: 64px; }
  .categories, .cards { gap: 16px; }
  .category { grid-column: span 4; padding: 12px; }
  .category-feature { grid-column: span 3; min-height: 152px; }
  .category-feature:first-child { grid-column: span 6; grid-row: span 2; min-height: 320px; }
  .category-feature:nth-child(2) { grid-column: span 6; }
  .category-feature .category-icon { display: grid; background: var(--glass-solid); }
  .category-feature b { font-size: 18px; }
  .card-body { padding: 16px; }
  .card h3 { font-size: 16px; }
  .card-meta { padding: 8px 16px; }
  .catalog-tools { padding: 16px; }
  .catalog-tabs a { padding-inline: 12px; font-size: 13px; }
  .filters { grid-template-columns: 1fr 1fr 1fr auto; }
  .detail { grid-template-columns: minmax(0,1fr) minmax(208px,28%); align-items: start; }
  .detail-content { display: block; }
  .detail-description { margin-top: 16px; }
  .detail-side { grid-row: auto; }
}
@media (min-width: 900px) {
  .card { grid-column: span 3; }
  .category:not(.category-feature) { grid-column: span 3; }
}
@media (min-width: 1181px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; gap: 16px; padding-inline: 16px; }
  .header-actions { justify-self: end; }
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav a { min-height: 40px; padding: 8px 12px; }
  .mobile-toggle { display: none; }
}
@media (max-width: 1180px) {
  html.no-dialog .header-inner, .header:has(.mobile-toggle[hidden]) .header-inner { grid-template-columns: 1fr auto; }
  html.no-dialog .nav, .header:has(.mobile-toggle[hidden]) .nav { grid-column: 1/-1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; }
  html.no-dialog .nav a, .header:has(.mobile-toggle[hidden]) .nav a { min-height: 36px; padding: 6px 8px; }
}
@media (max-width: 420px) {
  .search input { font-size: 14px; }
  .search .button svg { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-visible { animation: hero-settle 220ms var(--spring) both; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}



/* Colour photography, compact navigation and seasonal accents. */
:root { --season-red:#f36c71; }
.header-inner { min-height: 52px; padding-block: 5px; border-radius: 20px; }
.nav a, .effects, .mobile-toggle { min-height: 36px; }
.nav a[aria-current] svg { color: var(--season-red); }
.catalog-tools { border-color: var(--line-hover); box-shadow: inset 0 1px 0 var(--highlight), var(--shadow); }
.catalog-tools .search { background: var(--bg); }
.catalog-tabs a[aria-current] { box-shadow: inset 0 1px 0 var(--line-hover); }
.card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { gap: 6px; }

@media (max-width: 679px) { .resource-depth { grid-row: 1; } }

.creators-heading { margin-block: 32px; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.profile-stage, .resource-depth { min-width: 0; perspective: 1050px; }
.profile-stage { perspective: 750px; }
.depth-surface {
  transform: rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transition: transform 420ms var(--spring);
}
.is-tilting > .depth-surface { transition-duration: 115ms; }
.profile-stage.is-tilting > .depth-surface {
  transform: translateY(-8px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
}
.profile-stage:hover > .profile-card { border-color: #f9909c9c; }
.profile-card {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  border: 1px solid #ffe3e43b; border-radius: var(--radius-lg);
  background: linear-gradient(150deg,#341d22b8,#141315 60%); backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 #ffffff20, 0 24px 56px #0006, 0 0 28px #f15b6712;
}
.profile-card::after {
  content:""; position:absolute; inset:0; z-index: 2; pointer-events:none;
  background: radial-gradient(circle at var(--shine-x,50%) var(--shine-y,0%), #ffffff24, transparent 51%);
  opacity: .38; transition: opacity .35s var(--spring);
}
.is-tilting .profile-card::after { opacity: 1; }
.profile-banner { width: 100%; height: clamp(132px, 16vw, 210px); object-fit: cover; object-position: center 23%; }
.profile-content { position: relative; z-index: 1; padding: 0 24px 28px; }
.profile-avatar { width: 88px; height: 88px; margin-top: -44px; margin-bottom: 12px; border: 4px solid #191618; border-radius: 50%; object-fit: cover; background: var(--panel); }
.profile-content h2 { font-size: 30px; }
.profile-content p { color: var(--muted); margin-top: 5px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; list-style: none; }
.profile-badges li { border: 1px solid var(--line-hover); background: #ffffff09; border-radius: var(--pill); padding: 5px 10px; font-size: 12px; }
.profile-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.profile-rain i { position: absolute; top: -25px; left: 8%; width: 1px; height: 22px; background: linear-gradient(transparent,#ffe6e4a0); animation: profile-rain 4s linear infinite; }
.profile-rain i:nth-child(2) { left: 22%; animation-delay: -2.5s; }
.profile-rain i:nth-child(3) { left: 38%; animation-delay: -1.2s; }
.profile-rain i:nth-child(4) { left: 56%; animation-delay: -.7s; }
.profile-rain i:nth-child(5) { left: 75%; animation-delay: -3s; }
.profile-rain i:nth-child(6) { left: 92%; animation-delay: -1.8s; }
@keyframes profile-rain { from { transform: translate(8px,-10px); opacity: 0; } 20% { opacity:.6; } to { transform: translate(-16px,480px); opacity: 0; } }
@media (max-width: 679px) { .profile-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: no-preference) {

  html { scroll-behavior: smooth; }
}


/* Compact catalogue and open resource layout. */
.catalog-tools {
  gap: 8px; padding: 0; margin-bottom: 20px; border: 0; background: transparent; box-shadow: none;
}
.catalog-tools .search { max-width: 720px; min-height: 43px; padding: 3px; background: var(--glass); }
.catalog-tools .search .button { min-height: 34px; }
.catalog-tools .search input { padding-block: 5px; font-size: 14px; }
.catalog-tools .filters { width: auto; display: flex; align-items: flex-end; flex-wrap: wrap; }
.catalog-tools .filters .button { min-height: 36px; border-radius: 10px; }
.catalog-tools .catalog-tabs { border: 0; background: transparent; padding: 0; }
.catalog-tools .catalog-tabs a { border-radius: 8px; padding: 5px 9px; font-size: 12px; box-shadow: none; }
.cards { gap: 16px; }
@media (min-width: 680px) and (max-width: 899px) { .card { grid-column: span 4; } }
.card { border: 1px solid #ffffff0b; border-radius: 14px; background: #161617; box-shadow: none; }
.card .card-body { padding: 8px 10px; }
.card h3 { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.28; -webkit-line-clamp: 2; }
.card-summary { margin-top: 4px; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 1; }
.card-tags { padding-top: 6px; gap: 4px; }
.card-category, .card .badge { padding: 1px 5px; font-size: 9px; background: #ffffff09; border: 0; }
.card-meta { padding: 4px 10px 7px; border: 0; color: var(--dim); font-size: 9px; }

body:has(.resource-page) { background:linear-gradient(180deg,#141417 0,var(--bg) 42rem); }
.resource-page { margin-inline:auto; }
.resource-page .crumb { margin-top:clamp(22px,4vw,42px); }
.resource-page .resource-heading { margin-block:clamp(22px,4vw,40px) clamp(24px,4vw,40px); }
.resource-page .resource-heading h1 {
  max-width:29ch; margin-top:12px; font-size:clamp(32px,5.2vw,60px);
  line-height:1.04; letter-spacing:-.045em;
}
.resource-page .resource-heading p { margin-top:14px; font-size:13px; }
.resource-stats {
  display:flex; flex-wrap:wrap; align-items:center; gap:7px 20px;
  margin:12px 0 0; font-size:12px; color:var(--muted);
}
.resource-stats div { display: flex; align-items: center; gap: 4px; }
.resource-stats dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.resource-layout { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:32px; }
.resource-download { min-width:0; padding-top:16px; border-top:1px solid var(--line); }
.resource-download > h2 { margin-bottom:16px; font-size:20px; }
.resource-download-links { display:grid; gap:8px; }
.resource-cta, .resource-alt-link {
  display:flex; gap:12px; align-items:center; min-width:0; min-height:48px;
  padding:10px 13px; font-size:14px; font-weight:600; line-height:1.35;
}
.resource-cta { background:#eeeef0; color:#171719; border-radius:8px; }
.resource-cta:hover { background:#fff; }
.resource-alt-link { border-bottom:1px solid var(--line); padding-inline:0; color:var(--muted); }
.resource-alt-link:hover { color:var(--text); }
.resource-cta small, .resource-alt-link small {
  display:block; margin-top:3px; font-size:11px; font-weight:500;
  overflow-wrap:anywhere;
}
.resource-cta small { color:#49494c; }
.resource-media .gallery, .resource-media .detail-placeholder, .resource-media .video-preview, .resource-media .preview-frame {
  border: 0; border-radius: 12px; background: #171719; box-shadow: none;
}
.resource-media .gallery-hero img { width:100%; max-height:min(66vh,560px); object-fit:contain; }
.resource-media .detail-placeholder { aspect-ratio:16/8; max-height:380px; }
.resource-media .thumbs { padding:12px; gap:8px; }
.resource-media .thumbs a { width:clamp(58px,7vw,84px); border-radius:6px; }
.resource-media .thumbs a[aria-current] { border-width: 1px; }
.resource-layout .detail-description {
  grid-column:1/-1; margin:0; padding:clamp(24px,4vw,42px) 0 0;
  border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none;
}
.resource-layout .detail-description h2 { font-size:clamp(24px,3vw,34px); margin:0 0 16px; }
.description-text { max-width:76ch; white-space:normal; font-size:16px; line-height:1.75; }
.description-text > * + * { margin-top:16px; }
.description-text h3 { color:var(--text); font-size:19px; margin-top:22px; }
.description-text ul, .description-text ol { margin-bottom: 0; padding-left: 20px; }
.description-text .description-image { max-height: 480px; margin-block: 8px; object-fit: contain; border-radius: 10px; }
.snow { z-index: 4; }
@media (min-width: 760px) {
  .resource-layout { grid-template-columns:minmax(0,1fr) minmax(240px,300px); gap:clamp(32px,5vw,60px) clamp(28px,4vw,50px); }
  .resource-download { grid-column:2; padding-top:0; border-top:0; border-left:1px solid var(--line); padding-inline-start:20px; }
}
.related-resources { padding-top:clamp(40px,6vw,68px); }
@media (max-width: 679px) {
  .catalog-tools .filters { display: grid; width: 100%; }
  .filter-field:nth-of-type(2) .filter-options { inset-inline: auto 0; }
  .catalog-tools .filters .button { min-height: 34px; }
}

/* Direct access to every category and a tighter resource grid. */
.category-directory { gap: 8px; }
.category-directory .category { min-height: 57px; padding: 8px 10px; border-color: #ffffff0d; border-radius: 12px; }
.category-directory .category:hover { background: var(--raised); border-color: var(--line-hover); }
.category-directory .category-icon { border-radius: 9px; background: #ffffff0b; }
.category-directory .category > svg { display: block; color: var(--dim); }
.category-directory .category small { font-size: 10px; }
@media (min-width: 1100px) { .category-directory { grid-template-columns: repeat(5,minmax(0,1fr)); } .category-directory .category { grid-column: auto; } }
@media (max-width: 360px) { .category-directory .category > svg { display: none; } }

.card { background: rgb(26 26 28 / .67); border-color: #ffffff08; }
.card .card-media { aspect-ratio: 3/2; }
.card .card-body { padding: 9px 10px 5px; }
.card-tags { padding-top: 6px; }
.card-category, .card .badge { background: transparent; color: var(--muted); padding-inline: 0; }
.card-tags > * + *::before { content: '·'; margin: 0 5px 0 2px; color: var(--dim); }
.card-meta { padding-bottom: 9px; }

.description-text li + li { margin-top:6px; }

.lightbox {
  position: fixed; inset: 0; margin: auto; width: min(94vw, 1500px); height: 92dvh;
  max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; overflow: visible; background: transparent;
}
.lightbox::backdrop { background: #060608dc; backdrop-filter: blur(14px); }
.lightbox-stage { position: absolute; inset: 25px 38px; display: grid; place-items: center; overflow: hidden; }
.lightbox-stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox-stage.can-pan { cursor: grab; touch-action: none; }
.lightbox-stage.is-panning { cursor: grabbing; }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0;
  color: var(--text); background: #151517a8; border: 0; border-radius: 50%; font-size: 17px;
}
.lightbox button:hover { background: #424244b0; }
.lightbox-close { top: 0; right: 0; }
.lightbox-prev { top: calc(50% - 19px); left: 0; }
.lightbox-next { top: calc(50% - 19px); right: 0; }
@media (max-width: 600px) { .lightbox-stage { inset: 42px 0; } }

.profile-card {
  border-color: #f45b685f; background: linear-gradient(135deg,#3e2029c9,#171418d4 58%,#25151bdc);
  box-shadow: inset 0 1px 0 #ffffff25, 0 20px 48px #0008, 0 0 30px #b52d4829;
}
.profile-card::after {
  background: radial-gradient(circle at var(--shine-x,45%) var(--shine-y,20%),#fff0ee27,transparent 54%),
    radial-gradient(circle at var(--shine-x,45%) var(--shine-y,20%),#f73f6958,transparent 72%);
}
.profile-card::before {
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none; border-radius:inherit;
  background: linear-gradient(113deg,transparent 37%,#ffe7eb24 50%,transparent 63%);
  background-size: 270% 100%; animation: profile-reflection 9s var(--spring) infinite;
}
@keyframes profile-reflection { 0%, 62% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.profile-banner, .profile-avatar { transition: transform 420ms var(--spring); }
.is-tilting .profile-banner { transform: scale(1.025) translateX(calc((var(--shine-x) - 50%) * .07)); }
.is-tilting .profile-avatar { transform: translateY(-5px) scale(1.045); }
.profile-content .profile-role { display:inline-flex; margin-top: 8px; padding: 4px 9px; border-radius: var(--pill); color: #fff; font-size: 12px; font-weight: 650; }
.profile-role--litchi { background: linear-gradient(105deg,#660f21,#a91f37); box-shadow: 0 0 16px #e92f5342; }
.profile-role--metaa { background: linear-gradient(105deg,#732437,#a53c56); box-shadow: 0 0 16px #e15b7942; }
.profile-rain i { height: 32px; background: linear-gradient(transparent,#ff737da8); }
.profile-rain i:nth-child(even) { height: 5px; border-radius: 50%; box-shadow: 0 0 9px #f8536c; }
[data-season="off"] .profile-card::before { animation: none; }

.catalog-tools { grid-template-columns: minmax(0, 1fr); }

/* Account, language and member pages. */
body {
  background: radial-gradient(ellipse at 12% 0%, #39182049, transparent 46rem),
    radial-gradient(ellipse at 92% 28%, #30303439, transparent 54rem), var(--bg);
}
.header-menu { position: relative; min-width: 0; }
.header-menu summary, .header-signin {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--text);
  background: var(--glass); font-size: 12px; cursor: pointer; white-space: nowrap; list-style: none;
}
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary:hover, .header-menu[open] summary, .header-signin:hover { background: var(--raised); }
.language-menu summary { width: 36px; padding: 0; font-size: 15px; }
.account-menu summary { padding-left: 5px; }
.account-name { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.account-avatar {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; background: var(--raised); color: var(--text); flex: none;
}
.header-popover {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 3; min-width: 184px; padding: 5px;
  background: rgb(24 23 25 / .94); backdrop-filter: blur(22px); border: 1px solid var(--line-hover);
  box-shadow: var(--shadow); border-radius: 14px;
}
.header-menu[open] .header-popover { animation: reveal 220ms var(--spring) both; }
.header-popover a, .header-popover button, .account-logout {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 6px 8px;
  color: var(--muted); font-size: 12px; text-align: start; white-space: nowrap;
  border: 0; border-radius: 8px; background: transparent;
}
.header-popover a:hover, .header-popover button:hover, .header-popover button[aria-current] { color: var(--text); background: var(--raised); }
.header-popover button[aria-current] svg { margin-inline-start: auto; }
.language-code { width: 19px; flex: none; font-size: 10px; color: var(--dim); }
.header-popover form { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.header-popover .account-logout, .account-logout { color: #ff969d; }
.header-popover .account-logout:hover, .account-logout:hover { background: #ff4d6120; color: #ffb8bc; }
.community-page { max-width: 750px; margin: 32px auto 0; }
.community-page.sign-in { padding: 32px 0; }
.sign-in .button { margin: 16px 6px 0 0; }
.community-notice { margin: 12px 0; padding: 10px 14px; border-left: 2px solid var(--dim); background: var(--glass); }
.community-notice.is-error { border-color: var(--season-red); }
.community-form { display: grid; gap: 18px; }
.community-form fieldset {
  display: grid; gap: 8px; min-width: 0; margin: 0; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass);
}
.community-form legend { padding: 0 4px; color: var(--text); font-weight: 650; font-size: 14px; }
.community-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.community-form .setting-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 12px; }
.setting-toggle small { display: block; margin-top: 3px; color: var(--muted); }
.community-form select, .community-form textarea {
  min-height: 38px; width: 100%; border-radius: 10px; border: 1px solid var(--line-hover);
  padding: 6px 9px; background: #19191b; color: var(--text);
}
.community-form textarea { resize: vertical; }
.community-form input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--text); }
.community-form > .button, .settings-signout .account-logout { justify-self: start; width: auto; }
.settings-signout { margin-top: 16px; }
.member-banner {
  position: relative; overflow: hidden; height: clamp(125px,24vw,205px); border: 1px solid var(--line);
  border-radius: var(--radius); background: radial-gradient(ellipse at 75% 10%, #54212c, #1b191c 65%, #111113);
}
.member-banner img { width: 100%; height: 100%; object-fit: cover; }
.member-heading { display: flex; position: relative; align-items: end; gap: 14px; margin: -28px 12px 24px; }
.member-heading .account-avatar { width: clamp(65px,12vw,88px); height: clamp(65px,12vw,88px); border: 4px solid var(--bg); }
.member-heading h1 { font-size: clamp(23px,5vw,40px); overflow-wrap: anywhere; }
.member-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.member-about, .member-activity { margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); }
.member-about h2 { font-size: 18px; }
.member-bio { margin-block: 10px; color: var(--muted); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-about .more { margin-inline-start: 10px; }
.member-activity { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.member-activity dd { color: var(--text); margin: 0; }
body[data-season="off"] .profile-rain { display: none; }
body[data-season="off"] .profile-card::before { animation: none; }
body[data-motion="off"] *, body[data-motion="off"] *::before, body[data-motion="off"] *::after { animation: none !important; transition: none !important; }
body.effects-motion-enabled .profile-card { transition: transform 420ms var(--spring) !important; }
body.effects-motion-enabled .profile-stage.is-tilting .profile-card { transition-duration: 115ms !important; }
html:has(body[data-motion="off"]) { scroll-behavior: auto; }
body[data-density="compact"] .cards { gap: 8px; }
body[data-density="compact"] .card .card-media { aspect-ratio: 2; }
body[data-density="compact"] .card .card-body { padding-block: 6px; }
body[data-density="compact"] .card-summary { display: none; }
@media (min-width: 1000px) { body[data-density="compact"] .card { grid-column: span 2; } }
@media (min-width: 900px) and (max-width: 1050px) { .header-actions .account-name { max-width: 56px; } .header-inner .nav a { padding-inline: 8px; } }
@media (max-width: 600px) {
  .snow-toggle { width: 36px; padding-inline: 0; }
  .snow-toggle span { display: none; }
  .header-actions { gap: 5px; }
  .header-inner { padding-inline: 8px; }
  .header-signin, .header-menu summary { padding-inline: 6px; }
  .account-name { max-width: 54px; }
}
@media (max-width: 359px) {
  .header-signin { width: 36px; }
  .header-signin span, .header-actions .account-name { display: none; }
}


@media (min-width: 900px) and (max-width: 1050px) { .header-inner:has(.account-menu) .account-name { display: none; } }

.category-directory .category { min-height: 104px; isolation: isolate; overflow: hidden; align-items: end; padding: 10px; }
.category-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--spring); }
.category-directory .category::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#080809f0,#0a0a0b30 78%); }
.category-directory .category:hover .category-photo { transform:scale(1.045); }
.category-directory .category-icon { background:#101012a8; }
.category-directory .category small { color:#e2dadd; }
.search[data-quick-search] { position:relative; backdrop-filter:none; z-index:2; }
.catalog-tools { position:relative; z-index:1; }
.search-suggestions { position:absolute; top:calc(100% + 6px); left:0; right:0; max-height:min(58vh,385px); overflow:auto; padding:5px; border:1px solid var(--line-hover); border-radius:14px; background:#19181bf7; box-shadow:var(--shadow); }
.search-suggestions a { display:flex; align-items:center; gap:9px; min-height:38px; padding:5px 8px; border-radius:8px; }
.search-suggestions a:hover,.search-suggestions a:focus-visible { background:var(--raised); outline-offset:-2px; }
.search-suggestions img { width:39px; height:30px; object-fit:cover; border-radius:5px; }
.search-suggestions span { min-width:0; }
.search-suggestions strong,.search-suggestions small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.search-suggestions small,.search-suggestions p { color:var(--muted); font-size:11px; }
.search-suggestions p { padding:7px; }
.resource-player { display:block; width:100%; aspect-ratio:16/9; min-height:200px; border:0; border-radius:12px; background:#09090b; }
.presentation-video { margin-bottom:12px; }
.presentation-video .video-link { margin-top:5px; }
.youtube-presentation { margin-top:10px; }
.youtube-status { color:var(--muted); font-size:13px; }
.resource-actions { display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:14px; }
.resource-actions .button {
  border:0; border-radius:0; background:none; box-shadow:none; color:var(--muted);
  min-height:34px; padding:0; font-size:13px;
}
.resource-actions .button:hover { color:var(--text); background:none; text-decoration:underline; }
[data-resource-favorite] button[aria-pressed="true"] svg { fill:#fff; stroke:#fff; }
.favorite-status:not([hidden]) { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
@media (prefers-reduced-motion:no-preference) {
  .favorite-added svg { animation:favorite-heart-pop 380ms var(--spring); }
}
@keyframes favorite-heart-pop {
  0% { transform:scale(.82); }
  42% { transform:scale(1.48); }
  74% { transform:scale(.94); }
  100% { transform:scale(1); }
}
.lightbox button { background:transparent; text-shadow:0 0 8px #000; filter:drop-shadow(0 1px 4px #000); }
.lightbox button:hover { background:#ffffff12; }
.card h3 { font-size: clamp(13px, 1.15vw, 16px); }
body {
  background: radial-gradient(ellipse 90% 34rem at 50% 100%, #80151f55, transparent),
    radial-gradient(ellipse 95% 25rem at 50% 42rem, #6a111e48, transparent), var(--bg);
}



.resource-media .gallery-compact { display:flex; align-items:center; gap:6px; background:transparent; }
.gallery-compact .gallery-hero { flex:none; width:54px; aspect-ratio:16/10; overflow:hidden; border-radius:6px; }
.resource-media .gallery-compact .gallery-hero img { height:100%; object-fit:cover; }
.resource-media .gallery-compact .thumbs { padding:4px; min-width:0; }
.gallery-compact .thumbs a:first-child { display:none; }


/* Keep previews and titles prominent; statistics live on the resource page. */
.card .card-body { padding: 10px 12px; gap: 6px; }
.card h3 { min-height: 2.56em; }
.card-info { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin-top: auto; color: var(--muted); font-size: 12px; }
.card-availability { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.card-availability[data-availability="local"] { color: var(--text); }
.card-availability svg { flex: none; width: 13px; height: 13px; }

/* A soft highlight keeps the card and its cover steady. */
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgb(255 255 255 / .11), transparent 58%);
  opacity: 0;
  transition: opacity 320ms ease;
}
.card-info, .card-availability {
  transition: color 280ms ease, opacity 280ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    background-color: rgb(30 30 32 / .78);
    border-color: rgb(255 255 255 / .15);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 5px 14px rgb(0 0 0 / .17);
  }
  .card:hover .card-media::after { opacity: 1; }
  .card:hover .card-info { color: var(--text); }
  .card:hover .card-availability[data-availability="external"] { color: var(--text); }
}
.card:has(.card-link:focus-visible) .card-media::after { opacity: 1; }


/* Glass soundtrack control centered under the two creators. */
.creators-music { display:flex; justify-content:center; margin-top:32px; }
.music-control { display:inline-flex; align-items:center; gap:18px; min-height:44px; padding:0 22px; border:1px solid rgba(255,255,255,.12); border-radius:28px; background:rgba(255,255,255,.045); backdrop-filter:blur(20px) saturate(180%); color:var(--text); box-shadow:inset 0 1px 0 #ffffff0a,0 8px 24px #0002; cursor:pointer; transition:background 250ms var(--spring),transform 250ms var(--spring); }
.music-control[hidden] { display:none; }
.music-control:hover { background:rgba(255,255,255,.09); transform:translateY(-1px); }
.music-name { font-size:12px; font-weight:600; letter-spacing:.08em; }
.music-bars { display:flex; align-items:center; gap:3px; height:18px; }
.music-bars i { width:2px; height:18px; border-radius:3px; background:currentColor; transform:scaleY(var(--level,.15)); transform-origin:center; }
.music-control:not(.is-playing) .music-bars { opacity:.4; }

.discord-roles { display:flex; flex-wrap:wrap; gap:6px; margin-block:8px; }
.site-notifications { flex:none; }
.site-notifications > summary { position:relative; width:36px; height:36px; padding:0; }
.site-notifications > summary::-webkit-details-marker { display:none; }
.notification-count {
  position:absolute; top:-5px; right:-8px; min-width:22px; min-height:17px; padding:2px 4px;
  border-radius:var(--pill); background:#b91c3a; color:#fff; text-align:center;
  font-size:10px; font-weight:700; line-height:13px; font-variant-numeric:tabular-nums;
  box-shadow:0 0 0 2px #19181c;
}
.notification-panel {
  position:absolute; right:0; top:calc(100% + 9px); z-index:2; width:min(350px,calc(100vw - 32px));
  border:1px solid #ffffff24; border-radius:20px; overflow:hidden;
  background:rgb(25 23 28 / .91); backdrop-filter:blur(22px) saturate(125%);
  box-shadow:0 18px 46px #0008,inset 0 1px #ffffff0a;
}
.notification-heading {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px 12px; border-bottom:1px solid var(--line);
}
.notification-heading h2 { font-size:16px; }
.notification-heading small { display:block; margin-top:3px; font-size:11px; color:var(--muted); }
.notification-sound {
  display:grid; place-items:center; width:36px; height:36px; flex:none;
  border-radius:10px; background:#ffffff0b; border:1px solid var(--line); color:var(--text);
}
.notification-sound:hover { background:#ffffff19; }
.notification-sound svg { width:17px; height:17px; }
.notification-sound[aria-pressed="false"] { color:var(--muted); }
.notification-sound[aria-pressed="false"]::after {
  content:""; position:absolute; width:19px; height:1px; background:currentColor; transform:rotate(-45deg);
  box-shadow:0 0 0 1px #19171c;
}
.notification-list {
  max-height:min(55vh,400px); overflow:auto; overscroll-behavior:contain; scrollbar-width:none; padding:6px;
}
.notification-list::-webkit-scrollbar { display:none; }
.notification-list:focus-visible { outline-offset:-2px; }
.turbo-progress-bar { background:#f17391 !important; height:2px !important; }
.navigation-status { position:fixed; inset:auto 16px 16px; z-index:40; max-width:max-content; margin-inline:auto; padding:9px 13px; border:1px solid var(--line-hover); border-radius:12px; background:#19191b; color:var(--text); font-size:13px; }
.notification-list:not(:has(.notification-entry)), .notification-empty { padding:14px; color:var(--muted); font-size:13px; }
.notification-entry { display:grid; gap:2px; overflow-wrap:anywhere; font-size:13px; }
.notification-entry small { color:var(--muted); }
.notification-list .notification-entry {
  position:relative; grid-template-columns:56px minmax(0,1fr); gap:10px; align-items:start;
  padding:10px 18px 10px 8px; border-radius:11px; line-height:1.43;
}
.notification-list .notification-entry + .notification-entry { margin-top:2px; }
.notification-list .notification-entry.is-unread { background:rgb(205 70 97 / .12); }
.notification-list .notification-entry.is-unread::after {
  content:""; position:absolute; top:13px; right:8px; width:6px; height:6px; border-radius:50%; background:#fc7b97;
}
.notification-list a.notification-entry:hover { background:#ffffff14; }
.notification-list a.notification-entry:focus-visible { outline-offset:-2px; }
.notification-symbol {
  display:grid; place-items:center; min-height:42px; border-radius:8px; background:#ffffff0c; color:#e6dfe7;
}
.notification-symbol svg { width:18px; height:18px; }
.notification-entry[data-kind="vip"] .notification-symbol { color:#f0ce91; background:#eab25e1b; }
.notification-entry[data-kind="site"] .notification-symbol { color:#a3caff; background:#7db6ff19; }
.notification-meta { display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px; font-size:10px; color:var(--muted); }
.notification-meta time { font-variant-numeric:tabular-nums; }
.notification-footer:has(button[hidden]) { display:none; }
.notification-footer { padding:8px 12px; border-top:1px solid var(--line); text-align:right; }
.notification-footer button { border:0; background:transparent; color:var(--text); padding:5px 6px; font-size:11px; }
.notification-footer button:hover { text-decoration:underline; }
.notification-toast {
  position:fixed; bottom:16px; right:16px; z-index:34; max-width:min(320px,calc(100vw - 32px));
  padding:12px 16px; border:1px solid var(--line-hover); border-left:3px solid #fc7b97;
  border-radius:14px; background:#19191bf5; overflow-wrap:anywhere; box-shadow:0 8px 30px #0005;
}
body:has(.site-chat-launch:not([hidden])) .notification-toast { bottom:90px; }
.site-chat-launch {
  display:grid; place-items:center; border:1px solid rgb(255 255 255 / .34); color:var(--text);
  position:fixed; z-index:35; right:max(20px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom));
  width:54px; height:54px; border-radius:50%;
  background:linear-gradient(145deg,rgb(255 255 255 / .21),rgb(255 255 255 / .04) 68%),rgb(42 42 50 / .25);
  backdrop-filter:blur(22px) saturate(175%);
  box-shadow:inset 0 1px 1px #fff5,inset 0 -2px 7px #fff1,0 8px 26px #0005;
  transition:transform 180ms var(--spring),box-shadow 180ms ease;
}
.site-chat-launch:hover { transform:translateY(-2px); box-shadow:inset 0 1px 2px #fff8,inset 0 0 22px #fff2,0 10px 30px #0006; }
.site-chat-launch:active { transform:scale(.96); }
.site-chat-launch svg { width:22px; height:22px; }
.site-chat {
  --chat-inset:24px;
  --chat-padding:24px;
  position:fixed; inset:auto max(var(--chat-inset),env(safe-area-inset-right)) max(var(--chat-inset),env(safe-area-inset-bottom)) auto;
  margin:0; padding:0; width:min(450px,calc(100vw - 2 * var(--chat-inset)));
  height:min(704px,calc(100dvh - max(var(--chat-inset),env(safe-area-inset-bottom)) - max(var(--chat-inset),env(safe-area-inset-top))));
  max-width:none; max-height:none; overflow:hidden; color:var(--text);
  border:1px solid rgb(255 255 255 / .18); border-radius:8px;
  background:linear-gradient(155deg,rgb(31 30 35 / .66),rgb(16 15 20 / .79));
  backdrop-filter:blur(24px) saturate(125%);
  box-shadow:0 18px 48px #0006;
}
.site-chat[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; animation:site-chat-in 220ms var(--spring); }
.site-chat::backdrop { background:rgb(0 0 0 / .08); }
@keyframes site-chat-in { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:none; } }
.site-chat button {
  border:0; border-radius:0; padding:0; color:var(--muted);
  background:transparent; cursor:pointer;
}
.site-chat button:hover:not(:disabled), .site-chat button:focus-visible { color:var(--text); }
.site-chat button:focus-visible, .site-chat-resource:focus-visible { outline:2px solid #bcd9ff; outline-offset:3px; }
.site-chat-header {
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:16px var(--chat-padding); border-bottom:1px solid var(--line);
}
.site-chat-header h2 { font-size:16px; line-height:1.35; }
.site-chat-header button, .site-chat-form button { display:grid; place-items:center; width:36px; height:36px; }
.site-chat-actions { display:flex; align-items:center; gap:10px; }
.site-chat-expand { display:grid; place-items:center; width:26px; height:36px; color:var(--muted); }
.site-chat-expand:hover { color:var(--text); }
.site-chat-header .site-chat-web {
  display:inline-flex; align-items:center; gap:6px; width:auto;
  font-size:13px; white-space:nowrap;
}
.site-chat-web svg { width:15px; height:15px; }
.site-chat-header .site-chat-web[aria-pressed="true"] {
  color:#d3e6ff; text-decoration:underline; text-underline-offset:4px;
}
.site-chat-scroll {
  padding:24px var(--chat-padding); overflow:auto; overscroll-behavior:contain; scrollbar-width:none;
}
.site-chat-scroll::-webkit-scrollbar { display:none; }
.site-chat-log { display:grid; gap:24px; }
.site-chat-bubble {
  justify-self:start; max-width:100%; font-size:15px; line-height:1.7;
  white-space:pre-wrap; overflow-wrap:anywhere;
}
.site-chat-bubble--visitor {
  justify-self:end; max-width:86%; color:#e2e9f7; font-weight:600; text-align:right;
}
.site-chat-prose {
  display:grid; gap:12px; max-width:70ch; font-size:15px; line-height:1.7; overflow-wrap:anywhere;
}
.site-chat-prose h3 { font-size:1.06em; line-height:1.35; margin-top:4px; }
.site-chat-prose :is(ul,ol) { display:grid; gap:5px; margin:0; padding-inline-start:22px; }
.site-chat-prose code { color:#d3e6ff; font-size:.92em; }
.site-chat-prose a { color:#bcd9ff; text-decoration:underline; text-underline-offset:3px; }
.site-chat-answer { display:grid; gap:12px; min-width:0; }
.site-chat-resources { display:grid; gap:12px; }
.site-chat-resource {
  display:flex; align-items:center; gap:12px; min-width:0;
  color:inherit; text-decoration:none;
}
.site-chat-resource:hover strong, .site-chat-resource:focus-visible strong {
  color:#bcd9ff; text-decoration:underline; text-underline-offset:3px;
}
.site-chat-resource img {
  flex:none; width:clamp(68px,20vw,96px); aspect-ratio:4/3;
  object-fit:cover; border-radius:4px; background:#ffffff0e;
}
.site-chat-resource-text { display:grid; gap:3px; flex:1; min-width:0; line-height:1.35; overflow-wrap:anywhere; }
.site-chat-resource-text small, .site-chat-resource-description, .site-chat-resource-arrow { color:var(--muted); }
.site-chat-resource-text small { font-size:11px; }
.site-chat-resource-text strong { font-size:14px; }
.site-chat-resource-description {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow:hidden; font-size:12px;
}
.site-chat-resource-arrow { align-self:flex-start; flex:none; font-size:13px; }
.site-chat-sources { padding-top:9px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.site-chat-sources ul { display:grid; gap:4px; padding:5px 0 0; margin:0; list-style:none; }
.site-chat-sources a { color:#bcd9ff; overflow-wrap:anywhere; text-underline-offset:3px; }
.site-chat-prompts:not([hidden]) { display:grid; justify-items:start; gap:2px; margin-top:20px; }
.site-chat-prompts button { padding:5px 0; font-size:13px; line-height:1.5; text-align:left; }
.site-chat-prompts button:hover:not(:disabled) { text-decoration:underline; text-underline-offset:3px; }
.site-chat-status { width:fit-content; margin:18px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.site-chat-status.is-thinking { animation:site-chat-thinking 1.5s ease-in-out infinite; }
@keyframes site-chat-thinking {
  0%, 100% { transform:translateX(0); opacity:.65; }
  50% { transform:translateX(6px); opacity:1; }
}
@media (prefers-reduced-motion: reduce) {
  .site-chat[open], .site-chat-status.is-thinking { animation:none; }
}
body[data-motion="off"] .site-chat[open],
body[data-motion="off"] .site-chat-status.is-thinking { animation:none; }
.site-chat-form {
  display:grid; grid-template-columns:minmax(0,1fr) auto 36px; gap:10px; align-items:center;
  border-top:1px solid var(--line); padding:12px var(--chat-padding);
}
.site-chat-form select {
  min-width:0; max-width:126px; background:none; border:0; color:var(--muted);
  font-size:12px; min-height:36px; cursor:pointer;
}
.site-chat-form select:hover { color:var(--text); }
.site-chat-form option { background:var(--panel); color:var(--text); }
.site-chat-form input {
  min-width:0; height:42px; padding:0; border:0;
  color:var(--text); background:transparent; font-size:16px;
}
.site-chat-form input:focus { outline:none; }
.site-chat-form:focus-within { border-top-color:var(--line-hover); }
.site-chat-form input::placeholder { color:var(--muted); }
.site-chat-form button svg { transform:rotate(-90deg); }
.site-chat-form button:disabled { opacity:.45; cursor:wait; }
@media (max-width: 480px) {
  .site-chat { --chat-inset:12px; --chat-padding:17px; }
  .site-chat-scroll { padding-block:19px; }
}

body:has(> .assistant-main) { height:100dvh; min-height:0; }
.assistant-main { display:flex; min-height:0; padding-inline:16px; }
.site-chat--page {
  position:relative; inset:auto; display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  width:min(860px,100%); height:auto; margin-inline:auto; min-height:0;
  border:0; border-radius:0; background:none; backdrop-filter:none; box-shadow:none;
}
.site-chat--page .site-chat-header {
  padding-block:20px; align-items:baseline; flex-wrap:wrap;
}
.site-chat--page h1 { font-size:clamp(17px,2.6vw,22px); line-height:1.3; }
.site-chat--page .site-chat-reset { width:auto; height:auto; min-height:32px; font-size:13px; white-space:nowrap; }
.site-chat--page .site-chat-reset:disabled { opacity:.5; cursor:default; }
.site-chat--page .site-chat-welcome { margin-block:clamp(20px,13vh,130px) 20px; }
.site-chat--page .site-chat-welcome h2 { font-size:clamp(26px,6vw,44px); line-height:1.13; }
.site-chat--page .site-chat-prompts button { font-size:14px; }
.site-chat--page :is(.site-chat-bubble,.site-chat-prose) { font-size:16px; }
.site-chat--page .site-chat-resources { margin-block:4px; gap:16px; }
.site-chat--page .site-chat-resource img { width:clamp(76px,20vw,126px); }
.site-chat--page .site-chat-resource-text strong { font-size:15px; }
.site-chat--page .site-chat-form { padding-bottom:max(14px,env(safe-area-inset-bottom)); }
.site-chat[open], .site-chat--page { grid-template-rows:auto minmax(0,1fr) auto auto; }
.assistant-history { width:min(24vw,250px); flex:none; padding:25px 16px 10px; overflow:auto; }
.assistant-history summary, .assistant-filters summary { color:var(--muted); cursor:pointer; font-size:13px; }
.assistant-thread-list { display:grid; gap:7px; margin-top:14px; }
.assistant-thread { display:flex; align-items:center; gap:6px; min-width:0; }
.assistant-thread button {
  border:0; background:none; color:var(--muted); padding:6px;
  text-align:left; font-size:12px;
}
.assistant-thread button:first-child { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.assistant-thread button[aria-current="true"], .assistant-thread button:hover { color:var(--text); }
.assistant-thread button[aria-current="true"] { text-decoration:underline; text-underline-offset:4px; }
.assistant-filters { grid-column:1/-1; min-width:0; }
.assistant-filter-fields { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; margin-top:10px; padding-bottom:8px; }
.assistant-filter-fields label { color:var(--muted); font-size:12px; }
.assistant-filter-fields label:not(.assistant-filter-direct) { display:grid; }
.assistant-filter-fields label input { height:auto; accent-color:#a7c6f5; }
.site-chat .assistant-search-filters { width:auto; min-height:30px; height:auto; font-size:12px; }
.assistant-resource-entry { display:grid; gap:7px; }
.assistant-resource-actions { display:flex; flex-wrap:wrap; gap:6px 12px; }
.assistant-resource-actions a, .assistant-resource-actions button, .site-chat .assistant-copy { font-size:12px; }
.assistant-resource-actions a { color:#bcd9ff; }
.assistant-resource-actions a:hover, .assistant-resource-actions button:hover, .site-chat .assistant-copy:hover { text-decoration:underline; }
.assistant-select-compare[aria-pressed="true"] { color:#bcd9ff; }
.assistant-select-compare:disabled { opacity:.5; cursor:default; }
.site-chat .assistant-copy { justify-self:start; }
.assistant-compare { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding:8px var(--chat-padding); }
.assistant-compare-list { display:flex; flex-wrap:wrap; gap:4px 12px; }
.assistant-compare button { font-size:12px; }
.site-chat .assistant-run-compare { color:#bcd9ff; }
.site-chat .assistant-run-compare:disabled { color:var(--muted); opacity:.5; cursor:default; }
.resource-assistant-link { display:inline-flex; align-items:center; gap:6px; margin-block:4px 10px; color:#bcd9ff; font-size:13px; }
.resource-assistant-link:hover { text-decoration:underline; }
.tools-page { padding-block:clamp(34px,6vw,72px); }
.tools-heading { max-width:640px; margin-bottom:clamp(32px,5vw,58px); }
.tools-heading h1 { font-size:clamp(39px,7vw,68px); line-height:1.03; }
.tools-heading p { margin-top:14px; color:var(--muted); line-height:1.65; }
.resource-report, .resource-report-link { color:var(--muted); font-size:13px; }
.resource-report-link { display:block; width:fit-content; }
.resource-report summary { cursor:pointer; width:fit-content; }
.resource-report :is(form,p) { margin-block-start:10px; }
.resource-report summary:hover, .resource-report-link:hover { color:var(--text); }
.catalogue-quality { display:grid; gap:16px; }
.quality-controls { display:flex; flex-wrap:wrap; align-items:end; gap:10px 14px; }
.quality-controls label { display:grid; gap:5px; font-size:13px; color:var(--muted); }
.quality-controls select { min-height:38px; padding:4px 8px; color:var(--text); background:var(--panel); border:1px solid var(--line); }
.quality-list li { flex-wrap:wrap; }
.quality-detail { white-space:pre-wrap; overflow-wrap:anywhere; }
.services-page { padding-block:clamp(36px,7vw,84px); }
.services-heading { max-width:620px; margin-bottom:clamp(28px,5vw,54px); }
.services-heading h1 { font-size:clamp(40px,7vw,72px); line-height:1.02; font-weight:650; }
.services-heading p { margin-top:15px; color:var(--muted); line-height:1.65; }
.service-offers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.service-offer {
  display:flex; flex-direction:column; align-items:start; gap:13px; min-width:0;
  padding:clamp(18px,3vw,28px); border:1px solid var(--line); border-radius:16px;
  background:linear-gradient(155deg,#ffffff0c,#ffffff03); transition:border-color .18s,background-color .18s;
}
.service-offer:hover, .service-offer[aria-current] { border-color:var(--line-hover); background-color:#ffffff08; }
.service-icon { color:#ffadbb; font-size:22px; }
.service-offer h2 { font-size:clamp(18px,2.25vw,23px); line-height:1.15; }
.service-offer p { color:var(--muted); font-size:14px; line-height:1.6; }
.service-cta { display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:6px; font-size:13px; font-weight:600; }
.service-quote {
  max-width:710px; margin-top:clamp(32px,7vw,64px); padding-top:26px; border-top:1px solid var(--line);
}
.service-quote h2 { font-size:clamp(23px,4vw,34px); line-height:1.15; }
.service-quote > p { margin-top:10px; line-height:1.6; }
.service-quote > .button, .service-form { margin-top:22px; }
.service-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.service-form #service-private { font-size:12px; margin-top:-8px; }
.service-requests h2 { font-size:17px; }
.service-requests li { flex-wrap:wrap; padding-block:16px; }
.service-requests .service-description { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text); margin-block:10px; font-size:14px; line-height:1.55; }
.service-mine li > span { color:var(--muted); font-size:13px; }
@media (max-width:730px) {
  .service-offers { grid-template-columns:1fr; gap:10px; }
}
@media (max-width:445px) {
  .service-fields { grid-template-columns:1fr; }
}
@media (max-width: 740px) {
  .assistant-main { flex-direction:column; }
  .assistant-history { width:100%; max-height:25dvh; padding:10px 17px 2px; }
  .assistant-history details:not(:focus-within) .assistant-thread-list { max-height:6em; overflow:auto; }
  .site-chat--page { flex:1; }
}
@media (max-width: 480px) {
  .assistant-main { padding-inline:0; }
  .site-chat--page .site-chat-header { padding-block:10px; row-gap:4px; }
}



.account-avatar-wrap { position:relative; display:inline-flex; flex:none; }
.account-santa-hat { position:absolute; top:-6px; left:-3px; width:19px; height:13px; transform:rotate(-24deg); pointer-events:none; }
.account-santa-hat::before { content:""; position:absolute; left:2px; top:0; width:14px; height:10px; border-radius:80% 75% 20% 25%; background:linear-gradient(135deg,#ff6971,#b51126 70%); }
.account-santa-hat::after { content:""; position:absolute; left:0; bottom:0; width:16px; height:4px; border-radius:3px; background:#fff7f4; box-shadow:0 1px 2px #0005; }
.account-santa-hat i { position:absolute; right:0; top:3px; width:5px; height:5px; border-radius:50%; background:#fff7f4; box-shadow:0 1px 2px #0005; }
body[data-season="off"] .account-santa-hat { display:none; }

.settings-page { max-width:880px; margin-top:clamp(32px,6vw,64px); margin-bottom:clamp(64px,9vw,104px); }
.settings-page .page-heading { margin-bottom:clamp(28px,5vw,56px); }
.settings-page .settings-form { gap:0; }
.settings-section {
  display:grid; grid-template-columns:minmax(140px,1fr) minmax(0,2.65fr);
  gap:clamp(16px,4vw,42px); border-top:1px solid var(--line); padding-block:clamp(24px,4vw,38px);
}
.settings-section h2 { font-size:18px; }
.settings-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
.settings-switches { grid-column:1/-1; display:grid; }
.settings-form label { gap:9px; font-size:14px; color:var(--text); }
.settings-form select, .settings-form textarea {
  background:#ffffff06; border:1px solid var(--line-hover); border-radius:11px;
  padding:11px 12px; font:inherit; line-height:1.55;
}
.settings-form select { min-height:44px; }
.settings-form select option { background:var(--panel); }
.settings-form textarea { min-height:128px; }
.settings-form .setting-toggle { min-height:46px; gap:16px; }
.settings-form .setting-toggle + .setting-toggle { border-top:1px solid var(--line); }
.settings-form input.settings-switch {
  appearance:none; width:39px; height:22px; margin:0; border-radius:20px; cursor:pointer;
  background:#ffffff18; border:1px solid var(--line-hover); position:relative;
  transition:background-color .18s ease;
}
.settings-switch::before {
  content:""; position:absolute; inset:2px auto auto 2px; width:16px; height:16px;
  border-radius:50%; background:var(--text); transition:transform .18s ease;
}
.settings-form input.settings-switch:checked { background:#932638; border-color:#e4778a; }
.settings-switch:checked::before { transform:translateX(17px); }
.settings-profile-links { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:14px; }
.settings-profile-links a { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:var(--muted); padding-block:5px; }
.settings-profile-links a:hover { color:var(--text); }
.settings-profile-links svg { width:13px; height:13px; }
.settings-save { display:flex; justify-content:flex-end; padding:20px 0 28px; }
.settings-signout { align-items:center; margin-top:0; }
.settings-signout .account-logout { padding:7px 0; font-size:14px; }
.settings-signout .account-logout:hover { text-decoration:underline; }
@media (max-width:570px) {
  .settings-section { grid-template-columns:1fr; }
  .settings-save { justify-content:flex-start; padding-top:8px; }
  .settings-signout { gap:10px; }
}
@media (max-width:350px) {
  .settings-fields { grid-template-columns:1fr; }
}

.header-popover [data-creator-dashboard][hidden] { display:none; }

.site-intro {
  position:fixed; inset:0; margin:0; padding:24px; border:0;
  width:100%; max-width:none; height:100%; max-height:none; overflow:hidden;
  background:#080709; color:var(--text);
}
.site-intro[open] { display:grid; place-items:center; }
.site-intro::backdrop { background:transparent; }
.intro-stage { position:relative; display:grid; justify-items:center; gap:clamp(24px,6vh,54px); isolation:isolate; }
.intro-stage:focus { outline:none; }
.intro-logo { width:min(84vw,780px); }
.intro-logo img { display:block; width:100%; height:auto; }
.intro-glow {
  position:absolute; z-index:-1; inset:-60% -55%; pointer-events:none;
  background:radial-gradient(ellipse,#b917365e,transparent 62%); opacity:.4;
}
.intro-loading { width:min(56vw,270px); color:#c8bfc4; text-align:center; font-size:12px; letter-spacing:.035em; }
.intro-progress { overflow:hidden; height:3px; margin-top:12px; border-radius:99px; background:#ffffff20; }
.intro-progress i { display:block; height:100%; transform-origin:left; border-radius:inherit; background:linear-gradient(90deg,#b51234,#ffc6d2); }
.intro-skip {
  position:absolute; bottom:max(24px,env(safe-area-inset-bottom));
  min-height:40px; padding:8px 15px; border:1px solid #ffffff28; border-radius:99px;
  background:#ffffff07; backdrop-filter:blur(20px) saturate(140%);
  box-shadow:inset 0 1px 0 #ffffff12; color:#f5f5f7; font-size:12px; cursor:pointer;
}
.intro-skip { right:24px; }
.intro-skip:hover { background:#ffffff15; }

@keyframes catalog-spin { to { rotate:360deg; } }
@keyframes hero-settle { from { transform:translateY(3px); } to { transform:none; } }
.button:active { filter:brightness(.86); }

.header-actions { position:relative; }
.header-actions .site-notifications { position:static; }


.intro-replay { position:relative; justify-self:start; padding:4px 0; color:var(--muted); background:none; border:0; font-size:12px; cursor:pointer; }
.intro-replay:hover { color:var(--text); text-decoration:underline; }

.intro-replay { margin-top:12px; }

:root {
  --control-glass: #ffffff07;
  --control-hover: #ffffff13;
  --control-line: #ffffff24;
  --control-line-hover: #ffffff46;
  --control-accent: #ff567719;
  --control-accent-hover: #ff56772e;
  --control-accent-line: #ff91a55c;
}
.button.primary, .button.secondary, .pagination a, .pagination [aria-current],
.header-signin, .header-menu > summary, .mobile-toggle, .effects, .filter-picker summary {
  backdrop-filter:blur(14px) saturate(135%);
  box-shadow:inset 0 1px 0 #ffffff0d;
}
.header-signin, .header-menu > summary, .mobile-toggle, .effects, .filter-picker summary {
  background:var(--control-glass);
  border-color:var(--control-line);
}
.header-signin:hover, .header-menu > summary:hover, .header-menu[open] > summary,
.mobile-toggle:hover, .effects:hover, .filter-picker summary:hover {
  background:var(--control-hover);
  border-color:var(--control-line-hover);
}
.nav a:hover, .nav a[aria-current], .mobile-nav nav a:hover, .mobile-nav nav a[aria-current],
.catalog-tabs a:hover, .catalog-tabs a[aria-current] { background:var(--control-hover); }

.creator-dashboard { display:grid; grid-template-columns:210px minmax(0,1fr); gap:clamp(24px,4vw,64px); margin-block:32px 60px; }
.dashboard-sidebar { border-inline-end:1px solid var(--line); padding-inline-end:18px; }
.dashboard-sidebar > p { font-size:12px; color:var(--muted); margin:8px 0 18px; }
.dashboard-sidebar nav { display:grid; gap:3px; }
.dashboard-sidebar a { display:flex; align-items:center; gap:9px; padding:10px 8px; color:var(--muted); font-size:13px; border-radius:6px; }
.dashboard-sidebar a:hover, .dashboard-sidebar a[aria-current] { color:var(--text); background:#ffffff09; }
.dashboard-sidebar a[aria-current] svg { color:#ff97ad; }
.dashboard-content { min-width:0; }
.dashboard-content h1 { font-size:clamp(30px,4vw,46px); margin:0 0 28px; }
.dashboard-content h2 { font-size:17px; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:18px; margin:0 0 28px; }
.dashboard-metrics dt { color:var(--muted); font-size:13px; }
.dashboard-metrics dd { font-size:28px; font-weight:650; margin:6px 0 0; font-variant-numeric:tabular-nums; }
.dashboard-block { border-top:1px solid var(--line); padding-top:22px; margin-top:24px; }
.dashboard-chart-heading { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:12px; }
.dashboard-chart-heading strong { display:block; font-size:36px; margin-top:4px; font-variant-numeric:tabular-nums; }
.dashboard-periods { display:flex; flex-wrap:wrap; gap:14px; font-size:12px; }
.dashboard-periods a { padding-block:5px; color:var(--muted); }
.dashboard-periods a[aria-current] { color:var(--text); border-bottom:1px solid #ff97ad; }
.traffic-chart { display:block; width:100%; height:auto; aspect-ratio:800 / 230; margin:16px 0; overflow:visible; }
.traffic-chart text { fill:var(--muted); font-size:15px; }
.traffic-grid { fill:none; stroke:#ffffff29; }
.traffic-line { fill:none; stroke:#ff97ad; stroke-width:2.5; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.traffic-fill { fill:#ff97ad20; }
.traffic-point { fill:#ff97ad; }
.traffic-point:hover { fill:#fff; }
.traffic-data { margin-block:10px; font-size:13px; color:var(--muted); }
.traffic-data summary { cursor:pointer; }
.traffic-data table { width:100%; margin-top:10px; text-align:left; }
.traffic-data td, .traffic-data th { padding:6px 0; border-bottom:1px solid var(--line); }
.dashboard-list { list-style:none; padding:0; margin:12px 0; }
.dashboard-list li { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.dashboard-list a:hover { text-decoration:underline; }
.dashboard-list p, .dashboard-list time { color:var(--muted); font-size:12px; }
.dashboard-list time { flex:none; }
.dashboard-compose { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:28px; }
.dashboard-compose input:not([type=hidden]), .dashboard-compose textarea { width:100%; min-height:40px; border:1px solid var(--line-hover); border-radius:8px; padding:8px 10px; background:#ffffff09; color:var(--text); }
.dashboard-preview { border-inline-start:1px solid var(--line); padding-inline-start:20px; }
.dashboard-preview .notification-entry { border:0; padding-top:12px; white-space:pre-wrap; }
body:has(.creator-dashboard) .snow { display:none; }
@media(max-width:760px) {
  .creator-dashboard { grid-template-columns:minmax(0,1fr); gap:24px; margin-top:22px; }
  .dashboard-sidebar { border-inline-end:0; border-bottom:1px solid var(--line); padding:0 0 8px; }
  .dashboard-sidebar > p { margin:0 0 8px; }
  .dashboard-sidebar nav { display:flex; flex-wrap:wrap; }
  .dashboard-compose { grid-template-columns:minmax(0,1fr); gap:20px; }
  .dashboard-preview { border-inline-start:0; border-top:1px solid var(--line); padding:14px 0 0; }
  .traffic-chart text { font-size:21px; }
}
@media(max-width:420px) { .dashboard-list li { flex-direction:column; gap:4px; } }

.dashboard-title { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-bottom:24px; }
.dashboard-title h1 { margin:0; }
.dashboard-title .button { min-height:36px; }
.site-state-current { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.site-state-current h2 { margin:4px 0; }
.site-state-current[data-mode="online"] h2 { color:#a0d8c7; }
.site-state-label { display:flex; align-items:flex-start; gap:12px; }
.site-state-label svg { flex:none; width:19px; height:19px; color:var(--muted); }
.site-state-list li { align-items:center; }
.site-state-list .editor-actions { flex:none; margin-top:0; align-items:center; }
.dashboard-rights { display:grid; gap:9px; margin:0; padding:0; border:0; }
.dashboard-rights legend { margin-bottom:10px; }
.community-form .dashboard-rights label { display:flex; align-items:center; gap:9px; }
.dashboard-rights input[type=checkbox] { width:16px; height:16px; margin:0; accent-color:var(--text); }
.editor-description { margin:0 0 22px; }
.resource-editor input[type=file] { color:var(--muted); font-size:12px; }
.resource-editor input::file-selector-button { margin-right:8px; padding:4px 8px; border:1px solid var(--line); border-radius:6px; background:var(--control-glass); color:var(--text); cursor:pointer; }
.resource-editor label small { color:var(--muted); }
.editor-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.editor-card { margin-top:12px; max-width:340px; }
.editor-cover-placeholder { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); font-size:12px; }
.editor-description-preview { margin-top:12px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }

.card:has(.card-remove) { position:relative; }
.card-remove {
  position:absolute; top:8px; left:8px; z-index:1;
  display:grid; place-items:center; width:34px; height:34px; padding:0;
  color:#fff; background:#16101599; border:1px solid #ffffff35;
  backdrop-filter:blur(14px); border-radius:50%; cursor:pointer;
}
.card-remove:hover { background:#941a33aa; }
.resource-removal-dialog {
  width:min(420px,calc(100% - 32px)); padding:24px; border:1px solid var(--line-hover);
  border-radius:16px; background:#1b181deb; backdrop-filter:blur(20px); color:var(--text);
}
.resource-removal-dialog::backdrop { background:#0009; }
.resource-removal-dialog form { display:grid; gap:12px; }
.resource-removal-dialog h2 { font-size:20px; }
.resource-removal-dialog p { overflow-wrap:anywhere; }
.resource-removal-dialog [role=alert] { color:#ff97ad; }
.editor-category-shortcuts { display:flex; flex-wrap:wrap; gap:8px 16px; margin-bottom:22px; font-size:13px; }
.editor-category-shortcuts a { color:var(--muted); padding-block:4px; }
.editor-category-shortcuts a[aria-current], .editor-category-shortcuts a:hover { color:var(--text); border-bottom:1px solid #ff97ad; }

.traffic-interactive { position:relative; margin:16px 0; }
.traffic-interactive .traffic-chart { margin:0; cursor:crosshair; touch-action:pan-y; }
.traffic-cursor { stroke:#ffb5c69c; stroke-width:1; stroke-dasharray:4 4; vector-effect:non-scaling-stroke; }
.traffic-point.is-active { fill:#fff; stroke:#ff97ad; stroke-width:3; r:6; vector-effect:non-scaling-stroke; }
.traffic-tooltip {
  position:absolute; z-index:2; display:grid; gap:2px; padding:8px 12px; max-width:100%;
  border:1px solid #ffffff2b; border-radius:10px; background:#21191eee; backdrop-filter:blur(16px);
  color:var(--text); font-size:12px; box-shadow:0 6px 18px #0004; pointer-events:none;
}
.traffic-tooltip strong { font-size:20px; font-variant-numeric:tabular-nums; }
.traffic-tooltip small, .traffic-tooltip span { color:var(--muted); }

.notification-entry:has(.notification-media) { grid-template-columns:56px minmax(0,1fr); align-items:center; gap:9px; }
.notification-copy { display:grid; gap:2px; min-width:0; }
.notification-media { position:relative; display:block; overflow:hidden; border-radius:6px; background:var(--raised); }
.notification-media img { display:block; width:56px; height:42px; object-fit:cover; }
.notification-media.has-video::after {
  content:""; position:absolute; right:3px; bottom:3px; width:16px; height:16px;
  border-radius:50%; background:#151217d9;
}
.notification-media.has-video::before {
  content:""; position:absolute; z-index:1; right:8px; bottom:7px;
  border-left:5px solid #fff; border-top:4px solid transparent; border-bottom:4px solid transparent;
}

.profile-setup-preview { margin:24px 0 30px; }
.profile-setup-preview .member-heading { align-items:end; }
.profile-photo-preview { display:block; min-width:65px; }
.profile-image-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.profile-setup input[type=text] { width:100%; padding:9px 12px; border:1px solid var(--line-hover); border-radius:8px; background:#ffffff09; color:var(--text); }
.profile-setup input[type=file] { max-width:100%; color:var(--muted); }
.profile-setup-note { font-size:12px; }
.community-ranking > p { margin:16px 0 10px; }
.community-leaderboard { list-style:none; padding:0; margin:24px 0; }
.community-leaderboard li { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px 6px; border-top:1px solid var(--line); font-size:14px; }
.community-rank { text-align:center; color:var(--muted); }
.community-leader .community-rank { color:#ffd178; }
.community-leader .community-rank svg { width:22px; height:22px; }
.community-rank-user { display:flex; gap:8px; align-items:center; overflow-wrap:anywhere; }
.account-avatar.vip-avatar {
  outline:2px solid #ffd36a; outline-offset:2px; box-shadow:0 0 13px #ffc1487a;
}
.vip-badge {
  flex:none; padding:2px 6px; border-radius:5px; background:#ffd46a24;
  color:#ffe39a; font-size:10px; font-weight:750; line-height:1.5; letter-spacing:.06em;
}
.vip-text-link, .account-vip-link, .nav a[href="/vip"] { color:#ffe098; }
.card-availability[data-availability="vip"] { color:#ffe098; }
.vip-text-link:hover { text-decoration:underline; }
.vip-page { max-width:860px; margin:clamp(42px,7vw,92px) auto; padding-inline:clamp(0px,3vw,28px); }
.vip-intro { max-width:640px; }
.vip-intro h1 { font-size:clamp(36px,6vw,65px); line-height:1.05; }
.vip-intro h1 svg { width:.7em; height:.7em; color:#ffdb83; }
.vip-intro p, .vip-instructions li { color:var(--muted); line-height:1.75; }
.vip-intro p { margin-top:18px; }
.vip-intro .vip-active { color:#ffe39a; }
.vip-plans {
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,5vw,56px);
  margin-top:36px; padding-block:24px; border-block:1px solid var(--line);
}
.vip-plans h2 { color:var(--muted); font-size:14px; }
.vip-plans p { margin-top:6px; }
.vip-plans strong { font-size:clamp(26px,5vw,40px); font-weight:650; }
.vip-plans span { color:var(--muted); font-size:13px; }
.vip-instructions { margin-top:32px; }
.vip-instructions h2 { font-size:22px; }
.vip-instructions ol { display:grid; gap:8px; padding-inline-start:24px; }
.vip-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.vip-category-space { margin-top:36px; padding-block:28px; border-block:1px solid var(--line); }
.vip-category-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.vip-category-heading p { margin:0 0 4px; font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.vip-category-heading h2 { margin:0; font-size:clamp(23px,4vw,31px); }
.vip-category-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0; padding:0; list-style:none; }
.vip-category-list a { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; min-height:76px; padding:13px; border:1px solid var(--line); border-radius:12px; background:var(--glass); }
.vip-category-list a:hover { border-color:#e6c78577; background:#e6c7850b; transform:translateY(-1px); }
.vip-category-list strong,.vip-category-list small { display:block; overflow-wrap:anywhere; }
.vip-category-list strong { font-size:14px; }
.vip-category-list small { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.4; }
.vip-category-list a>svg { width:14px; color:var(--dim); }
.vip-category-icon { display:grid; place-items:center; width:34px; height:34px; border:1px solid #e6c78538; border-radius:9px; color:#e6c785; background:#e6c7850a; }
.vip-category-icon svg { width:17px; height:17px; }
@media (max-width:760px) {
  .vip-category-heading { align-items:start; flex-direction:column; gap:8px; }
  .vip-category-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:460px) { .vip-category-list { grid-template-columns:minmax(0,1fr); } }
.community-heading-row { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.community-heading-row .page-heading { margin:0; }
.community-reviews,.community-members { padding-top:6px; }
.community-reviews-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.community-reviews-heading h2,.community-members h2 { margin:4px 0 0; font-size:clamp(25px,4vw,36px); }
.community-review-score { display:flex; align-items:baseline; gap:7px; }
.community-review-score strong { font-size:clamp(34px,5vw,52px); letter-spacing:-.05em; }
.community-review-score span { color:#e6c785; font-size:22px; }
.community-reviews>.button { margin-top:18px; background:transparent; backdrop-filter:blur(14px); }
.community-reviews>.button:hover { background:#ffffff08; }
.community-review-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:24px 0 0; padding:0; list-style:none; }
.community-review-list>li { min-width:0; padding:18px; border:1px solid var(--control-line); border-radius:14px; background:rgb(255 255 255 / .025); box-shadow:inset 0 1px #ffffff08; backdrop-filter:blur(16px) saturate(130%); }
.community-review-author { display:flex; align-items:center; gap:10px; }
.community-review-author>span { min-width:0; }
.community-review-author strong,.community-review-author small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.community-review-author small,.community-review-list time { color:var(--muted); font-size:11px; }
.community-review-rating { margin-top:14px; color:#e6c785; letter-spacing:.08em; }
.community-review-rating span { color:#ffffff24; }
.community-review-list p { min-height:44px; margin:10px 0 14px; line-height:1.55; overflow-wrap:anywhere; }
.community-member-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:22px 0 0; padding:0; list-style:none; }
.community-member-grid a { display:flex; align-items:center; gap:11px; min-height:68px; padding:12px; border:1px solid var(--control-line); border-radius:12px; background:rgb(255 255 255 / .025); box-shadow:inset 0 1px #ffffff07; backdrop-filter:blur(15px) saturate(130%); }
.community-member-grid a:hover { border-color:var(--control-line-hover); background:#ffffff08; }
.community-member-grid a>span { min-width:0; flex:1; }
.community-member-grid strong,.community-member-grid small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.community-member-grid small { margin-top:3px; color:var(--muted); font-size:11px; }
.community-member-grid a>svg { width:14px; color:var(--dim); }
.community-member-grid a>.vip-badge { flex:0 0 auto; width:auto; min-width:0; }
.site-review-prompt { position:fixed; right:max(22px,env(safe-area-inset-right)); bottom:max(88px,calc(env(safe-area-inset-bottom) + 72px)); z-index:90; width:min(310px,calc(100vw - 28px)); padding:13px; border:1px solid #ffffff16; border-radius:17px; background:rgb(18 18 20 / .18); box-shadow:0 12px 34px #0004,inset 0 1px #ffffff0a; backdrop-filter:blur(26px) saturate(135%); opacity:0; transform:translateY(10px) scale(.985); transition:opacity .22s ease,transform .22s ease,background-color .2s ease; }
.site-review-prompt.is-visible { opacity:1; transform:none; }
.site-review-prompt.is-expanded { width:min(360px,calc(100vw - 28px)); padding:17px; border-color:#ffffff24; background:rgb(18 18 20 / .58); box-shadow:0 22px 70px #0008,inset 0 1px #ffffff12; }
.site-review-prompt[hidden] { display:none; }
.site-review-close { position:absolute; top:8px; right:8px; display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:50%; color:var(--muted); background:#ffffff06; cursor:pointer; }
.site-review-close svg { width:14px; }
.site-review-invite { display:grid; grid-template-columns:auto minmax(0,1fr); gap:11px; padding-right:26px; }
.site-review-invite .button { grid-column:1/-1; justify-self:start; margin-top:3px; }
.site-review-symbol { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:#e6c785; background:#e6c7850a; }
.site-review-symbol svg { width:19px; }
.site-review-prompt p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.site-review-form { display:grid; gap:15px; padding-right:24px; }
.site-review-form[hidden],.site-review-invite[hidden],.site-review-thanks[hidden] { display:none; }
.site-review-form fieldset { margin:0; padding:0; border:0; }
.site-review-form legend,.site-review-message>span { margin-bottom:7px; color:var(--muted); font-size:11px; }
.site-review-stars { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:3px; }
.site-review-stars input { position:absolute; opacity:0; pointer-events:none; }
.site-review-stars label { color:#ffffff24; font-size:28px; line-height:1; cursor:pointer; transition:color .15s ease,transform .15s ease; }
.site-review-stars label:hover,.site-review-stars label:hover~label,.site-review-stars label:has(input:checked),.site-review-stars label:has(input:checked)~label { color:#f0ce74; }
.site-review-stars label:hover { transform:scale(1.12); }
.site-review-message { display:grid; }
.site-review-message small { color:var(--dim); }
.site-review-message textarea { width:100%; resize:vertical; padding:10px 11px; border:1px solid var(--control-line); border-radius:10px; color:var(--text); background:#ffffff05; backdrop-filter:blur(12px); font:inherit; line-height:1.45; }
.site-review-status { min-height:18px; margin:0!important; color:#ef9aaa!important; }
.site-review-form>.button { justify-self:start; }
.site-review-thanks { display:flex; align-items:center; gap:12px; padding:10px 25px 10px 2px; }
.site-review-thanks>svg { width:25px; color:#9dd9bd; }
@media (max-width:760px) {
  .community-heading-row { align-items:stretch; flex-direction:column; }
  .community-review-list,.community-member-grid { grid-template-columns:minmax(0,1fr); }
  .site-review-prompt { right:14px; bottom:max(78px,calc(env(safe-area-inset-bottom) + 68px)); }
}
.vip-celebration {
  width:min(440px,calc(100vw - 32px)); color:var(--text); text-align:center;
  padding:36px 22px 26px; border:1px solid #ffd87a65; border-radius:24px;
  background:radial-gradient(ellipse at top,#4e391bcb,transparent 70%),#171410f2;
  backdrop-filter:blur(22px); box-shadow:0 0 55px #ffc85023;
}
.vip-celebration::backdrop { background:#090806b5; }
.vip-celebration[open] { animation:vip-reveal 470ms var(--spring) both; }
.vip-celebration-icon {
  display:grid; place-items:center; margin:0 auto 16px; width:62px; height:62px;
  color:#ffdc83; border:1px solid #ffd87a50; border-radius:50%; background:#ffd87a18;
  box-shadow:0 0 26px #ffcf5845;
}
.vip-celebration-icon svg { width:34px; height:34px; }
.vip-celebration h2 { color:#ffe09a; font-size:clamp(24px,6vw,30px); }
.vip-celebration p { color:var(--muted); margin-top:10px; line-height:1.65; }
.vip-celebration-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:22px; }
@keyframes vip-reveal {
  from { opacity:0; transform:translateY(18px) scale(.92); }
  to { opacity:1; transform:none; }
}
.community-rank-score span { color:var(--muted); font-size:12px; }
.community-ranking-empty { padding-top:14px; border-top:1px solid var(--line); }
@media(max-width:500px) {
  .profile-image-fields { grid-template-columns:minmax(0,1fr); }
  .community-leaderboard li { grid-template-columns:24px minmax(0,1fr) auto; gap:6px; }
}

.profile-upload { min-width:0; display:grid; gap:7px; }
.profile-upload-control {
  position:relative; display:flex; align-items:center; gap:9px; min-height:42px; min-width:0;
  padding:5px 10px; border:1px solid var(--control-line); border-radius:8px; background:var(--control-glass);
}
.profile-upload-control input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.profile-upload-control:focus-within { outline:2px solid var(--text); outline-offset:2px; }
.profile-upload-control > span { font-size:12px; flex:none; }
.profile-upload-control small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-wallpaper, .member-effects { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.member-wallpaper { z-index:-2; object-fit:cover; }
.member-effects { z-index:-1; overflow:hidden; }
.member-music { display:block; width:min(100%,360px); height:42px; margin:16px 0; }
:is(.custom-member,.profile-setup-preview)[data-profile-effect="neige"] .member-effects::before,
:is(.custom-member,.profile-setup-preview)[data-profile-effect="neige"] .member-effects::after {
  content:""; position:absolute; inset:-130px 0 0; opacity:.75;
  background-image:radial-gradient(circle at 18px 24px,#fff 1.5px,transparent 2.4px),radial-gradient(circle at 64px 81px,#fff 1px,transparent 2px);
  background-size:92px 130px; animation:member-snow 11s linear infinite;
}
:is(.custom-member,.profile-setup-preview)[data-profile-effect="neige"] .member-effects::after { left:32px; opacity:.28; animation-duration:17s; animation-delay:-7s; }
@keyframes member-snow { to { transform:translateY(130px); } }
:is(.custom-member,.profile-setup-preview)[data-profile-effect="eclairs"] .member-effects::after {
  content:""; position:absolute; inset:0; opacity:.28;
  background:radial-gradient(ellipse at 75% 0,#a2c5ffb0,transparent 70%);
  animation:member-lightning 9s ease-out infinite;
}
@keyframes member-lightning { 0%,16%,100% {opacity:.25} 5% {opacity:.85} }


body:has(.custom-member) { background:#141217; }
body:has(.custom-member[data-profile-theme="nuit"]) { background:#090b13; }
body:has(.custom-member[data-profile-theme="rouge"]) { background:#260e1a; }
body:has(.custom-member) :is(.snow,.account-santa-hat) { display:none; }
main:has(> .custom-member) { width:100%; display:flex; }
.custom-member {
  position:relative; isolation:isolate; overflow:hidden; width:100%; max-width:none;
  min-height:calc(100svh - 90px); margin:0; padding:clamp(20px,4vw,48px) 0 clamp(44px,7vw,88px);
  border-radius:0; background:#141217;
}
.custom-member[data-profile-theme="nuit"] { background:#090b13; }
.custom-member[data-profile-theme="rouge"] { background:#260e1a; }
.member-wallpaper {
  object-position:center; opacity:.42;
  mask-image:linear-gradient(#000 0%,#000b 48%,transparent 100%);
}
.custom-member .member-card-content {
  width:min(1200px,calc(100% - 64px)); max-width:none; margin-inline:auto; padding:0;
  border-radius:0; background:none; backdrop-filter:none;
}
.custom-member .member-banner {
  height:clamp(110px,24vw,330px); border:0; border-radius:0; background:none;
  mask-image:linear-gradient(#000 72%,transparent 100%);
}
.custom-member .member-banner:empty { display:none; }
.custom-member .member-banner img { object-fit:contain; object-position:center; }
.custom-member .member-heading { align-items:center; margin:clamp(14px,3vw,32px) 0 26px; gap:clamp(12px,3vw,24px); }
.custom-member .member-heading .account-avatar { width:clamp(66px,11vw,108px); height:clamp(66px,11vw,108px); border-width:2px; }
.custom-member .member-heading h1 { font-size:clamp(28px,5vw,58px); line-height:1.05; }
.custom-member .member-about, .custom-member .member-activity { margin-block:24px; padding-block:20px; }
.custom-member .member-bio { max-width:72ch; }
@media(max-width:600px) {
  .custom-member .member-card-content { width:calc(100% - 32px); }
  .custom-member .member-about .more { display:inline-flex; margin:12px 0 0; }
}

/* The profile backdrop starts behind the site's floating header. */
.custom-member { background:transparent; }
.custom-member[data-profile-theme] { background:transparent; }
.member-wallpaper {
  position:fixed; inset:0; width:100%; height:100%;
  object-position:center top; opacity:.55;
  mask-image:linear-gradient(#000 0%,#000b 62%,transparent 100%);
}
.member-effects { position:fixed; }
.member-pointer-effects { position:absolute; inset:0; width:100%; height:100%; }
:is(.custom-member,.profile-setup-preview)[data-profile-effect="eclairs"] .member-effects::after {
  background:
    linear-gradient(108deg,transparent 49.5%,#d5e7ffbb 50%,transparent 51%) 74% 0 / 24px 150px no-repeat,
    radial-gradient(ellipse at 72% 0,#b7d0ff9c,transparent 70%);
}
:is(.custom-member,.profile-setup-preview)[data-profile-effect="paillettes"] .member-effects::before {
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 22px 26px,#ffe8b7 1.5px,transparent 4px),
    radial-gradient(circle at 78px 92px,#ffe1ef 1px,transparent 4px);
  background-size:116px 136px; animation:member-sparkles 4s ease-in-out infinite;
}
@keyframes member-sparkles { 0%,100% {opacity:.32;transform:translateY(0)} 50% {opacity:.8;transform:translateY(-12px)} }
:is(.custom-member,.profile-setup-preview)[data-profile-effect="brume"] .member-effects::before {
  content:""; position:absolute; inset:12% -15% -12%;
  background:radial-gradient(ellipse at 25% 67%,#b5c4ed38,transparent 45%),radial-gradient(ellipse at 75% 45%,#e0a9dc32,transparent 45%);
  animation:member-mist 12s ease-in-out infinite alternate;
}
@keyframes member-mist { to { transform:translateX(12%); opacity:.5; } }
.member-soundtrack { margin:16px 0; }
.member-soundtrack audio { display:none; }
.member-mute {
  display:inline-flex; align-items:center; gap:12px; padding:6px 2px; min-height:36px;
  color:var(--text); background:transparent; border:0; border-radius:0; font-size:13px; cursor:pointer;
}
.member-mute:hover { text-decoration:underline; text-underline-offset:4px; }
.member-equalizer { display:flex; align-items:center; gap:3px; height:18px; color:#ff97ad; }
.member-equalizer i { display:block; width:2px; height:16px; border-radius:2px; background:currentColor; transform:scaleY(.22); }
.member-soundtrack.is-audible .member-equalizer i { animation:member-beat .78s ease-in-out infinite alternate; }
.member-equalizer i:nth-child(2) { animation-delay:-.42s !important; }
.member-equalizer i:nth-child(3) { animation-delay:-.19s !important; }
.member-equalizer i:nth-child(4) { animation-delay:-.61s !important; }
.member-equalizer i:nth-child(5) { animation-delay:-.3s !important; }
@keyframes member-beat { 0%,100% {transform:scaleY(.28)} 48% {transform:scaleY(1)} 74% {transform:scaleY(.52)} }

.profile-setup-preview { position:relative; isolation:isolate; overflow:hidden; background:#141217; }
.profile-setup-preview .member-effects { position:absolute; }
.profile-setup-preview .member-heading { margin-bottom:12px; }
.account-avatar[src="/assets/l2f-avatar-128.webp"] { object-fit:contain; background:#080808; }
.profile-name { position:relative; display:inline-block; }
.profile-name[data-name-effect="machine"] > span { font-family:ui-monospace,monospace; }
.profile-name[data-name-effect="machine"]::after { content:""; display:inline-block; height:.8em; margin-left:.15em; border-right:2px solid currentColor; animation:name-blink 1s steps(1) infinite; }
@keyframes name-blink { 50% {opacity:0} }
.profile-name[data-name-effect="arc"] > span,.profile-name[data-name-effect="melange"] > span {
  background:linear-gradient(110deg,#ff92a9,#ffdc95,#9ce9d0,#a9c4ff,#ff92a9);
  background-size:230% 100%; background-clip:text; color:transparent; animation:name-color 5s linear infinite;
}
@keyframes name-color { to {background-position:230% 0} }
.profile-name[data-name-effect="glitch"] > span { animation:name-glitch 2.8s linear infinite; }
@keyframes name-glitch { 0%,83%,100% {text-shadow:none} 86%,93% {text-shadow:-2px 1px #ff80af,2px -1px #7ce6ff} }
.profile-name[data-name-effect="bleu"] { --spark:#a6bcff; }
.profile-name[data-name-effect="rose"] { --spark:#ff89bc; }
.profile-name[data-name-effect="or"] { --spark:#ffda83; }
.profile-name:is([data-name-effect="blanc"],[data-name-effect="bleu"],[data-name-effect="rose"],[data-name-effect="or"],[data-name-effect="melange"])::before {
  content:""; position:absolute; inset:-5px -8px; pointer-events:none;
  background:radial-gradient(circle at 12% 20%,var(--spark,#fff) 1.6px,transparent 3px),
    radial-gradient(circle at 38% 80%,var(--spark,#fff) 1.6px,transparent 3px),
    radial-gradient(circle at 76% 18%,var(--spark,#fff) 1.6px,transparent 3px),
    radial-gradient(circle at 93% 70%,var(--spark,#fff) 1.6px,transparent 3px);
  animation:name-twinkle 2.3s ease-in-out infinite alternate;
}
@keyframes name-twinkle { from {opacity:.25;transform:translateY(3px)} to {opacity:.95;transform:translateY(-4px)} }
.profile-setup .name-effects-picker { border:0; padding:0; background:none; }
.name-effect-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:8px; }
.name-effect-options label { position:relative; min-width:0; }
.name-effect-options input { position:absolute; opacity:0; }
.name-effect-option { display:grid; gap:6px; min-width:0; padding:10px; border:1px solid var(--control-line); border-radius:8px; cursor:pointer; overflow-wrap:anywhere; }
.name-effect-options input:checked + .name-effect-option { border-color:#ff97ad; background:var(--control-accent); }
.name-effect-options input:focus-visible + .name-effect-option { outline:2px solid var(--text); }
.name-effect-option small { color:var(--muted); }
:is(.custom-member,.profile-setup-preview)[data-profile-effect="aurore"] .member-effects::before,
:is(.custom-member,.profile-setup-preview)[data-profile-effect="pluie"] .member-effects::before,
:is(.custom-member,.profile-setup-preview)[data-profile-effect="television"] .member-effects::before,
:is(.custom-member,.profile-setup-preview)[data-profile-effect="nuit"] .member-effects::before {
  content:""; position:absolute; inset:0;
}
:is(.custom-member,.profile-setup-preview)[data-profile-effect="aurore"] .member-effects::before {
  inset:-15%; background:radial-gradient(ellipse at 28% 12%,#48c8a260,transparent 52%),radial-gradient(ellipse at 76% 30%,#8673f26b,transparent 55%);
  animation:member-mist 9s ease-in-out infinite alternate;
}
:is(.custom-member,.profile-setup-preview)[data-profile-effect="pluie"] .member-effects::before {
  inset:-100px 0 0; background:linear-gradient(105deg,transparent 47%,#c3dcff75 49%,transparent 51%) 0 0 / 43px 100px;
  animation:member-rain .75s linear infinite;
}
@keyframes member-rain { to {transform:translate(-24px,100px)} }
:is(.custom-member,.profile-setup-preview)[data-profile-effect="television"] .member-effects::before { background:repeating-linear-gradient(transparent 0 3px,#ffffff20 4px 5px); }
:is(.custom-member,.profile-setup-preview)[data-profile-effect="nuit"] .member-effects::before { background:linear-gradient(#07142caa,#03071430); }
.custom-member[data-profile-effect="flou"] .member-wallpaper,.profile-setup-preview[data-profile-effect="flou"] .member-banner img { filter:blur(14px); }


/* Keep the chosen look visible even when movement is reduced. */
.profile-setup-preview .member-effects { z-index:1; }
.profile-setup-preview .member-heading { z-index:2; }
.profile-name[data-name-effect="glitch"] > span { text-shadow:-1px 0 #ff80af,1px 0 #7ce6ff; }
@keyframes name-glitch {
  0%,83%,100% {text-shadow:-1px 0 #ff80af,1px 0 #7ce6ff}
  86%,93% {text-shadow:-3px 1px #ff80af,3px -1px #7ce6ff}
}
:is(.custom-member,.profile-setup-preview)[data-profile-effect="flou"] .member-effects::before {
  content:""; position:absolute; inset:0;
  background:radial-gradient(ellipse at 32% 18%,#b68bc041,transparent 56%);
  backdrop-filter:blur(12px);
}
@media (prefers-reduced-motion:no-preference) {
  body[data-motion="off"] [data-profile-effect="neige"] .member-effects::before { animation:member-snow 11s linear infinite !important; }
  body[data-motion="off"] [data-profile-effect="neige"] .member-effects::after { animation:member-snow 17s linear -7s infinite !important; }
  body[data-motion="off"] [data-profile-effect="eclairs"] .member-effects::after { animation:member-lightning 9s ease-out infinite !important; }
  body[data-motion="off"] [data-profile-effect="paillettes"] .member-effects::before { animation:member-sparkles 4s ease-in-out infinite !important; }
  body[data-motion="off"] [data-profile-effect="brume"] .member-effects::before { animation:member-mist 12s ease-in-out infinite alternate !important; }
  body[data-motion="off"] [data-profile-effect="aurore"] .member-effects::before { animation:member-mist 9s ease-in-out infinite alternate !important; }
  body[data-motion="off"] [data-profile-effect="pluie"] .member-effects::before { animation:member-rain .75s linear infinite !important; }
  body[data-motion="off"] .profile-name[data-name-effect="machine"]::after { animation:name-blink 1s steps(1) infinite !important; }
  body[data-motion="off"] .profile-name:is([data-name-effect="arc"],[data-name-effect="melange"]) > span { animation:name-color 5s linear infinite !important; }
  body[data-motion="off"] .profile-name[data-name-effect="glitch"] > span { animation:name-glitch 2.8s linear infinite !important; }
  body[data-motion="off"] .profile-name:is([data-name-effect="blanc"],[data-name-effect="bleu"],[data-name-effect="rose"],[data-name-effect="or"],[data-name-effect="melange"])::before { animation:name-twinkle 2.3s ease-in-out infinite alternate !important; }
}

.community-space { max-width: 1050px; }
.community-chat-layout { display: grid; grid-template-columns: minmax(150px, 225px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 26px; }
.community-public-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.community-chat h2, .community-ranking h2, .message-contacts h2, .sharing-mine h2 { margin: 0; font-size: 17px; }
.community-chat-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.community-chat-heading .more, .community-chat-heading .muted { font-size: 13px; }
.community-chat-history {
  min-height: 210px; height: clamp(230px, 46vh, 475px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none;
  margin-top: 16px; padding: 8px 0 14px; border-top: 1px solid var(--line);
}
.community-chat-history::-webkit-scrollbar { display: none; }
.community-chat-history ol, .message-contacts ul, .sharing-mine ul { list-style: none; padding: 0; margin: 0; }
.community-chat-history li { padding-block: 9px; overflow-wrap: anywhere; }
.community-chat-history li p { margin: 4px 0 0; line-height: 1.55; white-space: pre-wrap; }
.community-message-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; }
.community-message-meta a, .community-message-meta strong { font-size: 14px; font-weight: 650; }
.community-message-meta time, .community-message-meta button { color: var(--muted); font-size: 11px; }
.community-message-meta a:hover, .community-message-meta button:hover { color: var(--text); text-decoration: underline; }
.community-message-meta button { background: transparent; border: 0; padding: 2px 4px; cursor: pointer; }
.community-chat-form { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; }
.community-chat-form input { min-width: 0; flex: 1; padding: 10px; border: 0; background: transparent; color: var(--text); font: inherit; }
.community-chat-form button { min-width: 42px; padding-inline: 12px; }
.community-chat-status { min-height: 18px; font-size: 13px; }
.message-contacts h2 { margin-bottom: 13px; }
.message-contacts li a { display: block; overflow-wrap: anywhere; padding: 9px 10px; border-radius: 8px; }
.message-contacts li a:hover, .message-contacts li a[aria-current] { background: var(--glass); }
.message-contacts .more { margin-top: 13px; }
.message-empty { margin: 0; line-height: 1.6; }
.member-message { align-self: center; margin-left: auto; white-space: normal; }
.community-public-layout .community-leaderboard { margin-top: 15px; }
.community-public-layout .community-leaderboard li { padding-inline: 8px; gap: 8px; }
.community-public-layout .community-rank-score span { display: none; }
.sharing-page { max-width: 800px; }
.sharing-form { display: grid; gap: 15px; margin-top: 24px; }
.sharing-form label { display: grid; gap: 6px; font-size: 14px; color: var(--text); min-width: 0; }
.sharing-form input:not([type="checkbox"]), .sharing-form select, .sharing-form textarea {
  width: 100%; padding: 11px; background: var(--glass); color: var(--text); font: inherit;
  border: 1px solid var(--line); border-radius: 9px;
}
.sharing-form textarea { resize: vertical; }
.sharing-form input::file-selector-button { color: var(--text); background: var(--glass); border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; margin-inline-end: 8px; cursor: pointer; }
.sharing-form > p { margin: 0; font-size: 13px; }
.sharing-form .sharing-rights { display: flex; align-items: center; gap: 10px; }
.sharing-form button { justify-self: start; }
.sharing-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.sharing-mine { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }
.sharing-mine li { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.sharing-mine li p { margin: 6px 0 0; }
.sharing-mine li a:hover { text-decoration: underline; }
.submission-review { border-top: 1px solid var(--line); margin-top: 22px; padding: 18px 0; }
.submission-review h2 { margin-top: 6px; }
.submission-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.submission-review img { display: block; max-width: 100%; max-height: 230px; border-radius: 10px; margin-top: 16px; }
.submission-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
@media (max-width: 760px) {
  .community-chat-layout, .community-public-layout, .sharing-fields { grid-template-columns: minmax(0, 1fr); }
  .message-contacts ul { display: flex; flex-wrap: wrap; gap: 4px; }
}

.message-search { display: grid; gap: 8px; margin-top: 20px; font-size: 13px; }
.message-search input { width: 100%; min-width: 0; background: var(--glass); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px; font: inherit; }
.message-search button { justify-self: start; }
.message-search-results { margin-top: 8px; }
.message-search-results small { display: block; color: var(--muted); }

.software-directory {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(270px,100%),1fr));
  gap: 28px clamp(20px,4vw,46px);
}
.software-group { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.software-group:target { border-top-color: var(--season-red); }
.software-group h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 10px; }
.software-group h2 svg { color: var(--season-red); }
.software-group ul { list-style: none; padding: 0; margin: 0; }
.software-group li a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 8px; margin-inline: -8px; border-radius: 8px; overflow-wrap: anywhere;
}
.software-group li a:hover { background: var(--highlight); }
.software-group li strong { display: block; font-size: 14px; font-weight: 600; }
.software-group li small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.software-group li svg { color: var(--dim); }



.home-content { padding-block: clamp(20px,3vw,36px) 12px; }
.home-intro {
  position: relative; isolation: isolate; z-index: 1; min-height: 376px;
  display: grid; align-items: center; padding: clamp(30px,5vw,64px);
  border: 1px solid var(--line); border-radius: 18px; background: #111113;
}
.home-art {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 74%;
  border-radius: 0 17px 17px 0; overflow: hidden; pointer-events: none;
}
.home-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 31%; }
.home-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,#111113 0%,#111113dd 14%,#11111355 39%,#1111130d 66%),
    linear-gradient(0deg,#111113d0 0%,transparent 48%);
}
.home-intro-copy { width: min(100%,520px); min-width: 0; }
.home-intro h1 {
  max-width: 13ch; font-size: clamp(38px,5.25vw,73px); font-weight: 700;
  line-height: .99; letter-spacing: -.058em; text-wrap: balance;
}
.home-intro p { margin: 15px 0 23px; color: #c8c8cb; font-size: 15px; line-height: 1.5; }
.home-intro .search {
  max-width: 480px; min-height: 51px; gap: 8px; padding: 4px; border-radius: 10px;
  background: #1c1c20; box-shadow: none;
}
.home-intro .search .button {
  min-height: 40px; border-radius: 7px; padding-inline: 13px;
  color: #181516; background: #f0e9eb; border-color: transparent;
}
.home-intro .search .button:hover { background: #ffdfe5; }
.home-intro .search-suggestions { border-radius: 10px; }
.home-intro .search input { font-size: 14px; }
.home-intro-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 15px; font-size: 12px; color: #bababf; }
.home-intro-meta a { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; }
.home-intro-meta strong { color: var(--text); font-weight: 650; }
.home-intro-meta .home-vip-link { color: #e6c785; }
.home-intro-meta > :is(a,button):hover { color: var(--text); }
.home-intro-meta .intro-replay { display: inline-flex; align-items: center; gap: 4px; margin: 0; min-height: 30px; }
.home-section { margin-top: clamp(29px,4vw,51px); }
.home-section .section-title { align-items: baseline; margin-bottom: 15px; }
.home-section .section-title h2 { font-size: clamp(21px,2.4vw,28px); font-weight: 650; }
.home-category-list {
  display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.home-category-list a {
  display: grid; height: 100%; min-height: 62px; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 9px; background: #ffffff05; transition: background-color 160ms ease, border-color 160ms ease;
}
.home-category-list a:hover { background: #ffffff0d; border-color: var(--line-hover); }
.home-category-icon {
  display: grid; place-items: center; width: 28px; height: 28px; color: #dedade;
  border-radius: 7px; background: #ffffff0b;
}
.home-category-list strong, .home-category-list small { display: block; overflow-wrap: anywhere; }
.home-category-list strong { font-size: 13px; line-height: 1.22; }
.home-category-list small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.home-category-list a > svg { color: var(--dim); width: 12px; }
.home-section .card { border-radius: 10px; box-shadow: none; }
.home-section .card .card-media { aspect-ratio: 16/10; }
.home-section .card .card-body { padding: 12px; }
.home-resource-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.home-resource-card { min-width:0; overflow:hidden; border:1px solid #ffffff12; border-radius:18px; background:linear-gradient(145deg,#ffffff0b,#ffffff04); box-shadow:0 18px 44px #0005; transition:transform 260ms var(--spring),border-color 260ms ease,background 260ms ease; }
.home-resource-card > a { display:flex; height:100%; flex-direction:column; }
.home-resource-media { position:relative; overflow:hidden; aspect-ratio:16/10; background:var(--raised); }
.home-resource-media > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 550ms var(--spring),filter 350ms ease; }
.home-resource-media .resource-poster { position:absolute; inset:0; }
.home-resource-shade { position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,#09090bd9); pointer-events:none; }
.home-resource-category { position:absolute; left:13px; bottom:11px; padding:5px 9px; border:1px solid #ffffff20; border-radius:999px; background:#0b0b0db8; backdrop-filter:blur(12px); color:#fff; font-size:11px; font-weight:600; }
.home-resource-copy { display:flex; flex:1; min-width:0; flex-direction:column; padding:16px; }
.home-resource-status { display:flex; align-items:center; gap:6px; margin-bottom:9px; color:var(--muted); font-size:11px; }
.home-resource-status svg { width:13px; height:13px; }
.home-resource-status[data-availability="vip"] { color:#ffe098; }
.home-resource-copy h3 { font-size:16px; line-height:1.25; letter-spacing:-.015em; }
.home-resource-copy p { display:-webkit-box; min-height:3.9em; margin-top:8px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; color:var(--muted); font-size:12px; line-height:1.55; }
.home-resource-action { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:17px; border-top:1px solid #ffffff0e; color:var(--text); font-size:12px; font-weight:600; }
.home-resource-action svg { width:14px; transition:transform 220ms ease; }
@media (hover:hover) {
  .home-resource-card:hover { transform:translateY(-4px); border-color:#ffffff26; background:linear-gradient(145deg,#ffffff10,#ffffff06); }
  .home-resource-card:hover .home-resource-media > img { transform:scale(1.035); filter:saturate(1.06); }
  .home-resource-card:hover .home-resource-action svg { transform:translateX(3px); }
}
@media (max-width:980px) { .home-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .home-resource-grid { grid-template-columns:minmax(0,1fr); gap:12px; } .home-resource-card > a { display:grid; grid-template-columns:132px minmax(0,1fr); } .home-resource-media { height:100%; aspect-ratio:auto; min-height:170px; } .home-resource-copy { padding:14px; } .home-resource-copy p { -webkit-line-clamp:2; min-height:3.1em; } }
.home-editorial { position:relative; }
.home-editorial::before { content:""; position:absolute; z-index:-1; inset:38px -6% -50px; border-radius:48px; background:radial-gradient(circle at 20% 10%,#ffffff0c,transparent 38%),radial-gradient(circle at 82% 65%,#d7193f10,transparent 42%); filter:blur(22px); pointer-events:none; }
.editorial-intro { max-width:620px; margin:-7px 0 18px; color:var(--muted); font-size:13px; line-height:1.55; }
.editorial-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:14px; }
.editorial-card { position:relative; min-width:0; min-height:260px; overflow:hidden; grid-column:span 3; border:1px solid #ffffff1a; border-radius:22px; background:linear-gradient(145deg,#ffffff12,#ffffff06 52%,#ffffff09); box-shadow:inset 0 1px 0 #ffffff1a,0 22px 54px #0007; backdrop-filter:blur(24px) saturate(1.18); -webkit-backdrop-filter:blur(24px) saturate(1.18); transition:transform 320ms var(--spring),border-color 260ms ease,box-shadow 260ms ease; }
.editorial-card::after { content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(125deg,#ffffff1a,transparent 24%,transparent 70%,#ffffff09); pointer-events:none; }
.editorial-card-1,.editorial-card-2 { grid-column:span 6; min-height:350px; }
.editorial-card > a { position:relative; display:flex; height:100%; min-height:inherit; flex-direction:column; }
.editorial-visual { position:absolute; inset:0; overflow:hidden; background:#111; }
.editorial-visual > img { width:100%; height:100%; object-fit:cover; transition:transform 700ms var(--spring),filter 350ms ease; }
.editorial-visual .resource-poster { height:100%; }
.editorial-visual .card-video-mark { top:14px; right:14px; }
.editorial-vignette { position:absolute; inset:0; background:linear-gradient(180deg,#06060808 16%,#08080a44 48%,#070709f2 100%); }
.editorial-content { position:relative; z-index:1; display:flex; min-width:0; flex:1; flex-direction:column; justify-content:flex-end; padding:18px; color:#fff; }
.editorial-card-1 .editorial-content,.editorial-card-2 .editorial-content { padding:24px; }
.editorial-eyebrow { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; color:#ffffffb8; font-size:10px; font-weight:650; letter-spacing:.035em; text-transform:uppercase; }
.editorial-eyebrow span { display:inline-flex; align-items:center; gap:5px; }
.editorial-eyebrow svg { width:12px; height:12px; }
.editorial-content h3 { max-width:30ch; font-size:clamp(16px,1.35vw,21px); line-height:1.18; letter-spacing:-.025em; text-shadow:0 2px 16px #000; }
.editorial-card-1 h3,.editorial-card-2 h3 { font-size:clamp(21px,2vw,30px); }
.editorial-content p { display:-webkit-box; max-width:58ch; margin-top:8px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:#ffffffb8; font-size:11px; line-height:1.5; text-shadow:0 2px 12px #000; }
.editorial-card-1 p,.editorial-card-2 p { max-width:64ch; font-size:13px; }
.editorial-link { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; padding-top:12px; border-top:1px solid #ffffff24; color:#fff; font-size:11px; font-weight:650; }
.editorial-link svg { width:14px; transition:transform 220ms ease; }
@media (hover:hover) {
  .editorial-card:hover { transform:translateY(-5px); border-color:#ffffff3a; box-shadow:inset 0 1px 0 #ffffff2b,0 28px 66px #0009; }
  .editorial-card:hover .editorial-visual > img { transform:scale(1.045); filter:saturate(1.1) contrast(1.02); }
  .editorial-card:hover .editorial-link svg { transform:translateX(3px); }
}
@media (max-width:980px) { .editorial-card,.editorial-card-1,.editorial-card-2 { grid-column:span 6; min-height:300px; } }
@media (max-width:600px) {
  .editorial-intro { margin-bottom:14px; }
  .editorial-grid { display:flex; gap:12px; margin-inline:-16px; padding-inline:16px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .editorial-grid::-webkit-scrollbar { display:none; }
  .editorial-card,.editorial-card-1,.editorial-card-2 { flex:0 0 min(84vw,330px); min-height:360px; scroll-snap-align:start; border-radius:20px; }
  .editorial-card .editorial-content { padding:18px; }
  .editorial-card .editorial-content h3 { font-size:21px; }
  .editorial-card .editorial-content p { font-size:12px; }
}
@media (min-width: 1440px) {
  body:has(.home-content) :is(.home-content,.header-inner,.footer-inner) {
    width: clamp(1200px, 80vw, 1440px);
  }
  .home-intro { min-height: 450px; }
}
@media (max-width: 1020px) {
  .home-category-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .home-intro { min-height: 0; align-items: end; padding: 168px 20px 21px; }
  .home-art { inset: 0 0 auto; width: 100%; height: 245px; border-radius: 17px 17px 0 0; }
  .home-art img { object-position: center 29%; }
  .home-art::after { background: linear-gradient(0deg,#111113 0%,#1111139c 29%,transparent 68%); }
  .home-intro h1 { font-size: clamp(34px,8vw,49px); }
  .home-intro p { font-size: 14px; margin-block: 12px 17px; }
  .home-intro-meta { gap: 6px 12px; margin-top: 9px; }
}
@media (max-width: 480px) {
  .home-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-intro .search .button { padding-inline: 9px; }
  .home-section .section-title .more { font-size: 12px; }
}


@media (max-width: 365px) {
  .home-intro .search .button { min-width: 40px; }
  .home-intro .search .button svg { display: block; }
  .home-intro .search .button span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
}


/* The glass sits behind the header so its dropdowns can blur the page independently. */
.header-inner {
  position: relative; isolation: isolate; min-height: 56px;
  border-radius: 15px; border-color: #ffffff20; background: transparent;
  backdrop-filter: none; box-shadow: none;
}
.header-inner::before {
  content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: rgb(25 25 28 / .49); backdrop-filter: blur(18px) saturate(118%);
  box-shadow: inset 0 1px #ffffff12, 0 9px 30px #0003;
  pointer-events: none; transition: background-color 220ms ease;
}
.header.is-scrolled .header-inner::before { background: rgb(25 25 28 / .65); }
.nav .header-dropdown { position: relative; }
.nav > a, .nav .header-dropdown > summary {
  position: relative; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; min-height: 34px; padding: 5px 9px; border-radius: 8px;
  color: #c5c5ca; font-size: 13px;
  transition: background-color 160ms ease, color 160ms ease;
}
.header-dropdown > summary { cursor: pointer; list-style: none; }
.header-dropdown > summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav .header-dropdown > summary:hover { background: #ffffff10; color: #fff; }
.nav > a[aria-current], .nav .header-dropdown > summary[aria-current] { color: #fff; background: #ffffff14; }
.nav > a[aria-current] > svg { color: #d5d3d8; }
.nav > a[aria-current]::after, .nav .header-dropdown > summary[aria-current]::after {
  content: ''; position: absolute; inset: auto calc(50% - 7px) 1px; height: 1px;
  border-radius: 2px; background: #e8d9df;
}
.nav .header-dropdown[open] > summary { background: #ffffff16; color: #fff; }
.nav > a[href='/vip'], .nav > a[href='/vip'] > svg { color: #e6c785; }
.nav-caret { display: inline-flex; align-items: center; margin-inline-start: 1px; color: #9b9ba5; }
.nav-caret svg { width: 10px; height: 10px; transition: transform 180ms var(--spring); }
.header-dropdown[open] .nav-caret svg, .account-menu[open] > summary > svg:last-child { transform: rotate(180deg); }
.header-actions { gap: 5px; }
.header-actions > :is(.mobile-toggle,.header-signin), .header-actions .header-menu > summary {
  background: #ffffff06; border-color: #ffffff16; box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.header-actions > :is(.mobile-toggle,.header-signin):hover, .header-actions .header-menu > summary:hover,
.header-actions .header-menu[open] > summary { background: #ffffff12; border-color: #ffffff2a; }
.header-actions .account-menu > summary > svg:last-child { transition: transform 180ms var(--spring); }

.nav-dropdown-panel, .header .header-popover, .header .notification-panel {
  border: 1px solid #ffffff20; border-radius: 13px;
  background: rgb(24 24 27 / .78); backdrop-filter: blur(22px) saturate(120%);
  box-shadow: 0 16px 38px #0006, inset 0 1px #ffffff09;
}
.nav-dropdown-panel {
  position: absolute; z-index: 3; inset: calc(100% + 10px) auto auto 50%;
  transform: translateX(-50%); transform-origin: 50% top;
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px;
  width: 384px; max-height: calc(100dvh - 87px); overflow: auto;
  overscroll-behavior: contain; scrollbar-width: none; padding: 7px;
}
.nav-dropdown-panel::-webkit-scrollbar { display: none; }
.header-dropdown[open] > .nav-dropdown-panel,
.header .header-menu[open] > :is(.header-popover,.notification-panel) {
  animation: header-dropdown-in 200ms var(--spring) both;
}
.header .header-popover, .header .notification-panel { transform-origin: right top; }
@keyframes header-dropdown-in { from { opacity:0; translate:0 -6px; scale:.98; } to { opacity:1; translate:0 0; scale:1; } }
:is(.nav,.mobile-nav nav) .nav-dropdown-panel a {
  min-width: 0; min-height: 37px; padding: 5px 7px; gap: 8px; border-radius: 7px;
  background: transparent; color: #d0d0d5;
  transition: background-color 160ms ease, color 160ms ease;
}
:is(.nav,.mobile-nav nav) .nav-dropdown-panel a:is(:hover,:focus-visible) { color: #fff; background: #ffffff12; }
.nav-dropdown-panel a > span { min-width: 0; }
.nav-dropdown-panel a > svg:first-child {
  width: 24px; height: 24px; padding: 5px; border-radius: 6px;
  color: #c0c0c8; background: #ffffff08;
  transition: color 160ms ease, background-color 160ms ease, translate 180ms var(--spring);
}
.nav-dropdown-panel a:is(:hover,:focus-visible) > svg:first-child {
  color: #f0e2e6; background: #ffffff15; translate: 0 -1px;
}
.nav-dropdown-panel small { display: block; margin-top: 2px; color: #a1a1a9; font-size: 10px; overflow-wrap: anywhere; }
.nav-dropdown-panel .nav-dropdown-overview { grid-column: 1/-1; margin-bottom: 3px; border-bottom: 1px solid var(--line); font-weight: 600; }
.nav-dropdown-overview > svg:last-child { margin-inline-start: auto; color: #b3b3bd; width: 13px; }
.header .header-popover :is(a,button):hover { background: #ffffff13; }
.mobile-nav {
  background: rgb(22 22 25 / .83); backdrop-filter: blur(22px) saturate(120%);
  border-color: #ffffff1c; border-radius: 18px 18px 0 0;
}
.mobile-nav nav { gap: 4px; }
.mobile-nav nav > a, .mobile-nav .header-dropdown > summary {
  min-height: 43px; padding: 7px 11px; border-radius: 8px;
  background: #ffffff06; color: #cccbd1;
}
.mobile-nav .header-dropdown > summary { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.mobile-nav .header-dropdown[open] > summary { background: #ffffff13; color: #fff; }
.mobile-nav .nav-caret { margin-inline-start: auto; }
.mobile-nav .nav-dropdown-panel {
  position: static; transform: none; width: auto; max-height: 42dvh; margin-top: 5px;
  box-shadow: none; backdrop-filter: none; background: #ffffff06;
}
@media (min-width: 1181px) and (max-width: 1260px) {
  .header-inner .nav > a, .header-inner .nav .header-dropdown > summary { padding-inline: 6px; }
  .header-inner .account-name { max-width: 66px; }
}
@media (max-width: 1180px) {
  .nav .nav-dropdown-panel { position: static; transform: none; width: min(384px,calc(100vw - 64px)); }
}


:is(.header,.mobile-nav) :is(a,button,summary) { -webkit-tap-highlight-color: transparent; }
.mobile-nav :is(a,summary):active { background: #ffffff18; }
:is(.header,.mobile-nav) :is(a,button,summary):focus-visible {
  outline: 2px solid #c7c5ce; outline-offset: 2px;
}


body[data-wallpaper-owner]:not(:has(.custom-member)) { background: #080808; }
body:has(.custom-member) .site-background { display: none; }
.site-background {
  position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; contain: strict;
  background:
    radial-gradient(ellipse at 100% 85%,#190608,transparent 48%),
    radial-gradient(ellipse at 0% 35%,#120607,transparent 44%), #080808;
}
.site-background > :is(canvas,img) {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.site-background > img { object-fit: cover; object-position: center; }
.site-background::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg,#00000030,transparent 20% 83%,#00000040);
}
.site-background.has-wallpaper::after {
  background: linear-gradient(90deg,#08090cb8,#08090c88 55%,#08090cb8),
    linear-gradient(0deg,#08090c9e,transparent 74%);
}
.site-background.has-wallpaper canvas { visibility: hidden; }


.settings-wallpaper-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
#settings-wallpaper + .settings-wallpaper-note { margin-top: 7px; }
.settings-wallpaper-controls { min-width: 0; display: grid; gap: 10px; }
.settings-wallpaper-preview {
  position: relative; overflow: hidden; width: 100%; height: clamp(122px,20vw,184px);
  border: 1px solid var(--line-hover); border-radius: 10px;
  background:
    radial-gradient(ellipse 62% 98% at 82% 86%,#34090d,transparent 89%),
    radial-gradient(ellipse 67% 99% at 6% 12%,#21070a,transparent 84%), #080808;
}
.settings-wallpaper-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.settings-wallpaper-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-form .settings-wallpaper-upload {
  display: inline-flex; cursor: pointer; white-space: nowrap; width: max-content; font-size: 13px;
}
.settings-wallpaper-upload:has(:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.settings-wallpaper-upload:has(input:disabled), [data-wallpaper-reset]:disabled { opacity: .65; cursor: wait; }
.settings-wallpaper-status { color: var(--text); min-height: 1.35em; font-size: 13px; }


/* Shared select menus preserve the original form control and its validation. */
.custom-select-native {
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip-path:inset(50%); white-space:nowrap; opacity:0; pointer-events:none;
}
.select-trigger {
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  width:100%; min-width:0; min-height:44px; padding:11px 14px;
  border:1px solid #ffffff20; border-radius:10px; background:#ffffff06;
  color:var(--text); font:inherit; font-size:14px; text-align:left; cursor:pointer;
}
.select-trigger::after {
  content:''; width:6px; height:6px; flex:none; border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); opacity:.6;
}
.select-trigger:hover, .select-trigger[aria-expanded=true] { background:#ffffff0d; border-color:#ffffff40; }
.select-trigger:focus-visible { outline:2px solid #f0b3bf; outline-offset:3px; }
.select-trigger:disabled { cursor:default; opacity:.45; }
.select-menu {
  position:fixed; inset:auto; z-index:1000; margin:0; box-sizing:border-box;
  padding:6px; overflow:auto; scrollbar-width:none; overscroll-behavior:contain;
  border:1px solid #ffffff24; border-radius:12px; background:rgb(24 23 26 / .97);
  backdrop-filter:blur(24px); color:var(--text); box-shadow:0 18px 55px #0007;
}
.select-menu::-webkit-scrollbar { display:none; }
.select-menu button {
  display:block; position:relative; width:100%; border:0; border-radius:7px;
  padding:11px 30px 11px 12px; text-align:left; background:transparent;
  color:inherit; font:inherit; font-size:13px; line-height:1.4; cursor:pointer;
}
.select-menu button:hover, .select-menu button:focus { background:#ffffff0c; outline:none; }
.select-menu button[aria-selected=true] { background:#ffffff10; font-weight:600; }
.select-menu button[aria-selected=true]::after { content:'✓'; position:absolute; right:12px; }
.select-menu button:disabled { opacity:.4; cursor:default; }

/* Dashboard content, scoped independently of the sidebar navigation. */
.dashboard-content { --dashboard-accent:#ed8ca0; padding-bottom:32px; }
.dashboard-content .dashboard-title { align-items:center; margin-bottom:34px; }
.dashboard-content h1 { font-size:clamp(29px,3.5vw,40px); letter-spacing:-.035em; }
.dashboard-content h2 { font-size:17px; font-weight:600; letter-spacing:-.018em; }
.dashboard-content p { line-height:1.65; }
.dashboard-content .muted { color:#a4a3aa; font-size:13px; }
.dashboard-content .dashboard-block { margin-top:32px; padding-top:28px; }
.dashboard-content .dashboard-block > h2 { margin-bottom:16px; }
.dashboard-content .dashboard-metrics { gap:24px; margin-bottom:36px; }
.dashboard-content .dashboard-metrics > div { padding:8px 0 4px; }
.dashboard-content .dashboard-metrics dt { font-size:12px; line-height:1.5; }
.dashboard-content .dashboard-metrics dd { font-size:30px; font-weight:600; letter-spacing:-.035em; margin-top:8px; }
.dashboard-content .button { border-radius:9px; min-height:40px; font-size:12px; font-weight:550; padding-inline:15px; box-shadow:none; }
.dashboard-content .button.primary { background:#ede9ea; color:#201a1c; border-color:transparent; }
.dashboard-content .button.primary:hover { background:#fff; }
.dashboard-content .button.secondary { background:#ffffff04; border-color:#ffffff24; }
.dashboard-content .button.secondary:hover { background:#ffffff0c; border-color:#ffffff40; }
.dashboard-content .community-form, .dashboard-content .sharing-form { gap:22px; max-width:680px; margin-block:22px; }
.dashboard-content :is(.community-form,.sharing-form) label { gap:8px; font-size:13px; line-height:1.45; }
.dashboard-content input:not([type=checkbox]):not([type=hidden]), .dashboard-content textarea {
  width:100%; min-width:0; border:1px solid #ffffff20; border-radius:9px;
  background:#ffffff04; padding:12px 13px; color:var(--text); font:inherit; font-size:14px;
}
.dashboard-content textarea { min-height:132px; line-height:1.65; resize:vertical; }
.dashboard-content input:focus-visible, .dashboard-content textarea:focus-visible { outline:2px solid #ed8ca070; outline-offset:2px; }
.dashboard-content input::placeholder, .dashboard-content textarea::placeholder { color:#77747b; }
.dashboard-content input[type=file]::file-selector-button { padding:8px 12px; margin-right:12px; background:#ffffff10; border:0; border-radius:6px; color:var(--text); font:inherit; }
.dashboard-content .editor-actions { gap:10px; padding-top:8px; }
.dashboard-content .dashboard-compose { gap:36px; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); }
.dashboard-content .dashboard-preview { padding:22px; align-self:start; background:#ffffff03; border:1px solid #ffffff12; border-radius:12px; }
.dashboard-content .dashboard-preview .notification-entry { line-height:1.6; }
.dashboard-content .dashboard-list { margin-top:18px; }
.dashboard-content .dashboard-list li { align-items:center; padding:19px 0; gap:18px; }
.dashboard-content .dashboard-list li > div:first-child { min-width:0; }
.dashboard-content .dashboard-list p { margin-top:6px; max-width:70ch; }
.dashboard-content .dashboard-list time { color:#929097; font-size:12px; font-variant-numeric:tabular-nums; }
.dashboard-content .dashboard-list a:not(.button) { font-weight:550; }
.dashboard-content .quality-controls { gap:12px; align-items:end; flex-wrap:wrap; }
.dashboard-content .quality-controls label { display:grid; gap:8px; min-width:150px; font-size:12px; color:var(--muted); }
.dashboard-content .quality-list li, .dashboard-content .service-requests li { align-items:start; flex-wrap:wrap; padding-block:24px; }
.dashboard-content .quality-detail { max-width:65ch; }
.dashboard-content .dashboard-rights { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; padding-block:12px; }
.dashboard-content .dashboard-rights label { align-items:start; }
.dashboard-content .dashboard-rights input { flex:none; margin-top:2px; }
.dashboard-content .site-state-current { gap:24px; padding:22px; border-radius:12px; background:#ffffff04; border:1px solid #ffffff14; }
.dashboard-content .site-state-current h2 { font-size:24px; margin-block:6px; }
.dashboard-content .site-state-current .editor-actions { flex-wrap:wrap; }
.dashboard-content .submission-review { padding-block:26px; gap:24px; }
.dashboard-content .community-notice { padding:14px 16px; line-height:1.5; border-radius:9px; }
.dashboard-content .dashboard-chart-heading { align-items:center; }
.dashboard-content .dashboard-chart-heading strong { font-size:38px; font-weight:600; letter-spacing:-.04em; }
.dashboard-content .analytics-caption { font-size:12px; color:var(--muted); margin-top:6px; }
.dashboard-content .dashboard-periods { gap:4px; padding:4px; background:#ffffff05; border:1px solid #ffffff12; border-radius:9px; }
.dashboard-content .dashboard-periods a { padding:8px 12px; border:0; border-radius:6px; }
.dashboard-content .dashboard-periods a[aria-current] { background:#ffffff0d; color:#fff; box-shadow:0 1px 3px #0003; }
.dashboard-content .traffic-interactive { margin:26px 0 10px; }
.dashboard-content .traffic-chart { aspect-ratio:800/280; }
.dashboard-content .traffic-chart text { font-size:11px; fill:#96939c; font-variant-numeric:tabular-nums; }
.dashboard-content .traffic-grid { stroke:#ffffff13; stroke-dasharray:3 5; vector-effect:non-scaling-stroke; }
.dashboard-content .traffic-line { stroke:#ed8ca0; stroke-width:2; stroke-linecap:round; }
.dashboard-content .traffic-point { opacity:0; }
.dashboard-content .traffic-point:last-of-type { opacity:1; }
.dashboard-content .traffic-point.is-active { opacity:1; r:4.5; stroke-width:2; }
.dashboard-content .traffic-tooltip { min-width:150px; padding:14px 16px; background:#1b191eee; box-shadow:0 12px 30px #0006; }
.dashboard-content .traffic-tooltip strong { font-size:26px; letter-spacing:-.025em; }
.dashboard-content .analytics-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; padding-block:20px; margin:0; border-block:1px solid #ffffff12; }
.dashboard-content .analytics-summary dt { font-size:12px; color:var(--muted); }
.dashboard-content .analytics-summary dd { margin:8px 0 0; font-size:20px; font-weight:550; font-variant-numeric:tabular-nums; }
.dashboard-content .analytics-summary small { display:block; margin-top:5px; font-size:11px; color:var(--muted); font-weight:400; }
.dashboard-content .traffic-data { margin-top:22px; }
.dashboard-content .traffic-data summary { padding-block:8px; }
.dashboard-content .dashboard-table-scroll { overflow:auto; max-height:380px; scrollbar-width:thin; }
.dashboard-content .traffic-data th { position:sticky; top:0; background:#171519; font-size:11px; font-weight:500; color:var(--muted); }
.dashboard-content .traffic-data :is(td,th) { padding:12px 14px; }
.dashboard-content .traffic-data :is(td,th):last-child { text-align:right; font-variant-numeric:tabular-nums; }
.dashboard-content .traffic-data tbody tr:hover { background:#ffffff04; }
@media(max-width:780px) {
  .dashboard-content .dashboard-compose { grid-template-columns:minmax(0,1fr); }
  .dashboard-content .dashboard-rights { grid-template-columns:minmax(0,1fr); }
  .dashboard-content .site-state-current, .dashboard-content .site-state-list li { align-items:start; flex-direction:column; }
  .dashboard-content .dashboard-list li { flex-wrap:wrap; }
  .dashboard-content .traffic-chart text { font-size:16px; }
  .dashboard-content .analytics-summary { gap:12px; }
  .dashboard-content .analytics-summary dt { font-size:11px; }
  .dashboard-content .dashboard-periods a { padding:8px 10px; }
}
.hero-garland { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; overflow:visible; border-radius:inherit; }
.garland-pendant { transform-origin:0 0; }
@keyframes garland-shimmer { from { opacity:.55; } to { opacity:1; } }
body[data-season=off] .hero-garland { display:none; }
body[data-motion=off] .garland-bulb { animation:none; }
@media(prefers-reduced-motion:reduce) { .garland-bulb { animation:none; } }
.dashboard-content .traffic-interactive:focus-visible { outline:1px solid #ed8ca070; outline-offset:6px; border-radius:8px; }

.home-content:has(.hero-garland) { padding-top:48px; }
.home-intro:has(.hero-garland) { margin-bottom:32px; }

/* Immediate feedback without blocking a second navigation. */
a[data-navigation-pending] { cursor:progress; opacity:.72; }
.navigation-status button { padding:4px 8px; border:0; background:transparent; color:inherit; text-decoration:underline; cursor:pointer; font:inherit; }

/* Operational monitoring */
.runtime-overview { padding:22px; border:1px solid var(--line); border-radius:14px; background:#ffffff03; }
.runtime-live { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; }
.runtime-live i { width:7px; height:7px; border-radius:50%; background:#55c98a; box-shadow:0 0 0 4px #55c98a18; }
.runtime-status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:22px 0 0; }
.runtime-status { display:flex; align-items:flex-start; gap:12px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:11px; background:#0d0d0f70; }
.runtime-status > span { flex:none; width:9px; height:9px; margin-top:6px; border-radius:50%; background:#55c98a; box-shadow:0 0 12px #55c98a80; }
.runtime-status.is-warning > span { background:#e9aa55; box-shadow:0 0 12px #e9aa5570; }
.runtime-status dt { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.runtime-status dd { margin:5px 0 3px; font-size:17px; font-weight:620; }
.runtime-status small { display:block; color:var(--muted); line-height:1.45; overflow-wrap:anywhere; }
.runtime-performance .analytics-summary { margin-top:18px; }
.runtime-errors { width:100%; border-collapse:collapse; font-size:12px; }
.runtime-errors :is(th,td) { padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.runtime-errors th { position:sticky; top:0; background:#171519; color:var(--muted); font-weight:550; }
.runtime-errors code { color:#ddd8dc; overflow-wrap:anywhere; }

/* Mobile polish: touch targets, safe areas and complex screens. */
@media(max-width:720px) {
  html { scroll-padding-top:76px; }
  body { overflow-x:hidden; }
  .wrap { width:min(100% - 24px,1200px); }
  .header { top:max(7px,env(safe-area-inset-top)); }
  .header-inner { min-height:52px; padding-inline:10px; border-radius:14px; }
  .brand-image { width:118px; height:auto; }
  .header-actions { gap:5px; }
  .header-actions :is(button,summary,.header-signin) { min-width:42px; min-height:42px; }
  .mobile-nav { width:min(94vw,430px); max-height:calc(100dvh - 20px); padding:18px 16px max(18px,env(safe-area-inset-bottom)); border-radius:18px; }
  .mobile-nav nav > :is(a,details > summary) { min-height:46px; padding:11px 10px; }
  .mobile-nav .nav-dropdown-panel { width:100%; grid-template-columns:minmax(0,1fr); padding:6px 0 8px 12px; }
  .home-content { padding-top:12px; }
  .home-intro { border-radius:14px; padding-inline:16px; }
  .home-art { border-radius:13px 13px 0 0; }
  .home-intro h1 { font-size:clamp(35px,12vw,50px); line-height:1.01; }
  .home-intro .search { min-height:54px; }
  .home-category-list { gap:7px; }
  .home-category-list a { min-height:68px; padding:9px; }
  .resource-page .resource-heading { margin-block:20px 24px; }
  .resource-page .resource-heading h1 { font-size:clamp(30px,10vw,44px); line-height:1.06; }
  .resource-layout { gap:22px; }
  .resource-media .gallery-hero img { max-height:52vh; }
  .resource-actions { gap:4px 16px; }
  .resource-actions .button { min-height:42px; }
  .community-page { margin-top:22px; }
  .community-form :is(input,select,textarea,button) { font-size:16px; }
  .creator-dashboard { margin-block:18px 40px; gap:18px; }
  .dashboard-sidebar { margin-inline:-12px; padding-inline:12px; overflow:hidden; }
  .dashboard-sidebar nav { flex-wrap:nowrap; gap:5px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; scroll-snap-type:x proximity; }
  .dashboard-sidebar nav::-webkit-scrollbar { display:none; }
  .dashboard-sidebar a { flex:none; min-height:42px; scroll-snap-align:start; }
  .dashboard-content .dashboard-title { margin-bottom:24px; }
  .dashboard-content .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .dashboard-content .dashboard-metrics > div { min-width:0; }
  .dashboard-content .dashboard-chart-heading { align-items:flex-start; gap:14px; }
  .dashboard-content .dashboard-periods { width:100%; overflow-x:auto; }
  .dashboard-content .dashboard-periods a { flex:1 0 auto; text-align:center; }
  .dashboard-content .traffic-interactive { margin-inline:-8px; overflow:hidden; }
  .dashboard-content .traffic-chart { width:100%; min-height:220px; }
  .dashboard-content .analytics-summary { grid-template-columns:minmax(0,1fr); }
  .runtime-overview { padding:16px; }
  .runtime-status-grid { grid-template-columns:minmax(0,1fr); }
  .runtime-errors { min-width:620px; }
  .site-chat--page .site-chat-header { padding-inline:12px; }
  .site-chat--page .site-chat-scroll { padding-inline:12px; }
  .site-chat--page .site-chat-form { margin-inline:10px; }
  .footer { padding-bottom:max(24px,env(safe-area-inset-bottom)); }
}

@media(max-width:390px) {
  .wrap { width:min(100% - 18px,1200px); }
  .brand-image { width:106px; }
  .home-category-list { grid-template-columns:minmax(0,1fr); }
  .dashboard-content .dashboard-metrics { grid-template-columns:minmax(0,1fr); }
  .resource-page .resource-heading h1 { font-size:31px; }
}

