:root {
  color-scheme: dark;
  --base: #080d15;
  --card: #101a28;
  --fg: #f5f6fa;
  --muted: #bac4d1;
  --edge: #374352;
  --wash: #142339;
  font:
    16px/1.55 system-ui,
    sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --base: #f3f1ea;
  --card: #fffcf3;
  --fg: #111315;
  --muted: #485059;
  --edge: #b9b7af;
  --wash: #eeeae0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--base), var(--wash)) fixed;
  color: var(--fg);
}
header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 4vw;
  background: var(--base);
  border-bottom: 1px solid var(--edge);
  flex-wrap: wrap;
}
header img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
strong,
h1,
h2,
h3,
nav,
button {
  font-family: ui-rounded, "Arial Narrow", system-ui, sans-serif;
}
header strong {
  letter-spacing: 0.09em;
  font-size: 1.4rem;
}
nav {
  display: flex;
  gap: 0.3rem;
  overflow: auto;
  margin-left: auto;
  max-width: 100%;
}
main {
  max-width: 1040px;
  margin: auto;
  padding: clamp(1rem, 4vw, 3rem);
}
h1 {
  letter-spacing: -0.035em;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
}
section,
article,
dialog {
  border: 1px solid var(--edge);
  background: var(--card);
  color: var(--fg);
  border-radius: 16px;
  padding: 1.15rem;
  margin: 0.8rem 0;
}
dialog {
  margin: auto;
  width: min(90vw, 520px);
  max-height: 82dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #000a;
}
button,
input,
textarea,
select {
  font: inherit;
  border: 1px solid var(--edge);
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
  background: var(--base);
  color: var(--fg);
}
button {
  cursor: pointer;
  margin: 0.15rem;
}
button:hover,
button[aria-current="page"] {
  border-color: var(--fg);
}
button:disabled {
  opacity: 0.45;
}
label {
  display: grid;
  gap: 0.3rem;
  margin: 0.7rem 0;
}
p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
small {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 0.7rem;
}
.grid article {
  margin: 0;
}
.image {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: var(--base);
  border-radius: 10px;
}
.thumb,
.terms {
  background: var(--base);
  padding: 1rem;
  border-radius: 9px;
}
.terms {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 45dvh;
}
.thumb {
  display: grid;
  place-items: center;
  min-height: 110px;
}
.auth {
  max-width: 450px;
  margin: 5vh auto;
}
aside:not(:empty) {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--base);
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  max-width: 90vw;
  z-index: 3;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
