/* The manage and admin pages: a plain page of cards and tables under the top bar. */
body.page {
  min-height: 100%;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  display: grid;
  /* One column, never wider than the screen: a wide card or table scrolls inside itself, not the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.card.wide {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.card h2 {
  margin: 0;
  font-size: 18px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.prefix-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}

.prefix-input span {
  padding: 0 0 0 10px;
  color: var(--muted);
  white-space: nowrap;
}

.prefix-input input {
  border: 0;
  padding-left: 2px;
}

a.button {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
}

.room-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.room-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.room-card header h2 {
  margin-right: auto;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link-box input {
  font-family: ui-monospace, Menlo, monospace;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
}

input[type='color'] {
  padding: 2px;
  height: 40px;
}

.moderators li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.moderators li span {
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

td input {
  font: inherit;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

td select {
  min-height: 34px;
  padding: 5px 32px 5px 9px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tabs.page-tabs {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  /* On a phone the tabs that do not fit scroll along, instead of being cut off. */
  overflow-x: auto;
}

/* The admin page's sections, like the cards: never wider than the screen, their tables scroll inside. */
.content > .stack {
  grid-template-columns: minmax(0, 1fr);
}

.muted {
  color: var(--muted);
}

textarea {
  font: inherit;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.speaker-link {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
}

.speaker-link .hint {
  margin: 0;
}

.speaker-link .actions {
  display: flex;
  gap: 8px;
}

.recordings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.recordings li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.recordings .actions {
  display: flex;
  gap: 6px;
}

/* A recording's speakers, each on their own: under the recording, indented. */
.speaker-files {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 4px;
  width: 100%;
  font-size: 14px;
}

.recordings .speaker-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: none;
}

/* A recording's clips: make them (AI or by times), then each clip's line. */
.clips-box {
  width: 100%;
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.clips-box .actions {
  flex-wrap: wrap;
  align-items: center;
}

.clips-box input {
  width: auto;
  min-width: 0;
}

.clips-box .clip-time {
  width: 7em;
}

.player-dialog {
  width: min(960px, calc(100% - 32px));
}

.player-dialog video {
  display: block;
  width: 100%;
  /* Its shape from the start, while the video loads (it was a flat strip until then); a tall clip fits inside. */
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

progress {
  width: 100%;
}

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.figures div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
}

.figures strong {
  font-size: 20px;
}

.figures span {
  color: var(--muted);
  font-size: 13px;
}

/* A session's report: the attendance curve (one series, the room's colour), then its figures. */
.session-report h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.curve {
  margin: 0 0 10px;
}

.curve figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.curve-frame {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 6px;
}

.curve-peak,
.curve-zero {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.curve-peak {
  grid-row: 1;
  align-self: start;
}

.curve-zero {
  grid-row: 2;
  align-self: end;
}

.curve-plot {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  height: 120px;
  outline-offset: 2px;
  cursor: crosshair;
}

.curve-plot svg {
  display: block;
  width: 100%;
  height: 100%;
}

.curve-grid {
  stroke: var(--border);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.curve-wash {
  fill: var(--brand);
  fill-opacity: 0.1;
}

.curve-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.curve-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--muted);
  pointer-events: none;
}

.curve-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--panel);
  pointer-events: none;
}

.curve-tip {
  position: absolute;
  top: -4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  pointer-events: none;
}

.curve-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-left: 22px;
}

.curve-table table {
  font-size: 13px;
  border-collapse: collapse;
}

.curve-table td,
.curve-table th {
  padding: 2px 12px 2px 0;
  text-align: left;
}

.replay-video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 12px;
}

.replay-offer {
  border-radius: 12px;
}

.replay-offer a.go {
  background: #fff;
  color: #111;
  font-weight: 700;
  border: 0;
}


.notes-text {
  max-height: 60vh;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* The room's logo: a preview on the room's dark background, and the upload button. */
.logo-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-preview {
  display: grid;
  place-items: center;
  width: 220px;
  height: 88px;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
}

.logo-preview img {
  max-width: 180px;
  max-height: 64px;
  object-fit: contain;
}

.logo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field-label {
  font-weight: 500;
}

.logo-link summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9em;
}

/* A room's tabs across the top: Room, Selling, Leads, Recordings, Team. */
.room-tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.room-tabs button {
  flex: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--muted);
}

.room-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.room-tab-body > details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 16px 16px;
  margin-top: 16px;
}

/* In a tab, a section's title is a heading, not a fold. */
.room-tab-body > details > summary {
  list-style: none;
  pointer-events: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 0 8px;
}

