/* Sandbox session homes: face to face (free) vs online (subscription). */
#shmRoot[hidden],
#shmRoot [hidden] {
  display: none !important;
}

.shm {
  max-width: 760px;
  margin: 8px auto 28px;
  padding: 4px 16px 8px;
}

.shm-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b4dbd;
}

.shm h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.2;
  color: #1a202c;
}

.shm-lead {
  margin: 0 0 18px;
  color: #4a5568;
  font-size: 16px;
  line-height: 1.45;
}

.shm-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shm-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 16px;
  padding: 16px 16px 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 32, 44, 0.04);
}

.shm-card:hover,
.shm-card:focus-visible {
  border-color: #5b4dbd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 77, 189, 0.15);
}

.shm-card h2 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

.shm-card p {
  margin: 0;
  color: #4a5568;
  line-height: 1.45;
}

.shm-step {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6ebf1;
}

.shm-step h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.shm-step p {
  margin: 0 0 10px;
  color: #4a5568;
  line-height: 1.45;
}

.shm-url {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  background: #f8fafc;
  color: #1a202c;
}

.shm-inperson .shm-share {
  margin-top: 8px;
  max-width: none;
  padding: 0;
}

.shm-share-lead {
  margin: 0 0 10px;
  color: #4a5568;
  font-size: 15px;
  line-height: 1.45;
}

.shm-room {
  margin: 0 0 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d5dbe3;
  background: #fff;
}

.shm-room img {
  display: block;
  width: 100%;
  height: auto;
}

.shm-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shm-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 14px;
  padding: 14px 16px 16px;
}

.shm-choice p {
  margin: 0;
  color: #1a202c;
  line-height: 1.45;
}

.shm-choice .btn {
  width: 100%;
  margin-top: auto;
}

.shm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shm-actions .btn {
  width: auto;
}

.shm-quiet {
  margin-top: 18px;
}

.shm-linkish {
  background: none;
  border: 0;
  padding: 8px 0;
  color: #5b4dbd;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
}

.shm-note {
  margin: 12px 0 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.45;
}

.shm-mode-bar:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 16px;
  max-width: min(1100px, 100%);
  margin: 0 auto 12px;
  padding: 0 16px;
  box-sizing: border-box;
}

.shm-mode-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  margin-left: auto;
}

.shm-try-demo-btn {
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.shm-mode-segment {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: #eef1f6;
  border: 1px solid #d5dbe3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.shm-mode-segment-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 8px 18px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  background: transparent;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
}

.shm-mode-segment-btn:hover:not(.is-selected) {
  color: #1a202c;
  background: rgba(255, 255, 255, 0.55);
}

.shm-mode-segment-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 77, 189, 0.25);
}

.shm-mode-segment-btn.is-selected {
  color: #1a202c;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 32, 44, 0.12);
}

.shm-mode-bar-extra {
  font-size: 13px;
}

@media (max-width: 640px) {
  .shm-mode-bar:not([hidden]) {
    flex-direction: column;
    align-items: stretch;
  }

  .shm-mode-bar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .shm-try-demo-btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .shm-mode-segment {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }

  .shm-mode-segment-btn {
    flex: 1 1 50%;
    text-align: center;
    padding: 10px 12px;
  }

  .shm-mode-bar-extra {
    width: 100%;
    text-align: center;
  }
}

body.shm-choose #tdAppGrid,
body.shm-choose #authSection,
body.shm-inperson #tdAppGrid,
body.shm-inperson #authSection,
body.shm-gate #tdAppGrid,
body.shm-gate #authSection,
body.shm-on #inPersonSandboxActions,
body.shm-on #tdNavInPersonController,
body.shm-on #tdNavInPersonDisplay {
  display: none !important;
}

@media (max-width: 720px) {
  .shm-cards {
    grid-template-columns: 1fr;
  }

  .shm-choices {
    grid-template-columns: 1fr;
  }

  /* Phone-sized screen: the device in your hand is the remote, so lead with it.
     Both choices stay selectable — a docked tablet can be either one. */
  .shm-choices .shm-choice:last-child {
    order: -1;
  }

  .shm h1 {
    font-size: 1.45rem;
  }

  .shm-actions .btn {
    width: 100%;
  }
}
