/* Interface refinements introduced in v1.1.0. Kept separate for safe cache busting. */
.profile-button {
  min-width: 215px;
  max-width: min(360px, 48vw);
  border-radius: 14px;
  padding: 7px 13px 7px 7px;
  text-align: left;
}

.profile-button > .profile-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  font-size: 13px;
}

.profile-button > .profile-copy {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: initial;
  gap: 2px;
  overflow: hidden;
}

.profile-copy b,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy b {
  max-width: none;
  color: var(--ink);
  font: 700 13px/1.2 Manrope, sans-serif;
}

.profile-copy small {
  color: #768a9d;
  font: 10px/1.25 Inter, sans-serif;
}

.profile-button.empty {
  min-width: 185px;
}

.session-open {
  width: 100%;
  color: var(--ink);
  text-align: left;
  font: inherit;
}

.session-row-copy {
  min-width: 0;
}

.session-row-copy b,
.session-row-copy small {
  display: block;
}

.session-row-copy b {
  overflow: hidden;
  color: var(--ink);
  font: 700 14px/1.35 Manrope, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-row-copy small {
  margin-top: 5px;
  color: #8092a4;
  font-size: 10px;
}

.open-arrow {
  color: #7c96b2;
  font-size: 20px;
  transition: transform .18s ease;
}

.session-open:hover .open-arrow {
  transform: translateX(3px);
}

.back-button {
  margin: 0 0 20px;
  border: 0;
  background: transparent;
  color: #56728e;
  font: 700 11px Inter, sans-serif;
  cursor: pointer;
}

.back-button:hover {
  color: var(--blue);
}

.session-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.session-detail-head h1 {
  max-width: 800px;
  margin: 5px 0 10px;
  font-size: 31px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  color: #71869a;
  font-size: 10px;
}

.detail-meta > span:not(.badge) + span:before {
  content: "·";
  margin-right: 11px;
  color: #b1becb;
}

.edit-state {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 6px 9px;
  background: #e6f6ef;
  color: #237a58;
  font-size: 9px;
  font-weight: 800;
}

.edit-state.limited {
  background: #fff2d7;
  color: #92671e;
}

.edit-state.locked {
  background: #edf2f7;
  color: #718397;
}

.question-admin-list.detailed {
  gap: 13px;
}

.admin-question.expanded {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.admin-question-top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 17px;
}

.admin-question-copy {
  min-width: 0;
}

.admin-question-copy h3 {
  margin: 6px 0 3px;
  font-size: 15px;
  line-height: 1.4;
}

.admin-live-results {
  padding: 17px 20px 20px 68px;
  border-top: 1px solid #e5edf5;
  background: #f8fbfe;
}

.admin-live-results.empty p {
  margin: 12px 0 0;
  color: #8495a5;
  font-size: 11px;
}

.results-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #47627d;
  font-size: 11px;
}

.all-voted,
.vote-progress {
  border-radius: 99px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
}

.all-voted {
  background: #def5e9;
  color: #1f7a55;
}

.vote-progress {
  background: #e9f0f7;
  color: #6d8195;
}

.admin-option-results {
  display: grid;
  gap: 7px;
}

.admin-option-result {
  display: grid;
  grid-template-columns: minmax(155px, .65fr) 1.35fr;
  gap: 16px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  background: #fff;
}

.admin-result-name b,
.admin-result-name span {
  display: block;
}

.admin-result-name b {
  font: 700 12px Manrope, sans-serif;
}

.admin-result-name span {
  margin-top: 3px;
  color: #7b8ea1;
  font-size: 9px;
}

.admin-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-voters button,
.admin-text-results article > button {
  border: 0;
  border-radius: 7px;
  background: #edf3fa;
  color: #45627e;
  padding: 6px 8px;
  font-size: 10px;
  cursor: pointer;
}

.admin-voters button:hover,
.admin-text-results article > button:hover {
  background: #dfe9f8;
}

.admin-voters small {
  color: #8194a6;
}

.admin-voters i {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 99px;
  place-items: center;
  background: #d6e3f6;
  font-style: normal;
  font-size: 8px;
}

.admin-voters em {
  color: #98a7b5;
  font-size: 10px;
}

.admin-text-results {
  display: grid;
  gap: 8px;
}

.admin-text-results article {
  display: grid;
  grid-template-columns: minmax(145px, .4fr) 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  background: #fff;
}

.admin-text-results article > div b,
.admin-text-results article > div small {
  display: block;
}

.admin-text-results article > div b {
  font: 700 11px Manrope, sans-serif;
}

.admin-text-results article > div small {
  margin-top: 3px;
  color: #8193a4;
  font-size: 9px;
}

.admin-text-results p {
  margin: 0;
  color: #506a82;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 850px) {
  .session-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-question-top {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .admin-question-top .question-controls {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-live-results {
    padding-left: 20px;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: auto;
    align-items: flex-start;
  }

  .profile-button {
    min-width: 0;
    max-width: 58vw;
  }

  .profile-button > .profile-avatar {
    display: none;
  }

  .profile-copy b {
    max-width: 45vw;
  }

  .session-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .session-row > .badge {
    grid-column: 2;
  }

  .session-row > .open-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .results-caption,
  .admin-option-result,
  .admin-text-results article {
    grid-template-columns: 1fr;
  }

  .results-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-option-result {
    gap: 9px;
  }
}