.room-tab-body > details > summary::-webkit-details-marker {
  display: none;
}

.embed-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.moderator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.colour-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* "Brand your room with the colours of your logo?" */
.logo-colours {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--brand);
  border-radius: 12px;
}

.suggested-colours {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.suggested-colour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.suggested-colour .swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* The pop-up designer: the form, and the pop-up as the room will show it. */
.popup-designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.popup-design-card {
  display: grid;
  gap: 8px;
}

/* On the manage page the card shows just the pop-up, without the room's dark around it. */
.popup-design-card .popup-pick-preview {
  height: auto;
  background: none;
  border-radius: 0;
  justify-items: start;
}

.popup-editor {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.popup-editor-side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
}

.popup-editor-preview {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937, #0b0d12);
}

.popup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popup-preset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.popup-preset .swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.popup-colours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 860px) {
  .popup-editor {
    grid-template-columns: 1fr;
  }

  .popup-editor-side {
    position: static;
  }
}

/* An evergreen session: the video "live", its chat beside it. */
.evergreen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.evergreen-player {
  position: relative;
}

.evergreen-player .unmute {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}

.evergreen-chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: min(70vh, 560px);
}

.evergreen-messages {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 6px;
}

.evergreen-waiting .countdown {
  font-size: 48px;
  font-weight: 800;
  margin: 0;
}

@media (max-width: 860px) {
  .evergreen-layout {
    grid-template-columns: 1fr;
  }
}

