:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20283c;
  background: #f7f8fc;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  border-bottom: 1px solid #dadeeb;
  gap: 16px;
}
header strong {
  color: #343b78;
  font-size: 32px;
  letter-spacing: -1.5px;
}
small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-left: 10px;
}
header span,
.eyebrow,
footer {
  color: #5b6379;
  font-size: 14px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
main {
  padding: 3vh 5vw;
}
h1 {
  font-size: clamp(25px, 4.1vw, 54px);
  letter-spacing: -1.4px;
  line-height: 1.12;
  margin: 20px 0 32px;
  max-width: 1000px;
}
.content {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 5vw;
}
.bar_row {
  margin: 18px 0;
}
.bar_label {
  display: flex;
  justify-content: space-between;
  font-size: clamp(16px, 2.2vw, 28px);
  margin-bottom: 8px;
}
.track {
  background: #e8ecf5;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: #343b78;
  transition: width 0.35s;
  min-width: 0;
}
aside {
  text-align: center;
}
#qr {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 12px;
}
#join_code {
  font-size: 24px;
  color: #343b78;
}
footer {
  padding: 8px 5vw;
  display: flex;
  justify-content: space-between;
}
.slide footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}
button {
  background: #343b78;
  border: 1px solid #343b78;
  color: white;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 17px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button.secondary {
  background: white;
  color: #343b78;
}
input,
select {
  font: inherit;
  border: 1px solid #9ba1b8;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  margin: 9px 0 16px;
}
label {
  display: block;
  font-weight: 600;
}
#setup {
  border-top: 1px solid #dadeeb;
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#setup[hidden] {
  display: none;
}
.audience main {
  max-width: 600px;
  margin: auto;
}
.audience h1 {
  font-size: 32px;
}
#answers {
  display: grid;
  gap: 12px;
}
#answers button {
  text-align: left;
}
#message {
  min-height: 28px;
  font-weight: 600;
  color: #343b78;
}
.status {
  font-size: 15px;
  padding: 12px;
  background: #c3ddf6;
  border-radius: 8px;
}
a {
  color: #343b78;
}
#waiting {
  font-size: 20px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .content {
    grid-template-columns: 1fr 115px;
    gap: 15px;
  }
  #qr {
    width: 105px;
    height: 105px;
  }
  header {
    padding: 12px 5vw;
  }
  header strong {
    font-size: 26px;
  }
  small {
    display: none;
  }
  .track {
    height: 20px;
  }
  h1 {
    margin: 16px 0 20px;
  }
  #setup {
    display: block;
  }
}

/* Office content surfaces scale with both the slide width and its height. */
.slide {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  font-size: min(1.6vw, 2.8vh);
}
.slide header {
  padding: 2vh 4.5vw;
}
.slide header strong {
  font-size: min(3.2vw, 5.4vh);
}
.slide small {
  display: inline;
  font-size: min(1.3vw, 2.2vh);
}
.slide header span,
.slide .eyebrow,
.slide footer {
  font-size: min(1.45vw, 2.4vh);
}
.slide main {
  min-height: 0;
  padding: 2vh 4.5vw;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 2vh;
}
.slide .eyebrow {
  margin: 0;
}
.slide h1 {
  font-size: min(3.7vw, 6.3vh);
  line-height: 1.12;
  letter-spacing: -0.08vw;
  margin: 0;
  max-width: none;
}
.slide .content {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 21vw;
  gap: 4vw;
  align-items: center;
}
.slide #results {
  min-height: 0;
  display: grid;
  gap: 2.6vh;
}
.slide .bar_row {
  margin: 0;
}
.slide .bar_label {
  font-size: min(2.2vw, 3.7vh);
  gap: 1vw;
  margin-bottom: 1vh;
}
.slide .track {
  height: 2.7vh;
  border-radius: 0.7vh;
}
.slide #qr {
  width: min(17vw, 27vh);
  height: min(17vw, 27vh);
}
.slide aside p {
  margin: 1vh 0;
}
.slide #join_code {
  font-size: min(2.4vw, 4vh);
}
.slide footer {
  position: static;
  padding: 1vh 4.5vw;
}
.slide #setup {
  margin: 0;
  padding-top: 1vh;
  gap: 1vw;
  font-size: min(1.4vw, 2.4vh);
}
.slide #setup label {
  flex: 1;
  min-width: 0;
}
.slide #setup select,
.slide #setup button {
  font-size: inherit;
  padding: 1vh 1vw;
  margin: 0.5vh 0;
}
.slide #save_status {
  max-width: 12vw;
}
[hidden] {
  display: none !important;
}
textarea {
  width: 100%;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  border: 1px solid #9ba1b8;
  border-radius: 8px;
  padding: 12px;
  margin: 9px 0 16px;
}
button[aria-pressed="true"] {
  background: #c3ddf6;
  border: 2px solid #343b78;
}
.muted {
  color: #667087;
  font-size: 14px;
  line-height: 1.6;
}
.ask_panel {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #dadeeb;
}
.ask_panel summary {
  cursor: pointer;
  font-weight: 600;
  color: #343b78;
  margin-bottom: 20px;
}
.rank_row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rank_row span {
  flex: 1;
}
.qa_row {
  border-top: 1px solid #dadeeb;
  padding: 16px 0;
}
.word_cloud {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #343b78;
}
.word_cloud span:nth-child(3n) {
  color: #80596a;
}
.text_results {
  display: block !important;
  overflow: auto;
  max-height: 100%;
}
.text_results blockquote {
  background: #e8ecf5;
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 10px;
}
.empty_result {
  color: #667087;
}
.rating_average {
  margin: 0;
  color: #343b78;
  font-weight: 700;
}
.featured_question {
  font-size: 1.8em;
  line-height: 1.4;
  border-left: 5px solid #e8b5bd;
  margin: 0;
  padding-left: 20px;
}
.slide #results {
  max-height: 100%;
  overflow: auto;
  gap: min(2.6vh, calc(20vh / var(--row-count, 3)));
}
.slide .bar_label {
  font-size: min(2.2vw, 3.7vh, calc(24vh / var(--row-count, 3)));
}
.slide .word_cloud {
  font-size: min(1.5vw, 2.5vh);
}
.slide .text_results {
  font-size: min(2vw, 3vh);
}
