@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  background: #f8f9fc;
  color: #242534;
  font-family: DM, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a493f1;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -120px;
}
.skip:focus {
  top: 0;
  background: white;
  padding: 12px;
  z-index: 20;
}
a {
  color: #6550c4;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: clamp(29px, 3vw, 40px);
  letter-spacing: -1.6px;
  line-height: 1.13;
  font-weight: 710;
}
h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.65px;
}
h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.ico {
  display: inline-block;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  width: var(--size);
  height: var(--size);
  vertical-align: middle;
}
.shell {
  --plum: #30194b;
  --violet: #6740aa;
  --rim: #e1d8e8;
  --paper: #fffdff;
  --muted: #64556e;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  color: #291c31;
  background: radial-gradient(#d6c9e0 .7px, transparent .9px) 0 0 / 13px 13px, #f7f3fa;
}
.side, .topbar {
  background: linear-gradient(150deg, #44275e, #30194b 55%, #39214e);
}
.side {
  color: #fffaff;
  padding: 28px 16px 18px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.wordmark {
  font-family: DM, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}
.brand { margin: 0 12px 32px; }
.studioLogo { display: inline-flex; align-items: center; min-height: 44px; }
.studioLogo img { display: block; width: 154px; height: auto; }
.navcap {
  color: #d2bfdc;
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 13px 5px;
}
.sideGroup { display: grid; gap: 3px; }
.sideGroup + .sideGroup { border-top: 1px solid #ffffff25; margin-top: 21px; padding-top: 21px; }
.nav {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  text-decoration: none;
  color: #f0e6f6;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 11px;
  white-space: nowrap;
}
.side .nav:hover, .sideLogin:hover { background: #593b6d; color: white; }
.nav.active, .side .nav.active:hover { background: #e9daf8; color: var(--plum); }
.sideBottom { margin-top: auto; border-top: 1px solid #ffffff30; padding-top: 12px; }
.sideLogin {
  border: 0; background: transparent; color: white;
  display: flex; text-align: left; align-items: center; gap: 10px;
  width: 100%; border-radius: 10px; padding: 8px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e7e1fc;
  color: #6948bf;
  width: 37px;
  height: 37px;
  border-radius: 50%;
}
.sideLogin b,
.sideLogin small {
  display: block;
}
.sideLogin b {
  font-size: 14px;
  font-weight: 600;
}
.sideLogin small { font-size: 12px; color: #d2bfdc; }
.sideLogin > .ico { margin-left: auto; }
.work { min-width: 0; }
.topbar {
  min-height: 64px; background: var(--paper); border-bottom: 1px solid var(--rim);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 3vw, 48px); gap: 8px;
}
.overviewBar, .studioTabs, .mobileBrand { display: none; }
.crumb, .topRight { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.crumb { color: var(--muted); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.shell .btn.primary { background: var(--violet); border-color: var(--violet); border-radius: 12px; }
.shell .btn.primary:hover { background: #503080; }
.main {
  max-width: 1440px; margin: auto;
  padding: clamp(22px, 3vw, 46px) clamp(20px, 3vw, 48px) 52px;
}
.shell .panel, .shell .editPanel, .shell .box {
  border-color: var(--rim); border-radius: 16px;
}
.pageHead,
.sectionhead,
.row,
.between,
.modalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pageHead {
  margin-bottom: 22px;
}
.pageHead p,
.sectionhead p {
  color: #646777;
  margin-top: 6px;
}
.btn {
  border: 1px solid #dadbe5;
  border-radius: 8px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  min-height: 39px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  color: #363647;
}
.btn:hover,
.template:hover,
.expRow:hover {
  border-color: #a49ac2;
  background: #faf9ff;
}
.btn.primary {
  background: #7354dc;
  color: #fff;
  border-color: #7354dc;
}
.btn.primary:hover {
  background: #6143ca;
}
.btn.light {
  background: #f2edff;
  border: 0;
  color: #33264e;
}
.btn.link,
.btn.icononly {
  background: transparent;
  border: 0;
  padding: 7px;
  color: #6550bc;
}
.btn.icononly {
  width: 36px;
  color: #767588;
}
.btn.danger {
  color: #b43c4a;
}
.btn.active {
  background: #eeebfd;
  color: #6847d2;
  border-color: #cfc4f8;
}
.studioHero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 188px;
  border: 1px solid #c7afd9; border-radius: 20px;
  background: linear-gradient(100deg, #f0e4fb 20%, #e8d7f5 72%);
  box-shadow: 0 3px 0 #d9c7e5;
}
.studioIntro { width: 62%; padding: clamp(22px, 2.6vw, 36px); }
.studioIntro h1, .studioIntro h2 {
  font-size: clamp(31px, 3.2vw, 46px); color: var(--plum);
  font-weight: 900; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance;
}
.studioIntro p { max-width: 440px; color: #513c62; margin: 8px 0 18px; }
.studioIntro .btn { min-height: 44px; padding-inline: 17px; }
.studioPortrait {
  position: absolute; inset: 0 0 0 58%; z-index: -1;
  background: #ded0e8 url("/art/street-records.webp") center 42% / cover no-repeat;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.studioColumns {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
}
.studioColumns > section { min-width: 0; }
.studioColumns .sectionhead { margin: 0 0 8px; }
.studioColumns .sectionhead a {
  display: inline-flex; align-items: center; min-height: 44px; gap: 4px;
  color: var(--violet); white-space: nowrap;
}
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper); border: 1px solid var(--rim); border-radius: 16px;
  padding: 17px 0; margin: 16px 0 23px;
}
.stat { padding: 0 clamp(12px, 1.7vw, 26px); }
.stat + .stat { border-left: 1px solid var(--rim); }
.stat dt { display: flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat dd { margin: 4px 0 0; color: var(--plum); font-size: 29px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.statIcon { color: var(--violet); display: inline-flex; }
.emptyicon, .smallIcon {
  display: grid; place-items: center; background: #f0e8fa;
  color: #6740aa; border-radius: 11px; width: 40px; height: 40px; flex-shrink: 0;
}
.receivedHelp, .quietInbox { display: flex; gap: 14px; align-items: flex-start; }
.receivedHelp { margin-top: 20px; }
.receivedHelp h2 { font-size: 19px; }
.receivedHelp p, .quietInbox p { font-size: 14px; color: var(--muted); margin-top: 4px; max-width: 60ch; }
#overviewInbox:has(.panel) + .studioHero, .studioHero + #overviewInbox:has(.panel) { margin-top: 20px; }
.sectionhead {
  margin: 26px 0 13px;
}
.sectionhead a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.template {
  background: #fff;
  border: 1px solid #dedfe8;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.template:hover {
  transform: translateY(-2px);
}
.templateArt {
  height: clamp(86px, 7.4vw, 125px);
  overflow: hidden;
}
.templateArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.templateText {
  padding: 14px 17px 16px;
}
.template p,
.empty p,
.muted,
small {
  color: #676a7a;
}
.template p {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
}
.panel,
.box,
.editPanel {
  background: #fff;
  border: 1px solid #e1e2ea;
  border-radius: 12px;
  padding: 22px;
}
.panel + .panel,
.box + .box {
  margin-top: 15px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 23px;
  gap: 9px;
}
.empty strong {
  font-size: 16px;
}
.empty p {
  font-size: 14px;
  margin-top: 3px;
}
.emptyicon {
  background: #f0eef8;
}
.listPanel {
  padding: 0;
  overflow: hidden;
}
.expRow {
  display: flex;
  border: 0;
  border-top: 1px solid #e6e6ed;
  background: white;
  align-items: center;
  padding: 14px 19px;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.expRow:first-child {
  border-top: 0;
}
.expRow .pill {
  margin-left: auto;
}
.expRow small,
.listItem small {
  display: block;
  font-size: 13px;
}
.pill {
  font-size: 12px;
  font-weight: 600;
  background: #eeedf4;
  border-radius: 40px;
  padding: 4px 10px;
  color: #666276;
}
.pill.live {
  background: #e1f3e7;
  color: #286748;
}
.pill.expired,
.pill.closed {
  background: #f8ede7;
  color: #924b35;
}
.toolbar,
.buttons,
.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.toolbar input {
  max-width: 360px;
}
.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-size: 14px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
}
.field input,
.field textarea,
.field select,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
  color: #343445;
  border: 1px solid #cfd0dc;
  border-radius: 7px;
  padding: 10px 11px;
  background: white;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
}
select {
  appearance: none;
  background: white url("/icons/chevron-down.svg") right 10px center/16px
    no-repeat;
  padding-right: 32px !important;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.stack {
  display: grid;
  gap: 14px;
}
.stack > * {
  min-width: 0;
}
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 0.4fr);
  gap: 18px;
  align-items: start;
}
.sidecard {
  position: sticky;
  top: 16px;
}
.stepTile {
  display: flex;
  gap: 10px;
  text-align: left;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f7f7fb;
  width: 100%;
  padding: 9px;
  margin: 7px 0;
}
.stepTile.active {
  border-color: #baa9ee;
  background: #f3eeff;
}
.stepTile span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.stepTile small {
  display: block;
}
.stepTile b {
  font-size: 14px;
}
.divider {
  border: 0;
  border-top: 1px solid #e5e5ed;
  margin: 18px 0;
}
.info {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f0edf9;
  color: #594875;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  margin: 12px 0;
}
.editorImage,
.revealImage {
  display: block;
  max-width: 100%;
  max-height: 380px;
  border-radius: 8px;
  margin: 12px auto;
}
.rules {
  border-top: 1px solid #e2e2eb;
  margin-top: 17px;
  padding-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  margin: 12px 0;
}
.check input {
  width: 18px;
  height: 18px;
}
.listItem {
  border-top: 1px solid #e6e6ef;
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.listItem:first-of-type {
  border-top: 0;
}
.mono {
  font:
    13px ui-monospace,
    monospace;
  word-break: break-all;
}
.wide {
  width: 100%;
}
.qr {
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin: 14px auto;
}
.qrFull:fullscreen {
  display: grid;
  place-items: center;
  background: white;
}
.qrFull:fullscreen img {
  width: min(94vw, 145vh);
  height: auto;
}
.standalone {
  max-width: 570px;
  margin: 8vh auto;
  padding: 18px;
}
.soloBrand {
  color: #30194b;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.solo h1 {
  font-size: 30px;
}
.solo > * + *,
.modalBody > p + * {
  margin-top: 16px;
}
.revealText {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.solo .buttons {
  flex-direction: column;
  align-items: stretch;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  padding: 8px;
  background: #f3f1fa;
  border-radius: 6px;
}
.modalHead {
  padding: 16px 21px;
  border-bottom: 1px solid #e1e1e9;
}
.modalBody {
  padding: 20px;
}
.modalBody > .cards {
  grid-template-columns: 1fr;
  margin: 16px 0;
}
.modalBody .template {
  display: flex;
  align-items: center;
}
.modalBody .templateArt {
  width: 100px;
  height: 83px;
  flex-shrink: 0;
}
.modalBody .templateText {
  padding: 10px;
}
.modalBody p {
  font-size: 15px;
}
dialog {
  border: 1px solid #dddde8;
  border-radius: 15px;
  padding: 0;
  width: min(540px, 94vw);
  max-height: 88dvh;
  color: inherit;
  box-shadow: 0 24px 90px #17152735;
}
dialog::backdrop {
  background: #15132280;
}
#notice {
  position: fixed;
  z-index: 20;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #242437;
  color: white;
  padding: 12px 21px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  max-width: 90%;
  transition: opacity 0.15s;
}
#notice.show {
  opacity: 1;
}
#notice.error {
  background: #853d4d;
}
.mobileMenu {
  display: none;
}
.wrap {
  overflow-wrap: anywhere;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
td,
th {
  padding: 10px;
  border-bottom: 1px solid #e2e2ec;
}
th {
  color: #666575;
}
.hidden {
  display: none !important;
}
@media (max-width: 1120px) {
  .shell { grid-template-columns: 204px minmax(0, 1fr); }
  .side { padding-inline: 12px; }
  .templateText { padding: 12px; }
}
@media (max-width: 960px) {
  .studioColumns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .shell { grid-template-columns: minmax(0, 1fr); position: relative; }
  .side { display: none; }
  .shell.menu .side {
    display: flex; position: absolute; left: auto; right: 10px; top: 56px; width: min(250px, calc(100% - 20px));
    height: auto; max-height: calc(100dvh - 70px); border-radius: 14px; padding: 10px;
    box-shadow: 0 10px 35px #30194b44;
  }
  .side .brand, .sideGroup:first-of-type { display: none; }
  .sideGroup + .sideGroup { margin: 0; padding: 8px 0; border: 0; }
  .sideBottom { padding-top: 6px; }
  .mobileMenu, .mobileBrand { display: inline-flex; }
  .topbar {
    display: flex; min-height: 58px; padding: 0 14px;
    background: #392052; border: 0;
  }
  .topbar .crumb { display: none; }
  .mobileBrand img { width: 112px; }
  .topRight { gap: 5px; }
  .topbar .mobileMenu { color: #fff; width: 44px; min-height: 44px; }
  .shell .topbar .primary { background: #ecddf8; color: var(--plum); border: 0; min-height: 44px; padding-inline: 12px; }
  .shell .topbar .primary:hover { background: white; }
  .studioTabs {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--paper); border-bottom: 1px solid var(--rim); padding: 4px 6px;
  }
  .studioTabs .nav { justify-content: center; color: #594765; padding: 6px 3px; gap: 5px; font-size: 13px; }
  .studioTabs .active { color: var(--plum); }
  .main { padding: 20px 16px 36px; }
  .builder { grid-template-columns: 1fr; }
  .sidecard { position: static; }
}
@media (max-width: 600px) {
  .studioHero { min-height: 160px; border-radius: 16px; }
  .studioIntro { width: 69%; padding: 18px 0 18px 15px; }
  .studioIntro h1, .studioIntro h2 { font-size: clamp(28px, 7vw, 38px); }
  .studioIntro p { font-size: 14px; line-height: 1.4; margin: 7px 0 13px; }
  .studioPortrait { inset-inline-start: 70%; background-position: 85% center; }
  .studioIntro .btn { padding-inline: 11px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; padding: 0; }
  .stat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 6px; padding: 11px 12px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rim); }
  .stat dd { margin: 0; font-size: 22px; }
  .cards, .grid2 { grid-template-columns: 1fr; }
  .template { display: flex; align-items: center; }
  .templateArt { width: 105px; height: 92px; flex-shrink: 0; }
  .pageHead { align-items: flex-start; }
  .pageHead .btn { font-size: 12px; }
  .sectionhead { margin-top: 22px; }
  .panel, .editPanel { padding: 16px; }
  .listPanel { padding: 0; }
  .pageHead p { font-size: 14px; }
  .btn { min-height: 40px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .toolbar { flex-wrap: wrap; }
}
.sponsorLogo {
  display: block;
  max-height: 65px;
  max-width: 180px;
  object-fit: contain;
  margin: 12px 0;
}
.dialogNotice {
  margin: 0 20px 16px;
}
.stepTile span:first-child.ico {
  overflow: visible;
}
.topbar .primary {
  line-height: 1.2;
}

.formatCards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.formatCard {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
}
.formatIcon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 12px;
  color: #514381;
  background: #eeebf7;
}
.formatCard .templateText {
  padding: 0;
}
.formatCard .templateText b,
.formatCard .templateText span {
  display: block;
}
.formatCard .templateText b {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.formatCard .templateText span {
  color: #535568;
}
.guidedEditor {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.guidedEditor h2 {
  margin: 0 0 1rem;
}
.guidedFooter,
.selectionBar,
.manageRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.guidedFooter,
.selectionBar {
  justify-content: space-between;
  padding: 1rem 0;
}
.selectionBar {
  padding: 0.65rem 1rem;
}
.manageRow {
  border-top: 1px solid #e6e6ed;
  padding: 0 0.75rem;
}
.manageRow input,
.selectionBar input {
  width: 1.1rem;
  height: 1.1rem;
}
.manageRow .expRow {
  flex: 1;
  min-width: 0;
  border: 0;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 730px) {
  .guidedEditor,
  .formatCards {
    grid-template-columns: 1fr;
  }
  .manageRow {
    gap: 0.25rem;
  }
  .manageRow .expRow {
    padding: 0.75rem 0.25rem;
  }
}

#joinChat textarea { width: 100%; }

/* The conversation is the scrolling surface. The composer stays in the visual viewport. */
html:has(.roomLayout),body:has(.roomLayout) { overflow:hidden; overscroll-behavior:none; background:#eeeaf3; }
.roomLayout {
  --room-gutter:max(clamp(16px,4dvh,46px),calc((var(--room-height,100dvh) - 900px) / 2));
  --room-side:18px;
  position:fixed; inset:var(--room-top,0px) 0 auto;
  height:100vh; height:var(--room-height,100dvh); max-width:810px; margin-inline:auto;
  padding:calc(env(safe-area-inset-top) + var(--room-gutter)) max(var(--room-side),env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + var(--room-gutter)) max(var(--room-side),env(safe-area-inset-left));
  display:flex; flex-direction:column; color:#32213f;
}
.roomNav { display:flex; align-items:center; gap:8px; padding-block:2px 8px; flex:none; }
.roomNav a,.roomStrip button,.roomInvitation summary,.composeTray button,.chatSend,.roomMenu a { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; min-width:44px; text-decoration:none; }
.roomNav a { padding:0 13px; border-radius:14px; font-size:.87rem; font-weight:700; }
.roomNav .roomBrand { margin-right:auto; padding:0; }
.roomBrand img { display:block; width:107px; height:auto; }
.roomDashboard { background:#fff; color:#45285e; border:1px solid #cdbed8; }
.roomCreate { background:#47265f; color:#fff; }
.roomPanel { min-height:0; min-width:0; flex:1; display:flex; flex-direction:column; border:1px solid #dacfe2; border-radius:22px; background:white; overflow:hidden; box-shadow:0 9px 32px #3d254110; }
.roomHeader { display:flex; align-items:center; gap:10px; flex:none; min-height:56px; padding:4px 10px 4px 18px; background:linear-gradient(105deg,#352044,#56356e); color:white; }
.roomAvatar { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:12px; background:#ddc6ff; color:#422456; }
.roomHeader h1 { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:1.18rem; letter-spacing:-.045em; }
.roomExpiry { margin-left:auto; display:flex; align-items:center; gap:7px; color:white; --dial-ink:#e5d4ff; font-variant-numeric:tabular-nums; }
.clockDial { display:grid; place-items:center; position:relative; width:32px; height:32px; flex:none; border-radius:50%; background:conic-gradient(var(--dial-ink) var(--time-left,100%),#73647f 0); }
.clockDial::before { content:""; position:absolute; inset:3px; background:#4d315e; border-radius:inherit; }
.clockDial .ico { position:relative; color:var(--dial-ink); }
.clockFace { display:grid; gap:1px; }
.clockLabel { color:var(--dial-ink); font-size:.69rem; line-height:1.15; }
.clockDigits { font-weight:700; font-size:.87rem; line-height:1.2; white-space:nowrap; }
.roomExpiry[data-phase="closing"] { --dial-ink:#ffdf99; }
.roomExpiry[data-phase="minute"] { --dial-ink:#ffc3a0; }
#roomOptions,#dismissTime { border:0; background:transparent; color:inherit; min-width:44px; height:44px; border-radius:12px; display:grid; place-items:center; padding:0; }
.roomMenu,#extensionPanel { display:grid; gap:10px; }
#extensionPanel small:empty { display:none; }
.roomStrip { flex:none; display:flex; gap:8px; align-items:flex-start; padding-inline:18px 12px; border-bottom:1px solid #e5dce9; background:#fff; }
.roomInvitation { flex:1; min-width:0; margin:0; border:0; padding:0; }
.roomInvitation summary { width:fit-content; padding:0; font-size:.83rem; color:#594565; font-weight:650; list-style:none; cursor:pointer; }
.roomInvitation summary::-webkit-details-marker { display:none; }
.roomInvitation summary { max-width:100%; }
.stripCaption { font-weight:400; color:#73627c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.roomInvitation[open] .stripCaption { display:none; }
.roomInvitePhoto { display:block; max-width:100%; max-height:12rem; object-fit:contain; }
.roomHistory .roomInvitePhoto { margin:0 auto .65rem; max-height:min(12rem,24vh); }
.roomInvitation[open] summary .ico:last-child { transform:rotate(180deg); }
.roomInvitation>div { max-height:min(14vh,7rem); overflow:auto; padding:0 0 8px; color:#4e395b; font-size:.88rem; overflow-wrap:anywhere; white-space:pre-wrap; }
#extensionOptions { margin-left:auto; border:0; background:transparent; color:#582b76; padding:0; font-size:.84rem; font-weight:700; white-space:nowrap; border-radius:12px; }
.extendChip { display:inline-flex; align-items:center; gap:6px; position:relative; isolation:isolate; overflow:hidden; padding:5px 9px; border:1px solid #dac2eb; border-radius:20px; background:linear-gradient(115deg,#f6edfc,#ebdbf5); line-height:1.3; }
#extensionOptions:focus-visible .extendChip,#extensionOptions:hover .extendChip { border-color:#ac85c5; }
#fixedChatTime { flex:none; align-self:center; margin-left:auto; color:#66526f; font-size:.78rem; }
.timeRequest,.addedTime { display:flex; align-items:center; gap:10px; flex:none; color:#513068; background:#f1e6fc; min-height:44px; padding:0 8px 0 16px; border-bottom:1px solid #decce9; font-size:.86rem; }
.timeRequest strong { flex:1; }
.requestDial { display:grid; place-items:center; }
.addedTime { justify-content:center; background:#e3f5e9; color:#28503c; }
.historyFrame { position:relative; flex:1; min-height:0; display:flex; background:#f9f6fb; }
.roomHistory { flex:1; min-height:0; min-width:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#bbaec7 transparent; padding:16px clamp(12px,3vw,24px); }
.roomHistory:focus-visible { outline-offset:-3px; }
.chatLog { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.chatDay { display:flex; align-items:center; gap:10px; color:#716079; font-size:.73rem; font-weight:600; }
.chatDay::before,.chatDay::after { content:""; flex:1; height:1px; background:#e6deeb; }
.chatMessage { justify-self:start; max-width:min(84%,32rem); min-width:0; }
.chatMessage.mine { justify-self:end; max-width:min(93%,34rem); }
.messageLine { display:flex; align-items:center; min-width:0; }
.chatBubble { min-width:0; padding:9px 13px; border:1px solid #e1d6e8; border-radius:17px 17px 17px 5px; color:#302039; background:#fff; overflow-wrap:anywhere; }
.mine .chatBubble { margin-left:auto; background:#583675; border-color:#583675; color:#fff; border-radius:17px 17px 5px 17px; }
.chatBubble p { white-space:pre-wrap; line-height:1.42; margin:0; }
.chatBubble a { color:#603486; }
.mine .chatBubble a { color:#ffefbf; }
.chatBubble p a { display:inline-block; align-content:center; min-width:44px; min-height:44px; max-width:100%; }
body:has(.roomLayout) dialog :is(button,a.btn) { min-height:44px; min-width:44px; }
.chatMessage small { display:block; color:#6a5974; font-size:.71rem; padding:3px 3px 0; }
.chatMessage.mine small { text-align:right; }
.editMessage { align-self:center; display:grid; place-items:center; min-width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; color:#725c80; }
.emojiMessage .chatBubble { padding:0 3px; color:#352542; background:none; border:0; }
.emojiMessage .chatBubble p { font-size:2.35rem; line-height:1.25; }
.chatBubble:has(.chatPhoto) { padding:4px; }
.chatBubble:has(.chatPhoto) p { padding:4px 8px; }
.chatPhoto { display:block; min-width:44px; min-height:44px; max-width:100%; padding:0; border:0; border-radius:12px; background:transparent; cursor:zoom-in; }
.chatPhoto img { display:block; border-radius:inherit; width:100%; height:auto; }
.chatFullPhoto { display:block; max-width:100%; max-height:72vh; margin:0 auto; object-fit:contain; }
dialog:has(.chatFullPhoto) { width:fit-content; max-width:min(92vw,1000px); }
#emptyChat { text-align:center; padding:2rem .75rem; color:#6a5974; }
#newMessages { position:absolute; inset:auto auto 9px 50%; transform:translateX(-50%); display:flex; align-items:center; gap:6px; min-height:44px; white-space:nowrap; padding:0 14px; border:1px solid #a88ab9; border-radius:24px; background:#fff; color:#55326d; box-shadow:0 3px 12px #3b244626; font-weight:650; }
#typingNotice { display:flex; align-items:center; gap:8px; flex:none; padding:3px 16px; color:#64506e; font-size:.78rem; background:#f9f6fb; }
.typingDots { display:inline-flex; gap:3px; }
.typingDots i { width:4px; height:4px; border-radius:50%; background:#795e91; }
#chatCompose { position:relative; flex:none; margin:0; padding:7px 10px; border-top:1px solid #e6dce9; background:#fff; }
.composeBar,.composeInput,.photoDraft { display:flex; align-items:flex-end; gap:5px; min-width:0; }
.composeInput { flex:1; align-items:flex-end; border:1px solid #d9cbe3; border-radius:23px; background:#f6f2f9; }
.composeInput:focus-within { border-color:#966fae; }
#roomMessage { display:block; min-width:0; flex:1; min-height:44px; max-height:clamp(44px,calc(var(--room-height,100dvh) / 5),106px); border:0; resize:none; background:transparent; border-radius:22px; padding:10px 0 10px 13px; line-height:24px; font-size:16px; color:#302039; }
#roomMessage::placeholder { color:#726079; }
#roomMessage:focus-visible { outline-offset:-2px; }
.composeTool,.chatSend { display:grid; place-items:center; border:0; min-width:44px; height:44px; padding:0; border-radius:50%; color:#633e7d; background:transparent; }
#addAttachment { position:relative; background:#ede4f4; }
#addAttachment[data-undiscovered]::after,#sendChatGift::after,.extendChip::after {
  content:""; width:14px; height:14px; flex:none; pointer-events:none;
  background:#8141a2; mask:url("/icons/sparkles.svg") center/contain no-repeat;
}
#addAttachment[data-undiscovered]::after { position:absolute; top:2px; right:2px; }
#sendChatGift:enabled { color:#593171; background:#eee0f7; }
#sendChatGift:disabled::after { background:#8a7895; }
.chatSend { background:#593475; color:white; box-shadow:0 2px 5px #48265f24; }
.composeTray { position:absolute; bottom:calc(100% + 3px); left:8px; right:8px; z-index:3; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:10px; max-height:min(48dvh,290px); overflow:auto; background:white; border:1px solid #d6c5e0; box-shadow:0 5px 22px #33213f25; border-radius:18px; }
.composeTray button,#retryMessage { background:#f5eff9; border:0; border-radius:11px; color:#553669; font-weight:600; font-size:.86rem; }
.composeTray p,.composeTray small { grid-column:1/-1; color:#66526f; font-size:.8rem; }
.composeTray p { margin-top:4px; }
.composeTray button:disabled { color:#6d6075; opacity:1; background:#f4f1f5; cursor:default; }
.emojiChoices { left:auto; width:min(298px,calc(100% - 16px)); grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; padding:6px; }
.emojiChoices button { min-width:44px; font-size:1.35rem; background:none; }
.emojiMessage .chatBubble p,.emojiChoices button { font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",system-ui,sans-serif; }
.photoDraft { align-items:center; gap:8px; width:fit-content; max-width:100%; background:#f4eff8; border-radius:11px; font-size:.82rem; overflow-wrap:anywhere; }
.photoDraft img { width:44px; height:44px; object-fit:cover; border-radius:8px; }
#composeFeedback { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:.84rem; color:#503861; }
#digitHint { color:#503861; font-size:.8rem; }
#retryMessage { min-width:44px; min-height:44px; }
#chatStatus { color:#714c2c; background:#fff2db; font-size:.82rem; }
#chatStatus:not(:empty) { padding:4px 12px; }
.roomLayout [hidden] { display:none !important; }
.roomLayout :is(a,button,summary):focus-visible { outline-color:#9871b6; outline-offset:-3px; }
@media (max-width:620px) {
  .roomLayout { --room-gutter:clamp(0px,calc(var(--room-height,100dvh) * .065 - 29px),22px); --room-side:6px; }
  .roomPanel { border-radius:16px; }
  .roomNav { margin:0; gap:5px; padding:3px 8px; }
  .roomNav a { padding-inline:9px; font-size:.8rem; }
  .roomNav .roomBrand { padding:0; }
  .roomBrand img { width:81px; }
  .roomHeader { padding-inline:10px 2px; }
}
@media (max-width:350px) {
  .roomNav a { padding-inline:6px; }
  .roomNav .roomBrand img { width:65px; }
  .roomNav .roomCreate .ico { display:none; }
}
.roomLayout[data-short] { --room-gutter:0px; }
.roomLayout[data-short] .roomNav,.roomLayout[data-short] .roomHeader { padding-block:0; min-height:44px; }
.roomLayout[data-short] .roomHistory { padding-block:6px; }
.roomLayout[data-short] #chatCompose { padding-block:3px; }
.roomLayout[data-short]:has(#roomMessage:focus) .roomStrip { display:none; }
@media (prefers-reduced-motion:no-preference) {
  #addAttachment[data-undiscovered]::after,#sendChatGift::after,.extendChip::after { animation:chatTwinkle 1050ms ease-in-out 2; }
  .extendChip::after { animation-delay:450ms; }
  .extendChip::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:linear-gradient(110deg,transparent 30%,#ffffff80 50%,transparent 70%);
    transform:translateX(-110%); animation:extendSheen 950ms ease-out 450ms; }
  @keyframes chatTwinkle { 0%,100% { opacity:1; transform:none; } 28% { opacity:.54; transform:scale(.78) rotate(-10deg); } 60% { opacity:1; transform:scale(1.14) rotate(6deg); } }
  @keyframes extendSheen { to { transform:translateX(110%); } }
  .roomLayout button:not(#newMessages),.roomNav a { transition:transform 160ms ease; }
  .roomLayout button:enabled:active:not(#newMessages),.roomNav a:active { transform:scale(.96); }
  .chatMessage.arriving .chatBubble { animation:messageIn 190ms ease-out both; }
  .emojiMessage.arriving .chatBubble { animation:emojiIn 230ms ease-out both; }
  .typingDots i { animation:typingDots 750ms ease-in-out infinite alternate; }
  .typingDots i:nth-child(2) { animation-delay:140ms; }
  .typingDots i:nth-child(3) { animation-delay:280ms; }
  @keyframes messageIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
  @keyframes emojiIn { 0% { opacity:0; transform:translateY(5px) scale(.85); } 65% { opacity:1; transform:translateY(-2px) scale(1.06); } 100% { transform:none; } }
  @keyframes typingDots { to { transform:translateY(-3px); } }
}

.inviteDecisions { display: flex; flex-flow: column; align-items: stretch; gap: 9px; margin-top: 16px; }

.inboxPanel { padding: 0; overflow: hidden; }
#chatGroups > .panel + .panel { margin-top: 0; }
.inboxPanel h2 {
  display: flex; align-items: center; gap: 8px; background: #f8f3fc; color: #503662;
  font-size: 15px; letter-spacing: -.01em; padding: 13px 16px; border-bottom: 1px solid var(--rim);
}
.inboxPanel > p, .inboxPanel .listItem { display: block; padding: 14px 16px; }
.inboxPanel > p { color: var(--muted); font-size: 14px; }
.inboxRow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px; align-items: start; padding: 13px 16px; text-decoration: none; color: var(--plum);
}
.inboxRow + .inboxRow { border-top: 1px solid var(--rim); }
.inboxRow:hover, .inboxPanel .listItem:hover { background: #faf5ff; }
.inboxIdentity, .inboxPreview { min-width: 0; overflow-wrap: anywhere; }
.inboxIdentity b, .inboxIdentity > span { display: block; }
.inboxIdentity > span, .inboxPreview { color: var(--muted); font-size: 13px; }
.inboxMeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.inboxMeta strong { border-radius: 20px; padding: 2px 8px; font-size: 12px; color: #553085; background: #efdffb; }
.inboxCountdown { white-space: nowrap; font-variant-numeric: tabular-nums; color: #594765; font-size: 12px; }
.inboxPreview, .inboxRow .inboxTimeRequest { grid-column: 1 / -1; }
.inboxRow:focus-visible, .inboxPanel .listItem:focus-visible, .expRow:focus-visible { outline-offset: -4px; }
.expRow > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }


.ageChoices { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; border: 0; margin: .5rem 0; }
.ageChoices legend { font-weight: 700; margin-bottom: .6rem; }
.ageOption { display: flex; align-items: center; gap: .4rem; border: 1px solid #d6ccde; border-radius: 8px; padding: .6rem .8rem; cursor: pointer; }
#minorBadges { padding: .4rem 1rem; color: #593956; background: #f8edf5; font-weight: 700; font-size: .84rem; }
.chatBubble:has(.chatGift) { padding: 0; overflow: hidden; border-color: #cdb9dd; }
.chatGift { padding: 14px; display: grid; gap: 12px; background: #fcf8ff; color: #382447; }
.giftCardHead { display: flex; align-items: center; gap: 10px; }
.giftIcon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: #613778; background: #ecdff3; }
.giftCardHead strong, .giftCardHead div > span { display: block; }
.giftCardHead div > span { color: #684f73; font-size: .8rem; }
.chatBubble .giftOpen { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem .85rem; background: #513266; color: white; border-radius: 8px; text-decoration: none; font-weight: 650; }
.giftSteps { padding-left: 1.4rem; margin: 0 0 1rem; }
.giftSteps li + li { margin-top: .5rem; }
.giftInfo { font-size: .9rem; color: #604e67; }
.ageOption input { width: 1.1rem; height: 1.1rem; appearance: none; display: grid; place-content: center; padding: 0; margin: 0; border: 1px solid #76647e; border-radius: 4px; background: white; }
.ageOption input:checked { background: #593c75; border-color: #593c75; }
.ageOption input:checked::after { content: ""; width: .52rem; height: .27rem; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
@media (forced-colors: active) { .ageOption input { appearance: auto; } }
.inboxTimeRequest { display:flex; align-items:center; gap:6px; color:#593773; font-weight:650; }
@media (prefers-reduced-motion: no-preference) {
  .addedTime .ico { animation: extensionSparkle .85s ease-out; }
  .roomPanel:has(.addedTime:not([hidden])) .clockDial { animation: extensionClock 1s ease-out; }
  @keyframes extensionSparkle { 0% { transform: scale(.6) rotate(-20deg); } 55% { transform: scale(1.2) rotate(9deg); } }
  @keyframes extensionClock { 45% { box-shadow: 0 0 0 6px #e2c5ff66; } }
}

.ownUploads { max-height:min(16dvh,90px); overflow-y:auto; padding: .3rem .75rem; color: #48374f; font-size: .9rem; border-top: 1px solid #e3dce9; }
.ownUploads .btn,.chatGift .giftOpen,.roomLayout .chatBubble a[download],dialog:has(#extensionPanel, .roomMenu) button { min-height:44px; min-width:44px; }
.roomLayout .chatBubble a[download] { display:inline-flex; align-items:center; }
@media (max-width:850px) { .studioTabs { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width:480px) { .studioTabs .nav { flex-direction: column; gap: 2px; font-size: .77rem; } }
.roomAvatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
#roomTitle .moodBadge { display: flex; width: fit-content; font-size:.74rem; letter-spacing:0; }

.packArt {display:flex;gap:.55rem;margin:.6rem 0}
.packArt img {width:3rem;height:3rem;border-radius:30%}
#accountPurchases h3 {margin:1rem 0 .35rem}