/* A clip's page (/c/<id>) and the clips under a replay. */
.clip-watch {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.clip-video {
  height: min(78vh, 720px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 14px;
}

.clip-side {
  flex: 1;
  min-width: 260px;
}

.clip-actions,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.replay-clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.replay-clip {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.replay-clip img,
.replay-clip .no-thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

/* Ready-made live tools (ready-tools-editor.js). */
.ready-tool-group h4 {
  margin: 8px 0 4px;
}

.ready-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ready-tool-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ready-tool-list .grow {
  flex: 1;
  min-width: 0;
}

.ready-tool-editor {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 560px;
}

/* The room's look, as pictures (themePanel). */
.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.theme-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  text-align: left;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: inherit;
}

.theme-card.on {
  border-color: var(--brand);
}

/* Invite-to-unlock's uploaded gift: its picture and name. */
.gift-file {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gift-icon {
  display: grid;
  place-items: center;
  font-size: 28px;
}

/* The Links tab: one row per kind of link. */
.link-row {
  margin-bottom: 16px;
}
.link-row .hint {
  margin: 4px 0 6px;
}

/* The rooms page: the chosen room (its own menu on the left) or All rooms, full width. */
.content:has(.rooms-layout:not([hidden])) {
  max-width: 1400px;
}
.rooms-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.link-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.add-moderator,
.add-speaker {
  margin-top: 10px;
}


/*
 * A look's picture (lookPicture in manage.js): a small room in that look's colours. Classic and the arranged looks get
 * the room's own colours inline (theme.js); these are the dark room's, and the three looks with colours of their own.
 */
.mini {
  --bg: #0b0d12;
  --panel: #13161d;
  --stage: #07080b;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --border: #252a35;
  --control: #1c2029;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.mini-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 11%;
  padding: 0 6px;
  background: var(--panel);
  border-bottom: 2px solid var(--brand);
}
.mini-logo {
  width: 12%;
  height: 46%;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.85;
}
.mini-title {
  width: 22%;
  height: 22%;
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.6;
}
.mini-live {
  width: 8%;
  height: 38%;
  border-radius: 3px;
  background: #e5383b;
}
.mini-leave {
  margin-left: auto;
  width: 10%;
  height: 46%;
  border-radius: 3px;
  background: #e5383b;
}
.mini-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 30%;
}
.mini-centre {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--stage);
}
.mini-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
}
/* Someone on camera: a head and shoulders on a soft background, their name at the bottom. */
.mini-cam {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(160deg, #3d4656, #252b36);
}
.mini-cam:nth-child(2) {
  background: linear-gradient(160deg, #4b3f3a, #2c2522);
}
.mini-head {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 26%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #d9b08c;
}
.mini-cam:nth-child(2) .mini-head {
  background: #a8785a;
}
.mini-shoulders {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 62%;
  height: 46%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: #2f5fa8;
}
.mini-cam:nth-child(2) .mini-shoulders {
  background: #6b4b8a;
}
.mini-name {
  position: absolute;
  left: 4%;
  bottom: 5%;
  width: 34%;
  height: 9%;
  border-radius: 2px;
  background: rgb(0 0 0 / 55%);
}
.mini-dock {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 14%;
  padding: 0 6px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.mini-btn,
.mini-go {
  width: 11%;
  height: 52%;
  border-radius: 3px;
  background: var(--control);
  border: 1px solid var(--border);
}
.mini-btn.wide {
  width: 16%;
}
.mini-go {
  background: var(--brand);
  border-color: transparent;
}
.mini-side {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 22%;
  background: var(--panel);
  border-left: 1px solid var(--border);
}
.mini-tabs {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 3px;
  border-left: 1px solid var(--border);
}
.mini-tab {
  height: 9%;
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.4;
}
.mini-tab.on {
  background: var(--brand);
  opacity: 1;
}
.mini-chat {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  min-width: 0;
}
.mini-msg {
  height: 9%;
  width: 90%;
  border-radius: 4px;
  background: var(--control);
  border: 1px solid var(--border);
}
.mini-msg.short {
  width: 60%;
}
.mini-type {
  margin-top: auto;
  height: 11%;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Chat on the left: the panel first. */
.mini-left .mini-main {
  grid-template-columns: 30% 1fr;
}
.mini-left .mini-side {
  order: -1;
  border-left: 0;
  border-right: 1px solid var(--border);
}

/* Three columns: the chat on the left, the stage, People on the right. */
.mini-columns .mini-main {
  grid-template-columns: 24% 1fr 24%;
}
.mini-columns .mini-chat-column {
  grid-template-columns: 1fr;
  border-left: 0;
  border-right: 1px solid var(--border);
}

/* Zoom: its greys and blue, flat tiles, the bar of buttons across the bottom with a red Leave. */
.mini-zoom {
  --brand: #0e72ed;
  --bg: #1a1a1a;
  --panel: #242424;
  --stage: #1a1a1a;
  --text: #ffffff;
  --muted: #a6a6a6;
  --border: #333333;
  --control: #2d2d2d;
}
.mini-zoom .mini-top {
  border-bottom: 0;
}
.mini-zoom .mini-cam:first-child {
  box-shadow: 0 0 0 2px #23d959;
}
.mini-zoom .mini-dock {
  justify-content: flex-start;
}
.mini-zoom .mini-go {
  margin-left: auto;
  background: #e02828;
}

/* Spotlight: the picture fills it; the panel and the bar float over it. */
.mini-spotlight {
  --bg: #050608;
  --panel: rgb(20 22 28 / 78%);
  --stage: #050608;
  --text: #f2f2f3;
  --muted: #b5b8bf;
  --border: rgb(255 255 255 / 14%);
  --control: rgb(255 255 255 / 12%);
  position: relative;
}
.mini-spotlight .mini-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  background: linear-gradient(rgb(0 0 0 / 70%), transparent);
  border-bottom: 0;
}
.mini-spotlight .mini-main {
  grid-template-columns: 1fr;
}
.mini-spotlight .mini-stage {
  grid-template-columns: 1fr;
  padding: 12% 34% 18% 4%;
}
.mini-spotlight .mini-cam:nth-child(2) {
  display: none;
}
.mini-spotlight .mini-side {
  position: absolute;
  top: 14%;
  right: 3%;
  bottom: 20%;
  width: 28%;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mini-spotlight .mini-dock {
  position: absolute;
  left: 14%;
  right: 38%;
  bottom: 4%;
  height: 11%;
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* Bright stage: light, the stage framed in the brand colour, the panel a white card. */
.mini-bright {
  --bg: #f4f1ec;
  --panel: #ffffff;
  --stage: #13151a;
  --text: #1d1b18;
  --muted: #6b655b;
  --border: #e7e2d9;
  --control: #ffffff;
}
.mini-bright .mini-top {
  border-bottom: 1px solid var(--border);
}
.mini-bright .mini-main {
  gap: 7px;
  padding: 7px;
}
.mini-bright .mini-centre {
  background: transparent;
}
.mini-bright .mini-stage {
  margin: 2px;
  border-radius: 6px;
  background: var(--stage);
  box-shadow: 0 0 0 2px var(--brand);
}
.mini-bright .mini-dock {
  background: transparent;
  border-top: 0;
}
.mini-bright .mini-side {
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* A room's registration pages on the Marketing tab (manage.js showRegistrationPages): a small picture of each, drawn
   at a computer's width (1280 px) and shrunk to the card. */
.reg-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}
.reg-page {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}
.reg-page.is-best {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}
.reg-page-thumb {
  position: relative;
  width: 230px;
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
}
.reg-page-thumb iframe {
  width: 1280px;
  height: 780px;
  border: 0;
  transform: scale(0.18);
  transform-origin: 0 0;
  pointer-events: none;
}
.reg-page-new {
  align-items: center;
  justify-content: center;
  min-height: 210px;
  border-style: dashed;
  text-align: center;
}
.reg-page-plus {
  font-size: 34px;
  line-height: 1;
  color: var(--brand, #2563eb);
}
.reg-page .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* A recording's picture from its middle (manage.js recordingsPanel): the session at a glance. */
.recording-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.recording-still {
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
}
.recording-still.is-empty {
  display: grid;
  place-items: center;
  font-size: 26px;
  cursor: default;
}
@media (max-width: 600px) {
  .recording-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .recording-still {
    width: 100%;
  }
}

/* The five looks from Joel's mock-ups: their colours, the panel's side, the speaker large over a row of others. */
.mini-studio,
.mini-stacked,
.mini-clean {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --stage: #111318;
  --text: #16181d;
  --muted: #5f6672;
  --border: #e3e5ea;
  --control: #ffffff;
}
.mini-night,
.mini-midnight {
  --bg: #0f1013;
  --panel: #18191e;
  --stage: #0b0c0f;
  --text: #f3f4f6;
  --muted: #a7abb5;
  --border: rgb(255 255 255 / 12%);
  --control: rgb(255 255 255 / 10%);
}
:is(.mini-studio, .mini-stacked, .mini-night, .mini-clean, .mini-midnight) .mini-main {
  gap: 6px;
  padding: 6px;
  background: var(--bg);
}
:is(.mini-studio, .mini-stacked, .mini-night, .mini-clean, .mini-midnight) .mini-side {
  border: 1px solid var(--border);
  border-radius: 6px;
}
:is(.mini-studio, .mini-stacked, .mini-night, .mini-clean, .mini-midnight) .mini-stage {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 32%;
  border-radius: 6px;
}
:is(.mini-studio, .mini-stacked, .mini-night, .mini-clean, .mini-midnight) .mini-cam:first-child {
  grid-column: 1 / -1;
}
:is(.mini-studio, .mini-midnight) .mini-main {
  grid-template-columns: 30% 1fr;
}
:is(.mini-studio, .mini-midnight) .mini-side {
  order: -1;
}
.mini-stacked .mini-main {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 34%;
}
.mini-stacked .mini-dock {
  background: #1c1f25;
}
:is(.mini-night, .mini-midnight) .mini-dock {
  margin: 0 18%;
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* The countdown of emails to a room's registrants (Leads tab): one card per email. */
.email-list {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.email-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.email-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.email-row textarea {
  resize: vertical;
}

.email-stats {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

/* A tab's own sections as buttons across its top (Marketing: registration pages, email marketing, leads). */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--border) 45%, transparent);
  width: fit-content;
}

.sub-tabs button {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--muted);
}

.sub-tabs button.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 20, 35, 0.12);
}

/* One line per email: on or off, when, its figures, Remove. */
.email-row-head input[type='checkbox'] {
  width: auto;
  flex: none;
}

.email-row-head select {
  width: auto;
  flex: 0 1 260px;
}

/* The owner's own host link, under the room's link at the top of its card. */
.host-link .host-link-label {
  align-self: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* The room's name at the top of its card, with ✏️ Rename; renaming happens in place. */
.room-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.room-name input {
  flex: 1;
  min-width: 0;
  font-size: 18px;
}

.room-name .rename {
  opacity: 0.7;
}

/* The leads on screen (Leads & reports) and the broadcasts sent (Email marketing). */
.lead-tools {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-tools input[type='search'] {
  flex: 1 1 200px;
}

.lead-table {
  max-height: 480px;
  overflow: auto;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.lead-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lead-table th,
.lead-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.lead-table th {
  position: sticky;
  top: 0;
  background: var(--panel);
  font-weight: 600;
}

/* The email editor's toolbars wrap to the box rather than widen it past a phone's screen. */
.page .stack {
  grid-template-columns: minmax(0, 1fr);
}

.page .mce-tinymce .mce-top-part {
  overflow-x: auto;
}

/* Broadcasts: now or later (a segmented switch), then the scheduled and sent ones as cards with their figures. */
.segmented {
  display: inline-flex;
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.segmented .segment {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--muted);
}

.segmented .segment.selected {
  background: var(--panel);
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.segmented + input[type='datetime-local'] {
  width: fit-content;
  max-width: 100%;
}

.broadcast-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.broadcast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.broadcast-head strong {
  overflow-wrap: anywhere;
}

.broadcast-head button {
  flex: none;
}

.broadcast-figures {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  margin-top: 4px;
}

.broadcast-figures strong {
  font-size: 17px;
}

/* Admin's Email page: a figure over the line (bounces, spam complaints, unsubscribes), and a suspended mailing. */
.over-limit {
  color: #dc2626;
  font-weight: 600;
}

.mailing-suspended {
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, #dc2626 12%, transparent);
  color: #b91c1c;
  font-weight: 600;
}

/* A section's own sections under the first row (Email marketing's): a little smaller. */
.sub-tab-body .sub-tabs button {
  padding: 6px 12px;
  font-size: 14px;
}

/* Phones: the top bar's name, package and buttons wrap onto a second line, rather than past the screen's edge. */
@media (max-width: 600px) {
  body.page .topbar,
  body.page .topbar .me {
    flex-wrap: wrap;
  }
}

/* The page under the top bar: the room's menu runs its whole height. */
body.hc .content,
body.hc .content:has(.rooms-layout:not([hidden])) {
  max-width: none;
  padding: 0;
  gap: 0;
}

body.hc .rooms-main {
  gap: 0;
}

body.hc .rooms-main > .card {
  margin: 16px 24px 0;
}

/* A room: its menu on the left, its subject beside it. */
body.hc .room-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: calc(100vh - 65px);
  margin: 0;
}

body.hc .side {
  position: sticky;
  top: 0;
  flex: 0 0 248px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - 65px);
  padding: 20px 12px;
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--border);
  box-sizing: border-box;
}

body.hc .room-page {
  flex: 1;
  min-width: 0;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px 48px;
}

@media (max-width: 860px) {
  body.hc .room-card {
    flex-direction: column;
  }

  body.hc .side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  body.hc .room-page {
    padding: 20px 16px 40px;
  }
}

/* The room switcher: the room's initial and name; it opens the owner's other rooms, All rooms and New room. */
body.hc .room-switch {
  position: relative;
}

body.hc .room-switch summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  list-style: none;
  cursor: pointer;
}

body.hc .room-switch summary::-webkit-details-marker {
  display: none;
}

body.hc .room-switch summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--muted);
}

body.hc .room-switch summary > span:nth-child(2) {
  min-width: 0;
}

body.hc .room-switch strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hc .room-switch small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

body.hc .room-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 16px;
  font-weight: 800;
}

