:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d20;
  --muted: #5e5e65;
  --line: #dedee3;
  --accent: #8c2940;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink) }
.landing { color-scheme: dark; --bg: #09090b; --ink: #fafafa; --surface: #161619; --muted: #b7b7bf; --line: #303034; --accent: #fff }
header, main, footer { width: min(1104px, calc(100% - 4rem)); margin-inline: auto }
header, footer, .nav, .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem }
header { min-height: 4.5rem; border-bottom: 1px solid var(--line) }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.4rem; font-weight: 720; letter-spacing: -.065em; color: var(--ink); text-decoration: none }
.brand-mark { display: inline-block; position: relative; width: 1.4rem; height: 1.08rem; border-radius: .24rem; background: #d45364; transform: rotate(-8deg) }
.brand-mark::after { content: ""; position: absolute; inset: .12rem -.12rem -.12rem .12rem; background: var(--ink); border: 2px solid var(--bg); border-radius: .25rem; transform: rotate(8deg) }
.nav, footer, small { color: var(--muted); font-size: .825rem }
.nav { gap: 1.3rem }
.plex-link { display: inline-flex; align-items: center; gap: .32rem; min-height: 44px; color: var(--ink); text-decoration: none }
.plex-link:hover { text-decoration: underline }
main { flex: 1; padding-block: clamp(1.5rem, 4vw, 3.5rem) }
.landing main:has(.hero) { display: grid; align-content: center; padding-block: 1.2rem }
.hero {
  isolation: isolate; position: relative; overflow: hidden; text-align: center; border-radius: 1.5rem;
  min-height: clamp(31rem, 72svh, 49rem); background: #000; color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/static/auditorium.jpg") center bottom / cover no-repeat;
}
.hero-copy { padding: clamp(3rem, 6vw, 5.25rem) 1rem 0; margin-inline: auto }
h1, h2, h3, p { margin: 0 }
h1, h2 { text-wrap: balance; line-height: 1.05; font-weight: 650; overflow-wrap: anywhere }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.75rem); letter-spacing: -.07em }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.05em; margin-bottom: 1rem }
.welcome { font-size: clamp(2.35rem, 5vw, 4rem); margin: .35rem 0 2rem }
p { color: var(--muted); margin-bottom: 1rem }
.lead { font-size: clamp(1rem, 1.65vw, 1.25rem); letter-spacing: -.025em; line-height: 1.4; color: #c9c9cf; margin: 1rem auto 1.45rem }
.columns { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.35fr); gap: 1.25rem; align-items: start }
section { min-width: 0; border-radius: 1.35rem; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.35rem, 3vw, 2.25rem); margin-bottom: 1.25rem }
section > :last-child { margin-bottom: 0 }
.landing section { max-width: 44rem; margin: clamp(2rem, 8vh, 6rem) auto; }
.landing section h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem }
.membership { --ink: #fff; --muted: #f3dee3; --line: #b07986; --accent: #fff; color: var(--ink); border: 0; background: linear-gradient(135deg,#71374a,#46222f 55%,#312029) }
.pass-date { border-block: 1px solid var(--line); padding-block: 1rem; margin-block: 1.25rem }
.pass-date span { font-size: .875rem }
.pass-date time { display: block; color: var(--ink); font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 560; letter-spacing: -.055em; font-variant-numeric: tabular-nums }
.price { color: var(--ink) }
.billing-note { border-left: 2px solid var(--line); padding-left: .75rem }
.membership a { display: inline-flex; align-items: center; min-height: 44px }
.membership form + p { margin-top: 1rem }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; color: var(--ink); padding: .85rem 1.1rem }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%) }
.skip:focus { top: .5rem; left: .5rem; z-index: 5; width: auto; height: auto; padding: .6rem 1rem; background: var(--surface); clip-path: none }
.request-chat h3 { border-top: 1px solid var(--line); margin: 1.65rem 0 .85rem; padding-top: 1.1rem; font-size: 1rem }
.support { display: flex; align-items: baseline; gap: .8rem 1.5rem; flex-wrap: wrap }
.support h2, .support p { margin: 0 }
.support h2 { font-size: 1.4rem }
.support a { margin-left: auto }
.row { flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere }
.row small, label { display: block }
.row form { max-width: 100% }
label { font-size: .9rem; font-weight: 600 }
a { color: var(--accent); text-underline-offset: .2em }
button, select, input, textarea { max-width: 100%; font: inherit; border: 1px solid #b5b5be; border-radius: .65rem; padding: .65rem .95rem; background: var(--surface); color: var(--ink) }
button { min-height: 44px; cursor: pointer; font-weight: 550; line-height: 1.25; border-radius: 3rem }
button:hover { filter: brightness(.95) }
.primary, .membership button { background: var(--ink); color: var(--surface); border: 0; padding: .8rem 1.35rem }
.membership button { color: #3d202b }
.crypto-payment, .crypto-status { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: .5rem }
.crypto-status { padding-top: 1rem }
.crypto-status p { margin: .35rem 0 0 }
.crypto-payment summary { cursor: pointer; min-height: 44px; padding-block: .65rem; font-weight: 600 }
.crypto-payment > p, .crypto-method > p { font-size: .93rem; margin: .4rem 0 .85rem }
.crypto-method { border-top: 1px solid var(--line) }
.crypto-method summary span { margin-inline-start: .4rem; font-size: .9rem; font-weight: 400; color: var(--muted) }
.crypto-destination { padding: .85rem; background: #301e27; border-radius: .7rem; margin: .75rem 0 1rem }
.crypto-destination code, .crypto-review code { overflow-wrap: anywhere; user-select: all; font-size: .87rem }
.crypto-destination code { display: block; margin-top: .3rem }
.crypto-destination button { margin-top: .5rem; padding: .4rem .8rem; font-size: .875rem }
.crypto-destination small { margin-inline-start: .5rem }
.crypto-method input[name="txid"] { background: white; color: #211d20; font-size: 1rem }
.crypto-method form { margin-bottom: 1rem }
.crypto-review > div { flex: 1 1 19rem; min-width: 0 }
.crypto-review dl { margin-bottom: 0 }
.crypto-review dt { font-size: .82rem; color: var(--muted) }
.crypto-review dd { margin: 0 0 .45rem }
.crypto-review label { font-weight: 400; margin-bottom: .7rem }
.crypto-review input[type="checkbox"] { display: inline-block; width: 1.1em; height: 1.1em; margin: 0 .25em 0 0; vertical-align: text-bottom }
.crypto-review form + form { margin-top: .5rem }
.login-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: #f7f7fa; color: #17171a; min-width: 12.25rem }
.plex-mark { width: .7rem; height: 1rem; background: #aa7000; clip-path: polygon(0 0,55% 0,100% 50%,55% 100%,0 100%,45% 50%) }
input, textarea { display: block; width: 100%; margin: .45rem 0 1rem; background: var(--bg) }
input[type=hidden] { display: none }
textarea { resize: vertical; min-height: 6rem }
.request-guide { font-size: .94rem; margin: .3rem 0 .6rem }
.chat-feedback:empty, #request-choices:empty { display: none }
.chat-feedback { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 1rem 1rem 1rem .3rem; background: var(--bg); color: var(--ink); overflow-wrap: anywhere }
#request-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem }
#request-choices button { text-align: left; color: var(--accent) }
#request-choices form { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; width: 100% }
#request-choices a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem }
.chat-scroll { display: flex; flex-direction: column-reverse; max-height: min(52svh,32rem); overflow-y: auto; padding: .3rem; margin-bottom: 1rem }
.chat-messages, .exchange { display: grid; gap: .65rem }
.exchange + .exchange { margin-top: .85rem }
.message { max-width: 94%; padding: .75rem 1rem; overflow-wrap: anywhere }
.outgoing { justify-self: end; border-radius: 1.15rem 1.15rem .35rem 1.15rem; background: #f5e7eb }
.incoming { justify-self: start; border-radius: 1.15rem 1.15rem 1.15rem .35rem; background: var(--bg) }
.message small { display: block; margin-bottom: .35rem }
.message p { color: var(--ink); white-space: pre-line; margin: 0 }
.message a { display: inline-block }
.message p + a { margin-top: .4rem }
.request-state { color: var(--ink); font-weight: 650 }
.verification { margin-top: .65rem; display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .85rem }
.verification small { margin: 0 }
.verification a { display: inline-flex; align-items: center; gap: .32em; min-height: 44px; font-weight: 600 }
.inbox-group { color: var(--accent); font-size: .92rem; margin: 1.3rem 0 .45rem }
.inbox-entry { flex: 1 1 26rem; min-width: 0 }
.inbox-entry > a { font-size: 1.1rem; font-weight: 600 }
.inbox-entry p { color: var(--ink); margin: .35rem 0 0 }
.inbox-row form { display: flex; flex-wrap: wrap; gap: .4rem }
button:disabled { cursor: wait }
button[data-busy]::before { content: ""; display: inline-block; width: .85em; height: .85em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.1em }
button[data-busy] .plex-mark { display: none }
#request-form button[data-busy]::before { margin-right: .55em }
footer { min-height: 4.3rem; border-top: 1px solid var(--line) }
:focus-visible { outline: 3px solid #4586d6; outline-offset: 3px }
.membership-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; margin-bottom: .65rem }
.membership-heading h2 { margin: 0; font-size: 1.4rem }
.plan-price { color: var(--muted); font-size: .85rem; white-space: nowrap }
.membership .pass-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .55rem; border: 0; padding: 0; margin: .5rem 0 }
.membership .pass-date time { font-size: 1.25rem; letter-spacing: -.035em }
.membership .renewal-state, .membership .payment-alert { margin: .4rem 0; font-size: .9rem }
.payment-alert strong { display: block; color: var(--ink) }
.manage-membership { border-top: 1px solid var(--line); margin-top: .75rem }
.manage-membership > summary { cursor: pointer; min-height: 44px; padding-block: .65rem; font-weight: 600 }
.manage-membership[open] > summary { margin-bottom: .4rem }
.owner-shortcuts { display: flex; flex-wrap: wrap; gap: 0 1.1rem }
.owner-shortcuts a { font-size: .925rem }
.owner-panel { padding-block: .5rem }
.owner-panel > details > summary { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; min-height: 48px; padding-block: .4rem; list-style: none; cursor: pointer }
.owner-panel > details > summary::-webkit-details-marker { display: none }
.owner-panel > details > summary::after { content: ""; width: .48rem; height: .48rem; margin: 0 .2rem 0 auto; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) }
.owner-panel > details[open] > summary::after { transform: rotate(225deg) }
.owner-panel > details > summary h2 { margin: 0; font-size: 1.2rem }
.owner-panel .panel-count { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums }
.owner-panel > details[open] { padding-bottom: .65rem }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: appear .55s ease-out both }
  .hero::before { animation: settle 1.15s ease-out both }
  button { transition: transform .18s, filter .18s }
  button:active:not(:disabled) { transform: scale(.975) }
  button[data-busy]::before { animation: spin .8s linear infinite }
  @keyframes appear { from { transform: translateY(7px) } }
  @keyframes settle { from { transform: scale(1.025); opacity: .65 } }
  @keyframes spin { to { transform: rotate(1turn) } }
}
@media (max-width: 720px) {
  header, main, footer { width: calc(100% - 2rem) }
  header { min-height: 4rem }
  .columns { display: block }
  .nav { gap: .8rem }
  .hero { min-height: clamp(30rem,72svh,42rem); border-radius: 1.1rem }
  .hero-copy { padding-top: clamp(2rem,8svh,4.25rem) }
  .hero::before { background-size: auto 85% }
  .membership .primary { width: 100% }
  .support a { margin-left: 0 }
  footer { min-height: 3.5rem }
}
@media (max-width: 390px) {
  .wide-break { display: none }
  .hero h1 { font-size: 2.6rem }
}

#conversation:not(:empty) { display: grid; gap: .6rem; max-height: min(48svh, 28rem); overflow-y: auto; overscroll-behavior: contain; padding: .3rem; margin: 1rem 0 }
#conversation .message { min-width: 0 }
#conversation:empty { display: none }
#chat-earlier { min-height: 44px; padding: .35rem 0; border: 0; background: transparent; color: var(--accent); font-size: .85rem }
#conversation .message[hidden], #chat-earlier[hidden] { display: none }
#request-choices:not(:empty) { margin-bottom: 1rem }

.chat-compose { display: flex; align-items: flex-end; gap: .4rem; border: 1px solid var(--line); border-radius: 1.6rem; background: var(--bg); padding: .25rem }
.chat-compose:focus-within { outline: 2px solid var(--accent); outline-offset: 2px }
.chat-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 7rem; margin: 0; padding: .65rem .75rem; font-size: 1rem; line-height: 1.45; resize: none; field-sizing: content; background: transparent; border: 0; outline: none }
.chat-compose .send-chat { flex: 0 0 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 1.55rem; line-height: 1; background: var(--accent); color: white }
.send-chat[data-busy] > span:first-child { display: none }
#request-form .send-chat[data-busy]::before { margin: 0 }
#conversation .message { max-width: 90%; padding: .55rem .85rem; line-height: 1.45 }
#conversation .outgoing { background: #6c3348; color: white }
#conversation .outgoing p { color: inherit }
#conversation .incoming a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600 }
#request-choices form { gap: 0; flex-wrap: nowrap; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem }
#request-choices form button { display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 0; border: none; border-radius: 0; padding: .45rem .65rem; color: var(--ink); overflow-wrap: anywhere }
#request-choices form button small { display: block; font-weight: 400 }
.choice-number { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums }
#request-choices form a { flex: none; padding: 0 .65rem; font-size: .8rem }
.request-archive { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .5rem }
.request-archive summary { cursor: pointer; padding: .75rem 0; font-size: .9rem; font-weight: 600 }
.request-archive summary span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .4rem }
.request-archive .exchange { border-top: 1px solid var(--line); padding: .75rem 0; gap: .2rem }
.request-archive .incoming { background: transparent }
.request-archive .incoming p { margin: .25rem 0 }
.request-group { border-top: 1px solid var(--line) }
.request-group > summary { min-height: 44px; padding: .65rem 0; color: var(--ink); cursor: pointer; font-size: .9rem; font-weight: 630 }
.request-count { margin-left: .35rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 450 }
.request-group .exchange, .request-group .inbox-row { display: block; margin: 0; padding: 0; border: 0 }
.request-record { border-top: 1px solid var(--line); margin-left: .75rem }
.request-record > summary { display: grid; grid-template-columns: minmax(0,1fr) auto .46rem; align-items: center; gap: .7rem; padding: .55rem .25rem .55rem 0; min-height: 44px; cursor: pointer }
.request-record > summary::-webkit-details-marker { display: none }
.request-record > summary::after { content: ""; width: .38rem; height: .38rem; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg) }
.request-record[open] > summary::after { transform: rotate(135deg) }
.record-title { font-weight: 580; overflow-wrap: anywhere }
.record-state { color: var(--muted); font-size: .8rem }
.record-details { padding: .1rem 0 .75rem }
.record-details p { margin: .2rem 0 }
.record-details a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem }
.record-details .verification { margin-top: 0 }
.record-details form { margin-top: .5rem }
#request-history h3 { margin: 1rem 0 .3rem; border: 0; padding: 0 }
