/* Unleashed Studio. The site's palette and type; a dashboard that is clean, simple and quiet. */
:root {
  --ink: #06060b; --ink-2: #0b0b14; --panel: #10101b; --panel-2: #151526; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --ice: #eef4ff; --txt: #dce3f0; --muted: #8b93a7; --mag: #e8107f; --hot: #ff2e9a; --blu: #1f6cff; --cyan: #27d3ff; --ok: #39e58c; --warn: #ffb547;
  --font-d: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif; --font-b: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-m: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--txt); font: 500 15px/1.5 var(--font-b); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 10% 0%, rgba(232, 16, 127, 0.16), transparent 70%), radial-gradient(50% 50% at 95% 100%, rgba(31, 108, 255, 0.16), transparent 70%); }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-d); font-weight: 900; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--mag); color: #fff; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(14px, 3vw, 28px); height: 58px; background: rgba(6, 6, 11, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.top__brand b { font: italic 900 22px/1 var(--font-d); letter-spacing: 0.02em; color: var(--ice); text-transform: uppercase; }
.top__brand b span { color: var(--hot); }
.top__brand small { font: 700 11px/1 var(--font-m); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.top__right { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--font-m); color: var(--muted); }
.top__right .who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; color: var(--ice); font: 700 11px/1 var(--font-m); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.btn-ghost:hover { border-color: var(--cyan); }
@media (max-width: 560px) { .top__right .who { display: none; } }