body.hc .room-switch summary .room-tile {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
}

body.hc .switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

body.hc .room-list-item {
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

body.hc .room-list-item .room-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
}

body.hc .room-list-item.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

body.hc .room-list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hc .switch-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

body.hc .switch-actions button {
  flex: 1;
  min-height: 36px;
  font-size: 13px;
}

/* The room's subjects, under their groups' names. */
body.hc .room-tabs {
  flex-direction: column;
  gap: 2px;
  margin: 0;
  border: 0;
  overflow: visible;
}

body.hc .room-tabs .side-label {
  padding: 12px 12px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

body.hc .room-tabs .side-label:first-child {
  padding-top: 0;
}

body.hc .room-tabs button {
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

body.hc .room-tabs button:hover {
  background: var(--surface-2);
}

body.hc .room-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* The menu's corner: the package and its storage. */
body.hc .package-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

body.hc .package-box strong {
  color: var(--text);
  font-size: 13px;
}


/* The room's head: Rooms › its name, its status, Preview as attendee and Open as host; its link and Copy link. */
body.hc .crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

body.hc .crumb-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

body.hc .crumb-link:hover:not([disabled]) {
  background: none;
  color: var(--text);
}

body.hc .room-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.hc .room-head-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body.hc .room-head-title .room-name h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: -0.01em;
}

body.hc .room-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.hc .linkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.hc .linkfield {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  font-size: 14px;
}

body.hc .linkfield span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A subject's sections as the design's cards, each titled, the hints under the title. */
body.hc .room-tab-body {
  display: grid;
  gap: 20px;
}

body.hc .room-tab-body > :is(details, .speaker-link) {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

body.hc .room-tab-body > details > summary {
  margin: 0 0 16px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

body.hc .room-tab-body > details > .hint,
body.hc .room-tab-body > details > p.muted {
  margin: -8px 0 16px;
  font-size: 14px;
  line-height: 20px;
}

body.hc .room-tab-body label:not(.check) {
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

body.hc .room-tab-body label.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* A changed form's bar: "You have unsaved changes", and its Save, stuck to the window's bottom until saved. */
body.hc .save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

body.hc .save-bar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

body.hc .save-bar-note::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-line);
}

/* Look of the room: the design's picture cards, the chosen one in red. */
body.hc .theme-cards {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

body.hc .theme-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
  white-space: normal;
}

body.hc .theme-card:hover:not([disabled]) {
  border-color: var(--border-strong);
  background: var(--panel);
}

body.hc .theme-card.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: var(--accent-soft);
}

body.hc .theme-card strong {
  font-size: 14px;
}

body.hc .theme-card .muted {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
}

/* All rooms: each room's initial, name and status, link, next session, Copy and Manage. */
body.hc .rooms-overview {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: grid;
  gap: 24px;
  box-sizing: border-box;
}

body.hc .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body.hc .page-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: -0.01em;
}

