/* Shared Git repos and Lore reviews take the call stage like a shared screen.
   original-client/room.js moves a .review-stage panel into the share stage. */
.share-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.review-stage {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: #eee;
  background: #171717;
  font-size: var(--ds-text-md);
  overflow-wrap: break-word;
}
/* A panel is shown a frame or more before room.js stages it, and that first
   frame can come before the call has rendered at all. Until it is staged it
   stays out of sight and out of reach: reparenting a live form drops its
   focus, so typing goes nowhere, and can cancel a pointer event's submission. */
body.original-renderer .review-stage:not(.share-stage .review-stage),
.review-stage[hidden],
.review-stage [hidden] {
  display: none;
}
.review-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 45px;
  padding: 5px 12px;
  background: #262626;
  border-bottom: 1px solid #383838;
}
.review-stage-bar h2 {
  margin: 0;
  font: 500 12px/17px -apple-system, system-ui, "Segoe UI", sans-serif;
}
.review-stage-bar h2:focus:not(:focus-visible) {
  outline: none;
}
.review-stage-presenter {
  flex: 1 1 6rem;
  min-width: 0;
  margin: 0;
  color: #c8c8c8;
}
.review-stage-presenter:empty {
  display: none;
}
.review-stage-stop {
  margin-inline-start: auto;
}
.review-stage-status {
  margin: 0;
  padding: 6px 12px;
  color: #ccc;
  background: #202020;
}
.review-stage-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 12px 12px;
}
#review-connect,
#review-account,
#review-follow,
.review-stage .review-controls,
#review-guests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0;
}
.review-stage-bar #review-follow {
  margin: 0;
}
.review-stage :is(button, select, input:not([type='checkbox'])) {
  box-sizing: border-box;
  min-height: 28px;
  padding: 0.35rem 0.6rem;
  max-width: 100%;
  color: #c8c8c8;
  font: inherit;
  background: rgba(38, 38, 38, 0.85);
  border: 1px solid #444;
  border-radius: var(--ds-radius-md);
}
.review-stage button.review-stage-stop {
  min-height: 20px;
  min-inline-size: 91px;
  padding: 2px 10px;
  font: 600 12px/16px -apple-system, system-ui, "Segoe UI", sans-serif;
  color: #fff;
  background: #fd324a;
  border: 0;
}
.review-stage :is(button, select):disabled {
  opacity: 0.55;
}
.review-stage fieldset {
  min-width: 0;
  border: 1px solid #383838;
  border-radius: var(--ds-radius-md);
}
#review-revisions {
  overflow-wrap: break-word;
}
#review-diff,
#review-excerpt-diff {
  width: 100%;
  height: min(36vh, 30rem);
  margin-block-start: 0.75rem;
  border: 1px solid #383838;
  border-radius: var(--ds-radius-md);
  background: #171717;
}
#review-excerpt-preview {
  border-top: 1px solid #383838;
  margin-block-start: 1rem;
}
#review-comment {
  display: grid;
  gap: 8px;
}
#review-comment textarea {
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}
#review-comment pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 16rem;
  overflow: auto;
}
.lore-room-review .review-stage-follow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 520px) {
  .review-stage-bar {
    padding: 6px 8px;
  }
  .review-stage-body {
    padding: 0 8px 8px;
  }
  .review-stage-stop {
    margin-inline-start: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-stage * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}

.review-stage-bar {
  flex-shrink: 0;
}
.review-stage :is(button, select) {
  border: 0;
  border-radius: var(--ds-radius-sm);
  font-weight: 500;
}
.review-stage button {
  white-space: normal;
  overflow-wrap: normal;
}
.review-stage select {
  min-width: 0;
  appearance: none;
  padding-inline-end: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23ccc' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.review-stage select:dir(rtl) {
  background-position: left 8px center;
}
.review-stage :is(button, select):enabled:hover {
  background-color: rgba(50, 50, 50, 0.85);
  color: white;
}
.review-stage :is(button, select):enabled:active {
  background-color: rgba(70, 70, 70, 0.85);
  color: white;
}
.review-stage button.review-stage-stop:hover {
  background: #fd6275;
}
.review-stage button.review-stage-stop:active {
  background: #ed0039;
}
.review-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}
.review-choice label {
  flex-shrink: 0;
}
.review-stage .orbit-disclosure {
  padding-block: 4px;
  border-bottom: 1px solid #383838;
}
.review-stage textarea {
  background: #202020;
  color: #eee;
  border: 1px solid #444;
  border-radius: var(--ds-radius-sm);
}
#review-source {
  margin-block-start: 6px;
}
#review-revisions {
  color: #bbb;
  font-variant-numeric: tabular-nums;
}

#review-connect {
  display: grid;
  align-content: start;
  max-width: 30rem;
  margin: clamp(12px, 4vh, 36px) auto;
  padding: 16px;
  background: #202020;
  border-radius: var(--ds-radius-md);
}
#review-connect button {
  justify-self: start;
}
#review-connect label:first-child {
  font-weight: 600;
}
#review-connect input[type='password'] {
  width: 100%;
  background: #181818;
}