input,
textarea,
select {
  max-width: 100%;
}
@media (max-width: 760px) {
  nav {
    width: 100%;
    margin: 0;
  }
  header {
    gap: 0.35rem;
  }
}
.home-deck {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 0.75rem 0 1rem;
}
.home-deck article,
.home-grid article {
  border-radius: 22px;
  display: flex;
  min-height: 155px;
  padding: 0;
  background: linear-gradient(145deg, var(--card), var(--wash));
}
.home-deck article {
  flex: 0 0 min(76vw, 360px);
  scroll-snap-align: center;
}
.home-deck button,
.home-grid button {
  width: 100%;
  text-align: left;
  padding: 2rem;
  letter-spacing: 0.04em;
  font:
    600 1.35rem ui-monospace,
    monospace;
  border: 0;
  background: transparent;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.65rem;
}
.home-grid article {
  min-height: 84px;
  margin: 0;
}
.home-grid button {
  font-size: 0.95rem;
  padding: 1rem;
}
.collectible {
  position: relative;
  user-select: none;
}
.collectible .remove {
  display: none;
}
.editing .collectible .remove {
  display: block;
  position: absolute;
  right: 0.3rem;
  top: 0.3rem;
  border: 0;
  border-radius: 50%;
  background: #b52d38;
  color: white;
  font-size: 20px;
  line-height: 1;
  width: 34px;
  height: 34px;
  padding: 0;
}
.editing .collectible {
  animation: jiggle .48s ease-in-out infinite;
  transform-origin: 50% 55%;
}
.editing .collectible:nth-child(2n) {
  animation-delay: -.24s;
}
@keyframes jiggle {
  0%, 100% { transform: rotate(-.45deg); }
  50% { transform: rotate(.45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .editing .collectible {
    animation: none;
  }
}
.editing .collectible {
  touch-action: none;
}
h1,
h2,
h3,
header strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
body:has(.auth) header {
  display: none;
}
main:has(.auth) {
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.auth {
  width: min(100%, 425px);
  text-align: center;
  padding: 1.6rem;
}
.auth h2 {
  font-size: 1.9rem;
  margin: 0;
}
.auth p {
  margin: 0.15rem 0 1.4rem;
  color: var(--muted);
}
.auth label {
  text-align: left;
  font-size: 0.83rem;
}
.auth input,
.auth .primary {
  border-radius: 40px;
  padding: 0.72rem 1rem;
}
.auth .primary {
  display: block;
  width: 100%;
  margin: 1rem 0 0.5rem;
  background: var(--fg);
  color: var(--base);
  font-weight: 700;
}
.auth button:not(.primary) {
  font-size: 0.85rem;
  background: transparent;
  border: none;
}
.welcome {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
}
.welcome h2 {
  font-size: 2.5rem;
  margin: 0;
}
.welcome p {
  margin: 0.1rem 0 0.6rem;
}
.welcome .presence {
  display: block;
  color: #43ac80;
  letter-spacing: 0.12em;
  font-weight: 700;
}
main:has(.welcome) > h1 {
  display: none;
}
.home-deck article {
  height: clamp(230px, 45svh, 420px);
  background: linear-gradient(135deg, var(--card), var(--base));
}
.home-deck button,
.home-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.8rem;
  overflow: hidden;
}
.tile-icon {
  width: 37px;
  height: 37px;
  filter: invert(1);
}
html[data-theme="light"] .tile-icon {
  filter: none;
}
.tile-summary {
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 500;
}
.home-grid .tile-icon {
  width: 24px;
  height: 24px;
}
.home-grid .tile-summary {
  display: none;
}
.page-dots {
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 9px;
  background: var(--edge);
}
.page-dots .selected {
  width: 21px;
  background: #61c8e8;
}
.journal {
  touch-action: pan-y;
  background:
    repeating-linear-gradient(
      transparent 0px,
      transparent 21px,
      #48a2c00c 22px
    ),
    var(--card);
}
.journal > p {
  font:
    600 1.16rem/1.6 ui-monospace,
    monospace;
}

/* Shared materials and type for the website. */
:root{
  --base:#07090d;--wash:#0b101a;--card:#10151d;--fg:#f5f7fc;--edge:#303947;
  --muted:#a6b3c7;--blue:#8db8ff;--focus:#69a6ff;--surface:linear-gradient(155deg,#151c28,#0d1119);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
html[data-theme="light"]{--blue:#174ca4;--focus:#245bbd;--surface:linear-gradient(150deg,#fffdf7,#f9f6ed)}
body{background:radial-gradient(ellipse at 90% 0%,var(--wash),transparent 47%),var(--base)}
h1,h2,h3,header strong,button,nav,.home-deck button,.home-grid button,.journal>p{
  font-family:inherit
}
h1,.welcome h2{font-weight:580;letter-spacing:-.065em;line-height:1.02}
h2,h3{letter-spacing:-.035em}
header{position:sticky;top:0;z-index:2;background:var(--base);padding:.65rem clamp(1rem,3.2vw,3.5rem);gap:.65rem}
header strong{font-size:1.28rem;letter-spacing:-.055em}header img{width:28px;height:28px;border-radius:8px}
nav{scrollbar-width:thin;align-items:center;gap:.1rem}
nav button{white-space:nowrap;border-color:transparent;background:transparent;font-size:.85rem;color:var(--muted)}
nav button[aria-current=page]{border-color:var(--edge);color:var(--fg);background:var(--card)}
main{max-width:1220px}main>h1{margin:.3em 0 .7em;font-size:clamp(2.6rem,5.8vw,5rem)}
section,article,dialog{background:var(--surface);border-radius:20px}
dialog{padding:clamp(1.2rem,4vw,2rem);box-shadow:0 25px 100px #0007}
dialog::backdrop{background:#03070dc9;backdrop-filter:blur(7px)}
button{transition:color .18s,border-color .18s,background-color .18s;min-height:40px}
button:hover{border-color:var(--focus)}:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
input,textarea,select{border-radius:12px;color:var(--fg)}
.home-deck article,.home-grid article,.journal{background:var(--surface);border-color:var(--edge)}
.home-deck button,.home-grid button{letter-spacing:-.035em}
.home-deck article:has(img[src$="search.svg"]){background:url('/studio.webp') right -55px top -25px/85% auto no-repeat,var(--surface)}
.welcome .presence{color:var(--blue)}.page-dots button{min-height:0}.page-dots .selected{background:var(--blue)}
body:has(.auth){background:#07090e;color:#f6f8ff}
main:has(.auth){position:relative;isolation:isolate;width:100%;max-width:1600px;padding:clamp(26px,5vw,88px);
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:clamp(30px,5vw,90px);align-items:center;justify-items:stretch}
.studio{position:relative;min-height:clamp(450px,73svh,780px);overflow:hidden;isolation:isolate;
  background:radial-gradient(ellipse at 55% 66%,#10213d 0%,#0c1422 33%,#080c13 65%);
  border-radius:26px;border:1px solid #1e2837;padding:clamp(24px,4vw,58px)}
.studio h1{position:relative;z-index:1;font-size:clamp(64px,8vw,140px);margin:0;letter-spacing:-.085em;line-height:.99;font-weight:550}
.studio p{position:relative;z-index:1;font-size:clamp(.9rem,1.3vw,1.17rem);letter-spacing:-.014em;color:#b5c1d4;margin:.8rem 0}
.studio-object{position:absolute;right:-2%;bottom:-3%;width:95%;height:78%;object-fit:contain;filter:drop-shadow(0 28px 23px #02050b88);animation:studio-arrive 1.1s cubic-bezier(.18,.72,.24,1) both}
@keyframes studio-arrive{from{opacity:0;transform:translateY(20px) rotate(-4deg)}to{opacity:1;transform:none}}
main .auth{width:100%;max-width:440px;justify-self:center;margin:0;background:transparent;border:0;text-align:left;padding:0;color:#f6f8ff}
.auth h2{font-size:clamp(32px,3.4vw,56px);font-weight:550;letter-spacing:-.065em;margin:0 0 1.7rem}
.auth label{color:#bfcbdd;font-weight:500;gap:.5rem;margin:1rem 0;font-size:.88rem}
.auth input{background:#101620;border:1px solid #344051;color:white;border-radius:12px;height:52px}
.auth .primary{background:#dbe8ff;color:#091830;border:1px solid #c5d8fa;font-weight:650;height:50px;border-radius:12px;margin:1.4rem 0 .8rem}
.auth .primary:hover{background:white}.auth button:not(.primary){color:#c5d7f0;padding:.5rem 0;margin-right:1.4rem}
.auth button:last-child{color:#92bbff}
@media(max-width:790px){
 main:has(.auth){grid-template-columns:1fr;align-content:center;gap:26px;padding:20px clamp(16px,5vw,38px) 34px}
 .studio{min-height:0;height:clamp(190px,30svh,265px);padding:22px}
 .studio h1{font-size:clamp(49px,10vw,78px)}.studio p{max-width:42%;font-size:.85rem}
 .studio-object{right:-9%;bottom:-4%;width:73%;height:103%}
 main .auth{max-width:560px}.auth h2{font-size:33px;margin:0 0 1rem}
 nav{width:100%;margin:0}header{gap:.3rem}nav button{min-height:36px}
}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}
 @supports(animation-timeline:view()){.tile-summary{animation:tile-appear linear both;animation-timeline:view(inline);animation-range:entry 0% entry 100%}
 @keyframes tile-appear{from{opacity:.55}to{opacity:1}}}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.studio-object{animation:none}button{transition:none}}

.team-stage{position:absolute;inset:32% 5% 4%;isolation:isolate}
.team-mark{position:absolute;z-index:2;width:34%;height:auto;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 12px 35px #02040b88}
.team-clip{position:absolute;left:50%;top:50%;margin:0;width:23%;height:46%;overflow:hidden;border:1px solid #456081;border-radius:10px;background:#0b1626;box-shadow:0 12px 26px #0006;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--tilt))}
.team-joseph{--x:-132%;--y:-50%;--tilt:-6deg}
.team-ha{--x:132%;--y:-50%;--tilt:6deg}
.team-matt{--x:-116%;--y:53%;--tilt:-3deg}
.team-tri{--x:116%;--y:53%;--tilt:3deg}
.team-clip img{display:block;width:100%;height:100%;object-fit:cover}
.team-caption{position:absolute;inset:auto 0 0;padding:1.1em .45em .45em;background:linear-gradient(transparent,#02050df2);color:white;font-size:clamp(.62rem,1vw,.85rem);font-weight:600;text-align:center}
@media(prefers-reduced-motion:no-preference){.team-clip{animation:fan-out 1s cubic-bezier(.18,.72,.24,1) both}.team-ha,.team-tri{animation-delay:.12s}
@keyframes fan-out{from{opacity:0;transform:translate(-50%,-50%) scale(.48)}to{opacity:1}}}
@media(max-width:790px){.studio{height:auto;min-height:0;padding:20px}.studio p{max-width:none}.team-stage{position:relative;inset:auto;margin:.9rem auto 0;width:min(100%,410px);height:clamp(180px,47vw,240px)}}

@font-face{font-family:Barlow;src:url('/fonts/barlow-400.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Barlow;src:url('/fonts/barlow-600.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"Chakra Petch";src:url('/fonts/chakra-petch-600.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
:root{font-family:Barlow,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
h1,h2,h3,header strong,.home-deck button,.home-grid button,.studio h1,.auth h2,.welcome h2{
  font-family:"Chakra Petch",Barlow,sans-serif;font-weight:600;letter-spacing:-.035em
}
.team-caption{font-family:Barlow,sans-serif;font-weight:600;letter-spacing:.01em}

.team-clip:focus-visible{outline:2px solid #b6d7ff;outline-offset:3px;z-index:3}
@media(hover:hover){.team-clip:hover{border-color:#b6d7ff;z-index:3}}
@media(prefers-reduced-motion:no-preference){
  .team-clip{transition:translate .2s ease,box-shadow .2s ease,border-color .2s ease}
  .team-clip:focus-visible{translate:0 -4px}
  @media(hover:hover){.team-clip:hover{translate:0 -4px;box-shadow:0 16px 30px #02061199}}
}

/* Flat website navigation and content surfaces. */
.member-site header{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;z-index:5}
.member-site nav{display:flex;gap:.2rem .75rem;align-items:center;flex-wrap:wrap;overflow:visible}
.member-site nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:42px;text-decoration:none;color:var(--muted);font-weight:600;border-bottom:2px solid transparent}
.member-site nav a:hover,.member-site nav a[aria-current]{color:var(--fg);border-color:var(--blue)}
.member-site nav img{width:21px;height:21px}
.member-site nav a[aria-label="Notifications"]{min-width:38px}
.member-site nav img,.chat-launcher img{filter:invert(1)}
html[data-theme="light"] .member-site nav img{filter:none}
.member-site nav a[data-unread]::after{content:"";position:absolute;top:8px;right:4px;width:6px;height:6px;border-radius:50%;background:var(--blue)}
.chat-launcher{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:6;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:1px solid #8db8ff;background:#132c52;box-shadow:0 5px 18px #0004}
.chat-launcher img{width:24px;height:24px}
.member-site main{padding-bottom:100px}
.member-site main section,.member-site main article{margin:0;padding:1.35rem 0;border:0;border-bottom:1px solid var(--edge);border-radius:0;background:transparent}
.member-site main .welcome{padding:clamp(24px,5vw,65px) 1rem;display:grid;gap:.85rem;justify-items:start}
.member-site .profile-nav{margin:0;border-bottom:1px solid var(--edge)}
.member-site main a{color:var(--blue)}
body:has(.auth) .studio{border:0;border-radius:0;background:transparent}
.studio .team-clip{border-radius:2px}
@media(max-width:790px){.member-site header{padding:.4rem 1rem;gap:.15rem}.member-site header nav{width:100%;column-gap:.85rem}.member-site nav a{min-height:36px;font-size:.92rem}}
.member-site header nav{overflow:visible}
.nav-menu{position:relative}
.nav-menu summary,.member-site .header-tools > a{display:grid;place-items:center;box-sizing:border-box;width:42px;height:42px;padding:0;margin:0;cursor:pointer;list-style:none}
.header-tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  width: 270px;
  align-items: center;
  justify-items: center;
}
.header-tools img { display: block; border-radius: 0; }
.member-site .header-tools > a { border-bottom-color: transparent; border-bottom-width: 0; }
.member-site .header-tools > a[aria-current] { box-shadow: inset 0 -2px var(--blue); }
@media (max-width: 790px) {
  .header-tools { flex-basis: 100%; width: 100%; }
}
.nav-menu summary::-webkit-details-marker{display:none}
.nav-menu summary img,.member-site nav a[aria-label="Settings"] img{width:21px;height:21px}
.nav-menu summary:hover img,.nav-menu summary:focus-visible img,.member-site nav a[aria-label="Settings"]:is(:hover,:focus-visible) img{filter:brightness(0) saturate(100%) invert(69%) sepia(52%) saturate(851%) hue-rotate(181deg) drop-shadow(0 0 4px #428cff)}
@media(prefers-reduced-motion:no-preference){.nav-menu summary img,nav a[aria-label="Settings"] img{transition:transform .25s,filter .25s}.nav-menu summary:is(:hover,:focus-visible) img{transform:rotate(-12deg) scale(1.1)}nav a[aria-label="Settings"]:is(:hover,:focus-visible) img{transform:rotate(45deg)}}
.nav-popup{position:absolute;right:0;top:100%;width:min(300px,88vw);z-index:9;padding:1rem;background:var(--card);border:1px solid var(--edge);border-radius:12px;box-shadow:0 16px 36px #0005}
.nav-menu summary[data-unread]::after{content:"";position:absolute;top:6px;right:5px;background:var(--blue);border-radius:50%;width:6px;height:6px}
.post-composer textarea{display:block;width:100%;min-height:8rem;resize:vertical;padding:1rem;font:inherit;font-size:1.12rem}
.post-composer textarea::placeholder{color:var(--muted);opacity:.8}
.collectible{cursor:pointer}
@media(max-width:790px){.member-site header{position:sticky}.nav-menu{position:static}.nav-popup{right:1rem;top:100%}}

.team-mark{width:auto;height:auto;max-width:32%;max-height:80%;border-radius:0;object-fit:contain}

.post-field{position:relative}
.post-composer .post-field textarea{padding-bottom:3.6rem}
.post-photo-picker{position:absolute;bottom:6px;left:8px;width:44px;height:44px;margin:0;display:grid;place-items:center;border-radius:8px;color:var(--muted);cursor:pointer}
.post-photo-picker::before{content:"";width:22px;height:22px;background:currentColor;mask:url('/icons/photo.svg') center/contain no-repeat}
.post-photo-picker:is(:hover,:focus-within){color:var(--blue);background:var(--card)}
.post-photo-picker:focus-within{outline:2px solid var(--blue)}
.post-photo-picker input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.attachment-preview{position:absolute;left:100%;width:36px;height:36px;object-fit:cover;border-radius:5px}
.bot-label{display:inline-flex;align-items:center;gap:.55rem}
.bot-label::before{content:"";width:.85rem;height:.85rem;border-radius:50%;background:var(--bot-color);border:1px solid currentColor}
.bot-feed{margin:1rem 0}
.bot-feed summary{cursor:pointer;font-weight:600}
.bot-reply{border-inline-start:2px solid var(--edge);padding-inline-start:1rem;margin:.7rem 0}
.bot-reply p{margin:.25rem 0}

body{display:flex;flex-direction:column;min-height:100svh}
body>main{width:100%;margin-block:0}
body>main:has(.auth){min-height:calc(100svh - 4rem)}
.site-footer{margin-top:auto;padding:1.25rem 1rem max(1.25rem,env(safe-area-inset-bottom));border-top:1px solid var(--edge);text-align:center;font-size:.86rem;line-height:1.5;color:var(--muted)}
.member-site .site-footer{padding-inline:76px}

/* Folioir Messenger */
.chat-launcher { padding:0; transition:transform .15s, background .15s }
.chat-launcher:hover { transform:translateY(-2px); background:#20477c }
.chat-count,.retro-count { color:#fff; background:#315acf; border:1px solid #a2bdff; border-radius:12px; min-width:1.5rem; padding:0 .38rem; text-align:center; font:700 .76rem/1.4rem system-ui,sans-serif }
.chat-count { position:absolute; top:-.45rem; right:-.4rem; pointer-events:none }
.chat-count[hidden],.retro-chat [hidden] { display:none }
.retro-chat { position:fixed; bottom:calc(max(18px,env(safe-area-inset-bottom)) + 62px); right:max(18px,env(safe-area-inset-right)); z-index:12; width:min(720px,calc(100vw - 32px)); height:min(500px,calc(100dvh - 108px)); display:flex; flex-direction:column; overflow:hidden; background:var(--surface); color:var(--fg); border:1px solid var(--edge); border-radius:12px; box-shadow:0 18px 65px #0005; padding:0; font:16px/1.45 Barlow,system-ui,sans-serif }
.retro-chat :is(button,strong,h2,textarea) { font-family:inherit; letter-spacing:normal; text-transform:none }
.retro-chat button { min-height:30px; min-width:30px; border:1px solid; border-color:var(--edge); border-radius:6px; background:var(--card); color:var(--fg); padding:.25rem .6rem; font-size:.82rem; cursor:pointer }
.retro-chat button:hover { background:var(--wash) }
.retro-chat :focus-visible { outline:2px solid var(--focus); outline-offset:-2px }
.retro-title,.retro-heading { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.32rem .48rem }
.retro-title { cursor:grab; touch-action:none; user-select:none; background:var(--surface); font-size:1.05rem; border-bottom:1px solid var(--edge); padding:.6rem .8rem }
 .retro-title strong { font-family:"Chakra Petch",Barlow,sans-serif }
.retro-title:active {cursor:grabbing}
.retro-title strong:before { content:""; display:inline-block; width:12px; height:10px; margin-right:8px; background:var(--blue); mask:url(/icons/message-circle.svg) center/contain no-repeat; vertical-align:baseline }
.retro-title button { padding:0; font-size:1.2rem; line-height:1 }
.retro-split { display:grid; grid-template-columns:minmax(112px,26%) minmax(0,1fr); gap:1px; flex:1; min-height:0; background:var(--edge) }
.retro-side,.retro-history { border:0; background:var(--base) }
.retro-side,.retro-pane { display:flex; flex-direction:column; min-width:0; min-height:0 }
.retro-side h2,.retro-heading { font-size:.85rem; color:var(--fg); background:var(--card); margin:0; padding:.58rem }
.retro-list,.retro-history { overflow:auto; overscroll-behavior:contain; scrollbar-color:var(--edge) var(--base) }
.retro-list { padding:.25rem }
.retro-list button { display:flex; align-items:center; justify-content:space-between; gap:.2rem; width:100%; background:none; border:1px solid transparent; text-align:left; min-height:36px; padding:.33rem }
.retro-list button span:first-child { overflow-wrap:anywhere }
.retro-list button[aria-pressed=true] { background:var(--wash); border:1px solid var(--edge) }
.retro-count { font-size:.7rem; line-height:1.15rem; min-width:1.25rem }
.retro-pane { gap:1px; background:var(--card) }
.retro-heading strong { overflow-wrap:anywhere }
.retro-heading button { font-size:.72rem }
.retro-history { flex:1; min-height:0; padding:.7rem; overflow-anchor:none }
.retro-line { margin:.1rem 0 .75rem; overflow-wrap:anywhere }
.retro-line time { font-size:.67rem; margin-left:.6rem; color:var(--muted) }
.retro-line p { margin:.12rem 0 0; color:inherit; white-space:pre-wrap; font:inherit }
.retro-empty { padding:.5rem; color:var(--muted) }
.retro-compose { display:flex; gap:6px; margin:0; padding:.45rem }
.retro-compose textarea { resize:none; flex:1; min-width:0; width:auto; min-height:46px; margin:0; border-radius:6px; border:1px solid var(--edge); color:var(--fg); background:var(--base); padding:.5rem; font-size:1rem }
.retro-compose textarea::placeholder { color:var(--muted) }
@media(max-width:520px) {
  .retro-chat { right:6px; width:calc(100vw - 12px); height:min(540px,calc(100dvh - 90px)); font-size:13px }
  .retro-split { grid-template-columns:minmax(82px,27%) minmax(0,1fr) }
  .retro-history { padding:.45rem }
  .retro-compose { flex-wrap:wrap }
  .retro-compose textarea { flex-basis:100% }
  .retro-compose button { margin-left:auto }
}

.retro-chat { --chat-ink-0:#9ed1ff; --chat-ink-1:#ffb6d5; --chat-ink-2:#98ebc6; --chat-ink-3:#ffe19c; --chat-ink-4:#cbb8ff; --chat-ink-5:#ffb69c; --chat-ink-6:#a6e9f6; --chat-ink-7:#d0eb99 }
html[data-theme="light"] .retro-chat { --chat-ink-0:#174c86; --chat-ink-1:#8d2956; --chat-ink-2:#196044; --chat-ink-3:#755111; --chat-ink-4:#604399; --chat-ink-5:#893e24; --chat-ink-6:#12616d; --chat-ink-7:#496020 }
.catalog-search { display:flex; align-items:center; max-width:40rem; border-bottom:1px solid var(--edge); gap:.3rem }
.catalog-search:focus-within { border-color:var(--focus) }
.catalog-search input { min-width:0; flex:1; margin:0; background:transparent; border:0; padding:.8rem .2rem; font:inherit; color:var(--fg) }
.catalog-search button { background:transparent; border:0; width:44px; height:44px }
.catalog-search img { width:20px; height:20px; filter:invert(1) }
html[data-theme="light"] .catalog-search img { filter:none }
.home-shelf { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.5rem,2vw,1.25rem); margin-bottom:1rem }
.home-shelf button { display:flex; flex-direction:column; align-items:flex-start; padding:0; background:transparent; text-align:left; border:0; color:var(--fg) }
.home-shelf :is(.image,.thumb) { width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; background:var(--card); margin:0 0 .5rem }
.home-shelf small { color:var(--muted) }
.home-presence { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem }
.home-presence button { width:36px; height:36px; min-height:36px; padding:0; overflow:hidden; border:1px solid var(--blue); border-radius:50%; background:var(--card); color:var(--fg) }
.home-presence img { width:100%; height:100%; object-fit:cover; display:block }
.retro-title strong { margin-right:auto }
.retro-compose { flex-wrap:wrap; align-items:center }
.retro-compose textarea { flex-basis:50% }
.chat-attachment:empty { display:none }
.chat-attachment { padding:.4rem; overflow:auto; max-height:32% }
.chat-attachment img,.retro-line img { display:block;max-width:100%;max-height:180px;object-fit:contain }
.chat-attachment audio,.retro-line audio { max-width:100% }
.chat-friends { display:grid;gap:.5rem;max-height:50vh;overflow:auto }
@media (prefers-reduced-motion:no-preference) {
  @keyframes folio-enter { from { opacity:0;translate:0 6px } to { opacity:1;translate:0 0 } }
  @keyframes mic-pulse { 50% { box-shadow:0 0 0 3px #689fff66 } }
  .retro-chat,.retro-line,.nav-menu[open] .nav-popup,dialog[open],main>h1 { animation:folio-enter .18s ease-out }
  .recording { animation:mic-pulse 1.4s ease-in-out infinite }
  .member-site button { transition:background-color .15s,color .15s }
}

aside:has(.notice-icon){top:max(12px,env(safe-area-inset-top));bottom:auto;z-index:100;width:max-content;max-width:90vw;overflow-wrap:anywhere;box-shadow:0 5px 24px #0004}.notice-icon{width:32px;height:32px;border-radius:7px;vertical-align:middle;margin-right:.65rem}

.message-notice {display:flex;align-items:center;gap:.65rem;text-align:left;width:100%;min-width:0}
.message-notice span:last-child {overflow-wrap:anywhere}
.notice-avatar {display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;overflow:hidden;background:#203451;color:#fff}
.notice-avatar img {width:100%;height:100%;object-fit:cover}

button.collection-edit {display:block;margin:0 0 1rem auto;padding:.8rem 1.4rem;min-height:46px;background:#2459ac;color:white;border:2px solid #79acff;border-radius:.75rem;font-weight:700}
button.collection-edit[aria-pressed=true] {background:#e8efff;color:#102449}
button.collection-folder {display:grid;justify-items:center;align-content:center;gap:.35rem;color:inherit}
.folder-mini {display:grid;width:min(9rem,100%);aspect-ratio:1;box-sizing:border-box;padding:.45rem;gap:.2rem;grid-template:repeat(3,minmax(0,1fr))/repeat(3,minmax(0,1fr));border-radius:22%;background:color-mix(in srgb,var(--folder-tint) 55%,var(--card));border:1px solid var(--folder-tint);overflow:hidden}
.folder-mini>.image,.folder-mini>.thumb {width:100%;height:100%;min-height:0;margin:0;object-fit:cover;border-radius:20%;overflow:hidden;font-size:.52rem}

.catalog-price {
  display:block;
  width: fit-content;
  padding: .25rem .5rem;
  border-radius: 5px;
  background: #0b170f;
  color: #7aff45;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-logo { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }

.friend-search {
  width: min(100%, 58rem);
  margin-inline: auto;
}
.friend-search > input[type="search"] {
  display: block;
  width: 100%;
  min-height: clamp(3.5rem, 6vw, 4.5rem);
  padding: .85rem clamp(1rem, 3vw, 2rem);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.member-site main.member-profile {
  max-width: 68rem;
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}
.profile-identity {display:flex; align-items:center; gap:1rem; padding-bottom:1rem}
.profile-avatar {flex:0 0 auto; display:grid; place-items:center; width:clamp(3.5rem,7vw,5rem); aspect-ratio:1; border-radius:50%; overflow:hidden; background:#1c385d; color:white; font-size:1.6rem}
.profile-avatar img {width:100%; height:100%; object-fit:cover}
.profile-info {flex:1; min-width:0; overflow-wrap:anywhere}
.profile-info h1 {margin:0; font-size:clamp(1.55rem,3.5vw,2.4rem); line-height:1.12}
.profile-info p {margin:.35rem 0 0; max-width:65ch}
.profile-actions {display:flex; gap:.35rem; flex-wrap:wrap}
.profile-toolbar {display:flex; align-items:center; justify-content:space-between; gap:.5rem; border-bottom:1px solid var(--edge); margin-bottom:.8rem}
.member-site .profile-toolbar nav {width:auto; border:0; gap:1rem}
.profile-toolbar .collection-edit {margin:0 0 .3rem; min-height:40px; padding:.4rem .85rem}
.member-profile .grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,10.75rem),1fr)); align-items:start; gap:1rem}
.member-site .member-profile .grid article {padding:.3rem 0 .75rem}
.member-profile .grid article>.image,.member-profile .grid article>.thumb {width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; display:grid; place-items:center; margin:0 0 .4rem}
.member-profile .grid article>small {display:block}
.member-profile .grid article>p {margin:.3rem 0}
.member-profile .grid .collection-folder {width:100%; margin:0; padding:.6rem; background:transparent; border:0}
@media(max-width:600px){
  .profile-identity {flex-wrap:wrap; gap:.65rem .8rem}
  .profile-actions {flex-basis:100%}
  .member-profile .grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem}
  .member-profile .grid>* {min-width:0; overflow-wrap:anywhere}
}

.friends-directory {list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:0 2rem}
.friends-directory li {display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.85rem 0; border-bottom:1px solid var(--edge)}
.member-site main .friends-directory a {display:flex; align-items:center; gap:.8rem; color:var(--fg); text-decoration:none; min-width:0}
.friends-directory a:hover strong,.friends-directory a:focus-visible strong {text-decoration:underline}
.friends-directory .profile-avatar {width:3rem; font-size:1.2rem}
.friends-directory strong,.friends-directory small {display:block; overflow-wrap:anywhere}

.member-site main:has(>.news-feed) {max-width:54rem; padding-top:clamp(1.25rem,3vw,2.5rem)}
.member-site main:has(>.news-feed)>h1 {font-size:clamp(2rem,4vw,3rem); margin:0 0 .75rem}
.member-site .news-feed .post-composer {display:grid; grid-template-columns:1fr auto; align-items:center; gap:.65rem; padding:0 0 1rem}
.news-feed .post-composer h2 {font-size:1rem; margin:0}
.news-feed .post-field {grid-column:1/-1; grid-row:2}
.news-feed .post-field textarea {min-height:6.5rem; font-size:1rem}
.news-feed .post-composer>button {grid-column:2; grid-row:1; margin:0; padding:.4rem 1.15rem; background:#2459ac; border-color:#5686c9; color:white; font-weight:650}
.member-site .news-feed .journal {padding:1.35rem 0 1rem}
.feed-byline,.feed-actions {display:flex; align-items:center; gap:.65rem}
.feed-byline {justify-content:space-between}
.member-site main .feed-byline a {display:inline-flex; align-items:center; gap:.7rem; color:var(--fg); text-decoration:none; min-width:0; overflow-wrap:anywhere}
.feed-byline a:hover strong {text-decoration:underline}
.feed-byline .profile-avatar {width:2.65rem; font-size:1rem}
.feed-byline strong,.feed-byline time {display:block}
.feed-byline time {font-size:.8rem; color:var(--muted)}
.news-feed .journal>p {font:inherit; line-height:1.55; margin:.85rem 0}
.news-feed .journal>.image {display:block; max-height:34rem; margin:.85rem 0; object-fit:contain}
.feed-actions {flex-wrap:wrap; gap:.25rem; margin-top:.5rem}
.feed-actions button,.feed-options summary {background:transparent; border:0; color:var(--muted); min-height:40px; margin:0; padding:.35rem .8rem}
.feed-actions button:hover,.feed-options summary:hover {color:var(--fg); background:var(--card)}
.feed-options {position:relative; flex:none}
.feed-options summary {display:grid; place-items:center; cursor:pointer; list-style:none; border-radius:.5rem}
.feed-options summary::-webkit-details-marker {display:none}
.feed-options button {position:absolute; right:0; top:100%; white-space:nowrap; z-index:1; background:var(--card)}
.news-feed .bot-feed {margin:.6rem 0; color:var(--muted)}

.collection-bar {display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:.6rem 0 1rem; color:var(--muted); font-size:.9rem}
.collection-bar .collection-edit {margin:0}
.grid.collection-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,12rem),1fr)); align-items:start; gap:1.5rem 1rem}
.member-site main .collection-grid article.collection-piece,.collection-dialog .collection-piece {display:flex; flex-direction:column; align-items:flex-start; min-width:0; gap:.35rem; padding:0 0 .8rem; margin:0; border:0; border-bottom:1px solid var(--edge); border-radius:0; background:transparent; overflow-wrap:anywhere}
.piece-media {width:100%; aspect-ratio:4/3; position:relative; overflow:hidden; border-radius:10px; background:var(--card)}
.piece-media>.image,.piece-media>.thumb {width:100%;height:100%;object-fit:contain;display:grid;place-items:center;text-align:center}
.piece-featured {position:absolute;top:.4rem;left:.4rem;padding:.12rem .45rem;border-radius:4px;color:var(--fg);background:var(--base)}
.collection-piece .catalog-price {margin:.15rem 0 0; font-size:.9rem}
.collection-piece button.piece-name {margin:0; padding:0; background:transparent; color:var(--fg); border:0; font-size:1.12rem; line-height:1.25; font-weight:650; text-align:left}
.piece-name:hover,.piece-name:focus-visible {text-decoration:underline}
.collection-piece .piece-meta,.price-missing {display:block;color:var(--muted)}
.collection-piece>button:not(.piece-name,.remove) {margin:.2rem 0 0;padding:.3rem .65rem;font-size:.83rem}
.collection-dialog {width:min(92vw,48rem)}
.collection-dialog .collection-grid {margin-top:1rem}
.home-shelf .catalog-price {margin:.2rem 0}
@media(max-width:600px){.grid.collection-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem .65rem}}

.collection-piece {cursor:pointer}
.collection-piece .piece-make {font-size:.9rem;line-height:1.25}
.collection-piece .piece-meta {font-size:.76rem;line-height:1.35}
.collection-piece .piece-settings {display:none}
.editing .collection-piece .piece-settings {display:inline-block}
.folder-entry {display:grid;justify-items:center;align-content:start;min-width:0;gap:.15rem}
.folder-entry .collection-folder {width:100%;display:grid;place-items:center;background:transparent;border:0}
.folder-title {width:100%;min-width:0;text-align:center;font-weight:650;border:1px solid transparent;background:transparent;padding:.22rem .4rem;color:var(--fg)}
.folder-title:is(:hover,:focus-visible) {background:var(--card);border-color:var(--edge)}
.folder-tools {display:flex;align-items:center;gap:.3rem;flex-wrap:wrap}
.folder-tools .folder-title,.folder-tools>strong {flex:1 1 7rem;text-align:left;font-size:1.15rem}
.folder-tools button {padding:.4rem .55rem}
.collection-dialog .folder-page {grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.45rem,2vw,1rem); align-content:start;min-height:min(63vw,23rem)}
.collection-dialog .folder-page .piece-name {font-size:clamp(.82rem,2vw,1.05rem)}
.folder-pager {display:flex;justify-content:center;align-items:center;gap:.65rem}
@media(max-width:600px){.collection-dialog {padding:.8rem;width:96vw}.folder-page .catalog-price {font-size:.75rem}.folder-page .piece-make {font-size:.78rem}}

.folder-slot {aspect-ratio:4/3;width:100%;border-radius:9px;background:color-mix(in srgb,var(--edge) 16%,transparent)}
.collection-dialog .folder-page {grid-template-rows:repeat(3,auto)}
.post-video-picker {position:absolute;bottom:6px;left:54px;width:44px;height:44px;display:grid;place-items:center;margin:0;color:var(--muted);border-radius:8px}
.post-video-picker::before {content:"";width:22px;height:22px;background:currentColor;mask:url('/icons/video.svg') center/contain no-repeat}
.post-video-picker input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.post-video-picker:is(:hover,:focus-within) {color:var(--blue);background:var(--card)}
.post-field:has(textarea[hidden]) {min-height:54px}
.post-composer .post-field textarea[hidden],.video-draft[hidden] {display:none}
.post-composer>.video-draft,.post-composer>small {grid-column:1/-1}
.post-composer>small:empty {display:none}
.video-draft {display:grid;gap:.65rem}
.video-draft>button {justify-self:start}
.feed-video {width:100%;max-height:28rem;display:block;background:#07090d;border-radius:.65rem;object-fit:contain}
.post-photo-picker .attachment-preview {left:calc(100% + 48px)}

.retro-line audio,.chat-attachment audio { display:block; width:min(100%,320px); margin:.25rem 0; min-height:44px }
.chat-attachment strong,.retro-line div:has(audio)>strong { display:block; font-size:.8rem; color:var(--fg) }

.piece-discuss { order:10; align-self:start; font-size:.8rem; padding:.35rem .55rem }
.piece-thread { width:min(30rem,92vw); max-height:82dvh; overflow:auto }
.piece-reactions { display:flex; gap:.5rem; margin:1rem 0; flex-wrap:wrap }
.piece-reactions [aria-pressed=true] { color:white; background:#245594 }
.piece-thread article { padding:.65rem 0; border-bottom:1px solid var(--edge) }
.piece-thread article p { margin:.25rem 0; white-space:pre-wrap; overflow-wrap:anywhere }
.piece-thread textarea { width:100%; min-height:4rem } .piece-thread [role=status] { display:block }

.collection-valuation { display:grid; gap:.2rem; color:var(--fg) }
.collection-valuation strong { font:700 clamp(1.5rem,4vw,2rem)/1.2 "Chakra Petch",sans-serif; color:var(--price,#2adb80); font-variant-numeric:tabular-nums }
html[data-theme=light] .collection-valuation strong { color:#087440 }
.collection-valuation small { color:var(--muted) }

.collection-heading {margin:1.4rem 0 .25rem}.collection-bar {flex-wrap:wrap}
.piece-reactions button {display:inline-flex;align-items:center;gap:.45rem;min-height:44px}
.piece-reactions button span {display:inline-block;font-size:1.35rem}
.export-dialog {width:min(32rem,92vw);max-height:86dvh;overflow:auto}
.export-dialog img {display:block;width:100%;height:auto;max-height:48dvh;object-fit:contain;margin:1rem auto}
.export-dialog label,.export-actions {display:flex;align-items:center;gap:.65rem}
.export-dialog input[type=checkbox] {width:auto;margin:0}.export-actions a {color:var(--fg);text-decoration:underline}

.retro-line .chat-photo-open { display:block; padding:0; background:transparent; border:0; cursor:zoom-in }
dialog.chat-photo-viewer {box-sizing:border-box;width:min(96vw,96rem);max-width:96vw;max-height:94dvh;padding:1rem}
.chat-photo-viewer img {display:block;width:100%;height:min(76dvh,70rem);object-fit:contain;margin:.75rem auto 0}

.catalog-loading[hidden] { display: none; }
.catalog-loading:not([hidden]) {
  display: flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  max-width: 40rem;
  min-height: 4.75rem;
  margin: .75rem 0;
  border-radius: .5rem;
  background: var(--wash);
  color: var(--fg);
  font: 600 1.15rem/1.4 "Chakra Petch", Barlow, sans-serif;
}
.catalog-loading::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  border: 3px solid var(--edge);
  border-top-color: #589cff;
  border-right-color: #589cff;
  border-radius: 50%;
  animation: catalog-spin .8s linear infinite;
}
.catalog-loading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35%;
  height: 2px;
  background: #589cff;
  animation: catalog-scan 1.1s ease-in-out infinite alternate;
}
@keyframes catalog-spin { to { transform: rotate(1turn); } }
@keyframes catalog-scan { to { transform: translateX(185%); } }
@media (prefers-reduced-motion: reduce) {
  .catalog-loading::before, .catalog-loading::after { animation: none; }
}

.collection-dialog .collectible .piece-media { touch-action: none; user-select: none; cursor: grab; }