body.hc .page-head .hint {
  margin: 4px 0 0;
  font-size: 14px;
}

body.hc .page-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.hc .usage {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

body.hc .usage .meter {
  width: 120px;
}

body.hc .room-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

body.hc .room-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}

body.hc .room-row:first-child {
  border-top: 0;
}

body.hc .room-row .room-tile.live {
  background: var(--accent-soft);
  color: var(--accent-text);
}

body.hc .room-row-name strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

body.hc .room-row-link {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hc .room-row-when {
  font-size: 14px;
  line-height: 20px;
}

body.hc .room-row-when small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

body.hc .room-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 760px) {
  body.hc .room-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.hc :is(.room-row-when, .room-row-actions) {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* Before the first room: a drawing, a line, the button that opens New room, and the three steps. */
body.hc .empty-rooms:not([hidden]) {
  min-height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
  box-sizing: border-box;
}

body.hc .empty-art {
  width: 160px;
  height: 112px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.hc .empty-art .fill {
  fill: var(--surface-2);
}

body.hc .empty-art .acc {
  stroke: var(--accent-line);
}

body.hc .empty-rooms h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
}

body.hc .empty-rooms p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

body.hc .empty-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 8px;
  font-size: 13px;
}

/* New room. */
body.hc .create-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

body.hc .create-dialog::backdrop {
  background: rgb(30 30 36 / 42%);
}

body.hc .create-dialog form {
  gap: 20px;
}

body.hc .dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.hc .dialog-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
}

