:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #18191c;
  --raised: #222429;
  --line: #36383e;
  --text: #f0f0ed;
  --muted: #a5a5ae;
  --accent: #d5f98c;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .download { border: 1px solid var(--line); border-radius: .5rem; background: var(--raised); color: var(--text); padding: .7rem 1rem; cursor: pointer; font-weight: 600; font-size: .93rem; }
button:hover, .download:hover { border-color: #868991; }
.primary { background: var(--accent); color: #1c240f; border-color: transparent; }
.primary:hover { background: #e4ffae; border-color: transparent; }
.quiet { background: transparent; }
.danger { color: #ffb0a9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .shell { width: min(93%, 94rem); margin-inline: auto; }
.mast-inner { min-height: 4.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mast-end, .brand, .actions, .compose-foot, .switchers, .meta { display: flex; gap: .65rem; align-items: center; }
.brand { font-size: 1.18rem; font-weight: 750; letter-spacing: -.055em; }
.brand-light { color: #bebfc2; font-weight: 450; }
.brand-mark { display: inline-flex; gap: 3px; align-items: center; transform: skew(-13deg); width: 1.8rem; height: 1.8rem; }
.brand-mark i { display: block; background: var(--accent); width: .66rem; height: 100%; border-radius: 2px; }
.brand-mark i:last-child { height: 65%; align-self: end; }
.studio-name { color: var(--muted); font-size: .92rem; }
.mast-end form { margin-left: .65rem; }
.shell { padding-block: clamp(2rem,5vw,4rem); }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem,5vw,4.2rem); font-weight: 540; letter-spacing: -.058em; line-height: 1.06; }
h2 { font-size: 1.35rem; font-weight: 580; letter-spacing: -.034em; }
h3 { font-size: 1.05rem; font-weight: 620; }
.eyebrow { text-transform: uppercase; color: var(--accent); font-weight: 650; font-size: .76rem; letter-spacing: .15em; margin-bottom: 1rem; }
.page-head, .section-head, .player-foot { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.page-head { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 1.3rem; }
.count { margin-left: .3rem; color: var(--muted); font-size: .87rem; font-weight: 400; }
.crumb { display: flex; gap: .5rem; color: var(--muted); font-size: .93rem; margin-bottom: 1.2rem; overflow-wrap: anywhere; }
a.crumb:hover,.crumb a:hover { color: var(--accent); }
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem),1fr)); }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; }
.card:hover { border-color: #848b76; }
.card-info { padding: 1.1rem; display: grid; gap: .65rem; justify-items: start; }
.thumbnail { height: auto; aspect-ratio: 16/9; background: radial-gradient(ellipse at 75% 110%,#485541 0,transparent 62%),linear-gradient(135deg,#25272c,#191b1b); display: grid; place-items: center; }
.thumbnail video { height: 100%; width: 100%; object-fit: cover; pointer-events: none; }
.frame-icon { width: 3.5rem; height: 2.5rem; border: 1px solid #6f7960; border-radius: .35rem; background: linear-gradient(transparent 16%,#69725c 17%,transparent 21%,transparent 76%,#69725c 79%,transparent 81%); display: inline-grid; place-items: center; }
.frame-icon::after { content: ''; border-left: .45rem solid var(--accent); border-block: .3rem solid transparent; }
.empty { display: grid; gap: .8rem; justify-items: center; align-content: center; text-align: center; min-height: 18rem; padding: 2rem; background: var(--surface); border: 1px dashed #484b46; border-radius: .9rem; }
.empty .frame-icon { margin-bottom: .5rem; }
.empty p,.muted,.thread-empty p,small { color: var(--muted); line-height: 1.55; }
.empty p { max-width: 28rem; }
.project-grid,.review-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(18rem,24rem); align-items: start; gap: 1.6rem; }
.panel,dialog { border: 1px solid var(--line); background: var(--surface); padding: 1.4rem; border-radius: .8rem; }
.link-row { display: grid; gap: .65rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.panel > .muted { margin-top: .85rem; font-size: .93rem; }
.wide { width: 100%; }
label { display: grid; gap: .46rem; color: #d9d9d6; font-size: .9rem; }
input:not([type=hidden]),textarea,select { width: 100%; min-width: 0; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: .45rem; padding: .74rem .85rem; }
input[type=file] { font-size: .86rem; }
textarea { resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
.check { display: flex; align-items: center; }
dialog { width: min(92%,28rem); color: var(--text); padding: 1.65rem; box-shadow: 0 24px 90px #0009; }
dialog::backdrop { background: #000a; }
dialog form,.access form,.compose { display: grid; gap: 1.15rem; }
dialog > h2 { margin-bottom: 1rem; }
.actions { justify-content: flex-end; flex-wrap: wrap; }
.left { justify-content: flex-start; }
.destructive { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.notices { width: min(93%,94rem); margin: 1rem auto; padding: .9rem 1.1rem; background: #27301e; color: #e2edcf; border: 1px solid #566445; border-radius: .55rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
.meta { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.status,.time { display: inline-flex; border-radius: .35rem; padding: .3rem .55rem; font: 500 .82rem/1.25 ui-monospace,monospace; background: #323038; color: #d9d2ea; }
.status.approved { background: #293422; color: var(--accent); }
.status.changes { background: #3c3123; color: #f0c88c; }
.switchers { flex-wrap: wrap; max-width: 100%; }
.switchers label { max-width: min(100%,18rem); }
.viewer { min-width: 0; }
#player { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #050506; border-radius: .65rem; }
.player-foot { padding-top: 1rem; }
.download { background: transparent; }
.comments .section-head { padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.thread { max-height: 31rem; overflow: auto; }
.thread-empty { text-align: center; padding: 2rem .5rem; }
.thread-empty p { margin-top: .55rem; }
.comment { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.comment header,.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.comment p { margin-top: .65rem; white-space: pre-wrap; line-height: 1.5; }
.comment strong { overflow-wrap: anywhere; }
.time { background: #282e23; color: var(--accent); font-variant-numeric: tabular-nums; }
.compose { margin-top: 1rem; }
.access { margin: clamp(2rem,8vh,8rem) auto; max-width: 67rem; width: 93%; min-height: min(36rem,72vh); display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.access-form { align-self: center; padding: clamp(1.6rem,4vw,4.5rem); }
.access-form h1 { font-size: clamp(2.4rem,4.2vw,4.3rem); }
.access-form p { margin: 1.15rem 0 2rem; }
.access-art { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 18% 4%,#919b75 -20%,transparent 52%),linear-gradient(144deg,#444a39,#252b24 56%,#181c18); }
.lens { position: absolute; width: 120%; aspect-ratio: 1; left: -40%; top: 9%; border-radius: 50%; transform: rotate(-28deg) scaleX(.86); background: repeating-radial-gradient(circle at center,#1c211d 0 1%,#41463a 1.2% 1.6%,#24281f 1.9% 2.7%); box-shadow: 2rem 2rem 3rem #090b09aa,inset 0 .35rem 1.2rem #b7c09b; }
.lens i { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(ellipse at 40% 30%,#bcdaa488 0,transparent 12%),radial-gradient(ellipse at 64% 63%,#43695f88,transparent 20%),radial-gradient(ellipse at 50% 45%,#27332a 12%,#101613 32%,#4d5741 45%,#1a211b 57%,#7a866565 64%,#131711 75%); box-shadow: 0 0 0 .5rem #192019,inset .1rem .3rem 1.2rem #bcc5a055; }
.crop { position: absolute; inset: 1.6rem; border: 1px solid #d8e1c62e; }
@media(max-width: 850px) { .project-grid,.review-grid { grid-template-columns: 1fr; } .thread { max-height: 26rem; } }
@media(max-width: 620px) {
  .access { grid-template-columns: 1fr; } .access-art { height: 9rem; } .lens { width: 80%; top: -70%; }
  .shell { padding-block: 1.7rem; } .page-head { margin-bottom: 1.25rem; padding-bottom: 1.25rem; }
  .mast-inner { min-height: 3.75rem; } .panel { padding: 1rem; }
  .player-foot { align-items: flex-start; } .meta { margin-top: .7rem; }
}
button:disabled { cursor: progress; opacity: .72; }
.notices:has(.error) { border-color: #825448; background: #33241f; color: #f7ccbd; }
