body.present {
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(110, 231, 255, 0.1), transparent 62%),
    radial-gradient(900px 700px at -5% 110%, rgba(167, 139, 250, 0.12), transparent 58%),
    var(--bg);
}

.pjoin {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pjoin__card {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow: var(--shadow);
}

.pjoin__brand {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4em;
}

.pjoin__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.pjoin__sub {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pjoin__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.pjoin__field input {
  height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.pjoin__field input:focus {
  border-color: rgba(110, 231, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.1);
}

.pjoin__cta {
  height: 50px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.pjoin__error {
  min-height: 18px;
  margin: 0;
  color: var(--bad);
  font-size: 12px;
}

.pjoin__host {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.pjoin__host input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
}

.pjoin__host .btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
}

.pjoin__hint {
  margin: 0;
  color: var(--muted-dim);
  font-size: 11px;
  text-align: center;
}

.present__main {
  height: 100dvh;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 64px;
  transition: margin-right 0.2s ease;
}

body.drawer-open .present__main {
  margin-right: 400px;
}

.pbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
}

.pbar__left,
.pbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pbar__brand {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.pbar__room {
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.pbar .segmented button {
  padding: 6px 11px;
  font-size: 12px;
}

.pstage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  touch-action: none;
}

.pstage__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.pstage__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.pstage__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
}

.pstage__empty h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
}

.pstage__empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pstage__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 6px;
  padding: 0 26px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.pstage__drop {
  color: var(--muted-dim) !important;
  font-size: 11px !important;
}

.pstage__loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.85);
  color: var(--muted);
  font-size: 12px;
}

.pstage__meta {
  position: absolute;
  left: 16px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.66);
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.pfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
}

.pfoot__nav,
.pfoot__jump,
.pfoot__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pfoot .btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12.5px;
}

.pfoot__page {
  min-width: 64px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

.pfoot__page b {
  color: var(--text);
}

.pfoot__jump .input {
  width: 120px;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
}

.pfoot__jump .btn {
  height: 38px;
}

#laser-toggle.is-active {
  border-color: rgba(255, 77, 77, 0.55);
  color: #ff6b6b;
}

.pdrawer {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: 400px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-strong);
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.pdrawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.pdrawer__tabs {
  display: flex;
  gap: 4px;
}

.pdrawer__tabs button {
  padding: 6px 10px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.pdrawer__tabs button.is-active {
  background: rgba(110, 231, 255, 0.14);
  color: var(--accent);
}

.ppanel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow-y: auto;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.pcard__label {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pcard__title {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard__meta {
  margin: 0;
  color: var(--muted-dim);
  font-size: 11.5px;
  line-height: 1.5;
}

.pcard__actions,
.pcard__row {
  display: flex;
  gap: 8px;
}

.pcard__row .input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 9px;
  font-size: 12px;
}

.pcard__row .btn,
.pcard__actions .btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.pcard .segmented {
  align-self: flex-start;
}

.pcard .segmented button {
  padding: 6px 10px;
  font-size: 12px;
}

.pcard label.btn {
  cursor: pointer;
}

.plist__thumb {
  flex-shrink: 0;
  width: 58px;
  height: 33px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #05070d;
  object-fit: cover;
}

.plist__item {
  align-items: center;
}

.plist__main {
  flex: 1;
}

.present .toast {
  bottom: 80px;
}

@media (max-width: 1000px) {
  body.drawer-open .present__main {
    margin-right: 0;
  }

  .pdrawer {
    width: min(400px, 92vw);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  }

  .pfoot {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 14px;
  }

  .present__main {
    grid-template-rows: 52px minmax(0, 1fr) auto;
  }
}

.pstage__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pstage__actions .pstage__cta {
  margin-top: 0;
}

.chip--warn {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--warn);
}