body.hc .dialog-head .hint {
  margin: 4px 0 0;
  font-size: 14px;
}

body.hc .dialog-head .ghost {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

body.hc #create-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

body.hc #create-form .hint {
  font-size: 12px;
  font-weight: 400;
}

body.hc .prefix-input {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel);
}

body.hc .prefix-input span {
  padding: 0 4px 0 14px;
  font-size: 14px;
  font-weight: 400;
}

body.hc .prefix-input input {
  min-height: 42px;
  padding: 0 14px 0 0;
  border: 0;
  box-shadow: none;
}

body.hc .note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

/* Leads & reports: the figures as one row of joined boxes, the lists to download as chips. */
body.hc .figures {
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

body.hc .figures > div {
  gap: 2px;
  padding: 16px 18px;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
}

body.hc .figures > div:last-child {
  border-right: 0;
}

body.hc .figures strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: -0.01em;
}

body.hc .figures span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

body.hc .room-tab-body > details > .hint {
  margin-top: 16px;
}

body.hc .room-tab-body > details > .hint:first-of-type {
  margin-top: -8px;
}

body.hc .room-tab-body > details > .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.hc .room-tab-body > details > .actions :is(a, button) {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-size: 13px;
}

body.hc .room-tab-body > details > .actions :is(a, button):hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-text);
}

body.hc .room-tab-body button.ghost:not(.small, .rename) {
  border-color: var(--border-strong);
  background: var(--panel);
}

body.hc .room-name .rename {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  color: var(--muted);
  font-size: 13px;
}

/* A subject's own sections (Email marketing's): chips across its top, the open one in red. */
body.hc .sub-tabs {
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  background: none;
  width: auto;
}

body.hc .sub-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
}

body.hc .sub-tabs button.active {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: none;
}

body.hc .sub-tab-body {
  display: grid;
  gap: 20px;
}

body.hc .sub-tab-body > details {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

body.hc .sub-tab-body > details > summary {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  list-style: none;
}