/* the three columns */
.studio { display: grid; grid-template-columns: 340px minmax(0, 1fr) 340px; gap: 18px; padding: 18px clamp(14px, 3vw, 28px) 40px; max-width: 1600px; margin: 0 auto; align-items: start; }
@media (max-width: 1240px) { .studio { grid-template-columns: 320px minmax(0, 1fr); } .studio > .col--right { grid-column: 1 / -1; } }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } .studio > .col--right { grid-column: auto; } }
.col { display: grid; gap: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 18px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card__head h2 { font-size: 22px; color: var(--ice); }
.card__head small, .hint { font: 500 11px/1.4 var(--font-m); letter-spacing: 0.06em; color: var(--muted); }
.hint { display: block; margin-top: 8px; }
.card__head .ok { color: var(--ok); }

/* form fields */
.field { display: grid; gap: 5px; margin-bottom: 10px; }
.field > span { font: 700 11px/1 var(--font-m); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--ice); outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(39, 211, 255, 0.15); }
.input::placeholder { color: #5e6579; }
select.input { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.row { display: flex; gap: 8px; align-items: center; }
.row .input { flex: 1; min-width: 0; }

.btn { border: 0; border-radius: 10px; padding: 11px 16px; color: #fff; font: 900 14px/1 var(--font-d); font-style: italic; letter-spacing: 0.08em; text-transform: uppercase; background: linear-gradient(90deg, var(--hot), var(--mag) 50%, var(--blu)); background-size: 200% 100%; cursor: pointer; transition: background-position .3s ease, transform .15s ease, opacity .15s ease; white-space: nowrap; }
.btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--sm { padding: 9px 12px; font-size: 13px; }
.btn--line { background: transparent; border: 1px solid var(--line-2); color: var(--ice); font-style: normal; }
.btn--line:hover { border-color: var(--cyan); background: rgba(39, 211, 255, 0.06); }
.btn--danger:hover { border-color: var(--hot); color: var(--hot); }
.icon-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; font-size: 16px; line-height: 1; }
.icon-btn:hover { color: var(--hot); border-color: var(--line-2); }

.msg { margin-top: 8px; min-height: 1.3em; font: 500 12px/1.4 var(--font-m); color: var(--muted); }
.msg.is-ok { color: var(--ok); }
.msg.is-err { color: #ff8a9b; }

/* the library */
.lib { display: grid; gap: 12px; }
.lib__sec { border-top: 1px solid var(--line); padding-top: 10px; }
.lib__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lib__head h3 { font-size: 15px; color: var(--ice); letter-spacing: 0.04em; }
.lib__head h3 small { display: block; margin-top: 3px; font: 500 10.5px/1.3 var(--font-m); letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.lib__add { border: 1px dashed var(--line-2); background: transparent; color: var(--cyan); border-radius: 999px; padding: 6px 11px; font: 700 11px/1 var(--font-m); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.lib__add:hover { border-color: var(--cyan); background: rgba(39, 211, 255, 0.06); }
.lib__acts { display: inline-flex; gap: 6px; }
.lib__gen { margin: 4px 0 10px; }
.lib__gen .input { font-size: 13px; padding: 8px 10px; }
.lib__note { font: 500 11px/1.5 var(--font-m); color: var(--muted); padding: 4px 2px 0; }
.lib__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lib__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 6px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.lib__item.is-live { border-color: rgba(57, 229, 140, 0.55); background: rgba(57, 229, 140, 0.06); }
/* Feature now: size choice, the button, and Pull back while it is on screen */
.lib__feat { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 700 10px/1 var(--font-m); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ice); color: var(--ink); }
.btn--xs { padding: 8px 11px; font-size: 12px; }
.btn--live { background: var(--ok); color: var(--ink); cursor: default; }
.btn--live:hover { transform: none; background-position: 0 0; }
.btn--pull { border-color: rgba(255, 46, 154, 0.6); color: var(--hot); }
.lib__thumb { width: 52px; height: 36px; border-radius: 6px; background: #000; overflow: hidden; display: grid; place-items: center; }
.lib__thumb img, .lib__thumb video { width: 100%; height: 100%; object-fit: cover; }
.lib__item > span:nth-child(2) { min-width: 0; }
.lib__name { display: block; font-size: 13px; color: var(--ice); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib__meta { display: block; font: 500 10.5px/1.3 var(--font-m); color: var(--muted); }
.lib__empty { font: 500 12px/1.4 var(--font-m); color: #5e6579; padding: 4px 2px; }
.lib__prog { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.lib__prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hot), var(--cyan)); transition: width .15s linear; }

/* links */
.links { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.links li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.links b { display: block; font-size: 13px; color: var(--ice); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links a { display: block; font: 500 11px/1.4 var(--font-m); color: var(--cyan); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the test screen */
.stage { background: #000; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; position: relative; }
.stage video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; transform: scaleX(-1); }
.stage__off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font: 500 13px/1.6 var(--font-m); letter-spacing: 0.06em; background: radial-gradient(60% 60% at 50% 50%, #141425, #06060b); }
.stage__off b { display: block; font: 900 34px/1 var(--font-d); color: var(--ice); margin-bottom: 8px; letter-spacing: 0.02em; }
.stage.is-on .stage__off { display: none; }
.stage__name { position: absolute; left: 14px; bottom: 14px; padding: 7px 11px; border-radius: 8px; background: rgba(6, 6, 11, 0.7); color: var(--ice); font: 800 14px/1 var(--font-d); letter-spacing: 0.06em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stage__name:empty { display: none; }
.stage.has-banner .stage__name { display: none; }      /* the banner carries the name */
.stage__live { position: absolute; right: 14px; top: 14px; display: none; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(6, 6, 11, 0.7); font: 700 10.5px/1 var(--font-m); letter-spacing: 0.14em; color: var(--ice); }
.stage.is-on .stage__live { display: inline-flex; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(57, 229, 140, 0.6); animation: pulse 1.8s ease-out infinite; }
.dot--off { background: #5e6579; box-shadow: none; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(57, 229, 140, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(57, 229, 140, 0); } }

.av { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.av__box { padding: 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.av__box > span { display: block; font: 700 11px/1 var(--font-m); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.meter { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 10px 0 6px; position: relative; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--cyan) 60%, var(--hot)); transition: width .06s linear; }
.meter::after { content: ''; position: absolute; left: 70%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.3); }
.av__status { font: 500 11.5px/1.4 var(--font-m); color: var(--muted); min-height: 1.4em; }
.av__status.is-ok { color: var(--ok); }
.av__status.is-err { color: #ff8a9b; }
.av__ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* the waiting room */
.room__count { display: inline-flex; align-items: baseline; gap: 6px; font: 900 30px/1 var(--font-d); color: var(--ice); }
.room__count small { font: 700 11px/1 var(--font-m); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.room__count.is-live { color: var(--ok); }
.guests { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.guest { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.guest.is-here { border-color: rgba(57, 229, 140, 0.45); background: rgba(57, 229, 140, 0.06); }
.guest > span:nth-child(2) { min-width: 0; }
.guest__name { display: block; font-size: 14px; color: var(--ice); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest__meta { display: block; font: 500 10.5px/1.4 var(--font-m); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest__acts { align-self: start; }
.guest.is-here .guest__meta { color: var(--ok); }
.guest__acts { display: flex; gap: 2px; }
.guests__empty { font: 500 12px/1.5 var(--font-m); color: #5e6579; padding: 8px 2px; }
.invite { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.invite h3 { font-size: 15px; color: var(--ice); margin-bottom: 8px; letter-spacing: 0.04em; }
.linkbox { display: flex; gap: 6px; margin-top: 8px; }
.linkbox input { flex: 1; min-width: 0; font: 500 11px/1.3 var(--font-m); padding: 7px 9px; }

/* the review pop-up */
.lib__thumb, .lib__name { cursor: zoom-in; }
.view { border: 1px solid var(--line-2); border-radius: 16px; padding: 0; background: var(--panel); color: var(--txt); width: min(92vw, 1100px); max-height: 92vh; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); }
.view::backdrop { background: rgba(6, 6, 11, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.view__close { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; background: rgba(6, 6, 11, 0.7); color: var(--ice); border-color: var(--line-2); z-index: 1; }
.view__media { display: grid; place-items: center; background: #000; border-radius: 16px 16px 0 0; min-height: 200px; }
.view__media img, .view__media video { max-width: min(92vw, 1100px); max-height: calc(92vh - 76px); width: auto; height: auto; object-fit: contain; display: block; }
.view__media img.is-qr { background: #fff; padding: 32px; width: min(70vh, 72vw, 640px); height: auto; image-rendering: pixelated; }   /* a code is small by nature: shown as large as the rest, crisp */
.view__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; }
.view__title { font: italic 900 18px/1.1 var(--font-d); color: var(--ice); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view__meta { font: 500 11px/1.4 var(--font-m); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* sign-in and the guest page */
.center { min-height: calc(100vh - 58px); display: grid; place-items: center; padding: 24px 16px 48px; }
.box { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.box--wide { width: min(760px, 100%); }
.box h1 { font-size: 34px; color: var(--ice); margin-bottom: 6px; }
.box h1 em { font-style: italic; color: transparent; background: linear-gradient(92deg, var(--hot), var(--mag) 35%, var(--blu) 75%, var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.box .lede { color: var(--txt); margin-bottom: 18px; }
.box .lede b { color: #fff; }
.showlogo { height: 56px; width: auto; max-width: 240px; object-fit: contain; margin-bottom: 14px; }
.foot { padding: 20px; text-align: center; font: 500 11px/1.5 var(--font-m); color: #5e6579; letter-spacing: 0.04em; }
