body.hri-demo-open {
  overflow: hidden !important;
}
#demo-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #e9eee9;
  color: #18302e;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  letter-spacing: 0;
}
#demo-root[hidden] {
  display: none;
}
#demo-root * {
  box-sizing: border-box;
}
#demo-root button,
#demo-root input,
#demo-root textarea {
  font: inherit;
}
#demo-root button {
  cursor: pointer;
}
#demo-root button:focus-visible,
#demo-root input:focus-visible,
#demo-root textarea:focus-visible {
  outline: 3px solid #d98937;
  outline-offset: 2px;
}
#demo-root .hd-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#demo-root .hd-top {
  height: 70px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #163a3b;
  color: #fff;
  box-shadow: 0 2px 12px #20363124;
}
#demo-root .hd-brand,
#demo-root .hd-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#demo-root .hd-brand strong {
  font-size: 21px;
  letter-spacing: -0.035em;
  font-weight: 750;
}
#demo-root .hd-index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b3d0c8;
}
#demo-root .hd-demo-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #1b3a36;
  background: #d9eabb;
  border-radius: 2px;
  padding: 5px 7px;
}
#demo-root .hd-main {
  display: grid;
  grid-template-columns: 206px minmax(480px, 1.45fr) minmax(340px, 1fr);
  gap: 14px;
  padding: 14px;
  min-height: 0;
  flex: 1;
}
#demo-root .hd-nav,
#demo-root .hd-participant,
#demo-root .hd-logs {
  min-height: 0;
}
#demo-root .hd-nav {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d2ddd8;
  padding: 18px 11px;
  border-radius: 5px;
  box-shadow: 0 4px 20px #2b4c4212;
}
#demo-root .hd-nav-label,
#demo-root .hd-panel-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #607c76;
}
#demo-root .hd-nav-label {
  padding: 0 10px 14px;
}
#demo-root .hd-nav-item {
  border: 0;
  background: transparent;
  color: #3b5550;
  display: grid;
  grid-template-columns: 25px 1fr 13px;
  text-align: left;
  align-items: center;
  gap: 6px;
  padding: 11px 10px;
  margin: 1px 0;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
#demo-root .hd-nav-item span {
  font-size: 11px;
  color: #8a9d98;
}
#demo-root .hd-nav-item i {
  font-style: normal;
  color: #2f7859;
}
#demo-root .hd-nav-item:hover {
  background: #edf4ec;
}
#demo-root .hd-nav-item.selected {
  background: #dfece1;
  color: #16483c;
}
#demo-root .hd-nav-bottom {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 12px 6px 2px;
}
#demo-root .hd-participant,
#demo-root .hd-logs {
  background: #fff;
  border: 1px solid #d2ddd8;
  border-radius: 5px;
  box-shadow: 0 4px 20px #2b4c4212;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}
#demo-root .hd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 11px;
  flex: none;
}
#demo-root .hd-panel-head b {
  color: #244e44;
}
#demo-root .hd-ipad {
  background: #131e27;
  border-radius: 24px;
  padding: 18px 14px 14px;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 9px 24px #16262230;
}
#demo-root .hd-ipad-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #d6e1df;
  font-size: 11px;
  letter-spacing: 0.02em;
  min-height: 16px;
  margin-bottom: 9px;
}
#demo-root .hd-ipad-bar > span:last-child {
  text-align: right;
  font-weight: 800;
  color: #d8e7be;
}
#demo-root .hd-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #415663;
  justify-self: center;
}
#demo-root .hd-ipad-content {
  flex: 1;
  min-height: 0;
  background: #fbfaf5;
  border-radius: 7px;
  padding: 22px;
  overflow: auto;
  position: relative;
}
#demo-root .hd-source {
  font-size: 11px;
  line-height: 1.45;
  color: #697c77;
  margin: 10px 1px 0;
  flex: none;
}
#demo-root .hd-task {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 13px;
  max-width: 760px;
  margin: auto;
}
#demo-root .hd-task h2,
#demo-root .hd-complete h2 {
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: #173b37;
  margin: 0;
  font-weight: 760;
}
#demo-root .hd-progress {
  font-size: 12px;
  color: #8a653d;
  font-weight: 800;
  letter-spacing: 0.11em;
  display: flex;
  align-items: center;
  gap: 10px;
}
#demo-root .hd-pill {
  display: inline-flex;
  background: #e6f0e6;
  border: 1px solid #c6d7c7;
  color: #315e51;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 2px;
  padding: 4px 7px;
  white-space: nowrap;
}
#demo-root .hd-instruction {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.4;
  color: #334c48;
  margin: 0;
  max-width: 680px;
}
#demo-root .hd-cue {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #edf2eb;
  border-left: 5px solid #577f65;
  padding: 16px 18px;
  min-height: 92px;
}
#demo-root .hd-cue.robot {
  background: #eaf0f1;
  border-color: #698093;
}
#demo-root .hd-cue-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 49px;
  height: 49px;
  border: 2px solid currentColor;
  border-radius: 7px;
  font-size: 27px;
  color: #557765;
}
#demo-root .hd-cue.robot .hd-cue-icon {
  border-radius: 50%;
  color: #58798c;
}
#demo-root .hd-cue small {
  display: block;
  color: #6a807a;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 4px;
}
#demo-root .hd-cue strong {
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 720;
  color: #25453e;
}
#demo-root .hd-actions,
.hd-hand-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
#demo-root .hd-btn {
  border: 1px solid #b9cdc4;
  background: #fff;
  color: #27534a;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 750;
  min-height: 42px;
  box-shadow: none;
}
#demo-root .hd-btn:hover {
  background: #e8f1e9;
}
#demo-root .hd-btn.primary {
  background: #21594e;
  color: #fff;
  border-color: #21594e;
}
#demo-root .hd-btn.primary:hover {
  background: #174a40;
}
#demo-root .hd-btn.active {
  background: #d9eac7;
  color: #1d4739;
  border-color: #9ec38f;
}
#demo-root .hd-btn.choice {
  font-size: 18px;
  min-width: 135px;
  padding: 17px 23px;
}
#demo-root .hd-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
#demo-root .hd-top .hd-btn {
  border-color: #63817d;
  color: #f0f5ed;
  background: #234949;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
#demo-root .hd-top .hd-btn.active {
  background: #d9eac7;
  border-color: #d9eac7;
  color: #173e39;
}
#demo-root .hd-top .hd-close {
  width: 36px;
  height: 36px;
  font-size: 25px;
  line-height: 15px;
  padding: 0;
  background: #102d31;
}
#demo-root .hd-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 750;
  color: #536c66;
}
#demo-root .hd-field textarea,
#demo-root .hd-field input {
  border: 1px solid #bfcfc7;
  background: #fff;
  border-radius: 3px;
  padding: 10px;
  color: #1a3933;
  min-width: 0;
  font-size: 18px;
  resize: vertical;
}
#demo-root .hd-micro {
  font-size: 11px;
  color: #758b84;
  margin: 0;
}
#demo-root .hd-complete {
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
}
#demo-root .hd-complete p {
  font-size: 18px;
  color: #516d65;
  margin: 0;
}
#demo-root .hd-complete-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: #dcebdd;
  color: #276a51;
  border-radius: 50%;
  font-size: 38px;
}
#demo-root .hd-cube-svg {
  width: 100%;
  min-height: 260px;
  max-height: 430px;
  flex: 1;
  touch-action: manipulation;
  background: #f7f6ef;
  border: 1px solid #dbe2d5;
  border-radius: 3px;
}
#demo-root .hd-cube-lines line {
  stroke: #377466;
  stroke-width: 1.25;
  stroke-linecap: round;
}
#demo-root .hd-cube-lines line.base {
  stroke: #7b9890;
  stroke-width: 1;
}
#demo-root .hd-node {
  cursor: pointer;
}
#demo-root .hd-node circle {
  fill: #fff;
  stroke: #2a6055;
  stroke-width: 0.85;
}
#demo-root .hd-node.anchor circle {
  fill: #d7eab5;
  stroke: #b46d31;
  stroke-width: 1.4;
}
#demo-root .hd-node text {
  fill: #1d4942;
  font-size: 5px;
  font-weight: 800;
  pointer-events: none;
}
#demo-root .hd-node:hover circle {
  fill: #e6f2e5;
}
#demo-root .hd-memory {
  justify-content: flex-start;
  min-height: 0;
}
#demo-root .hd-picture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  flex: 1;
}
#demo-root .hd-picture {
  border: 2px solid #d2ddd2;
  background: #fff;
  position: relative;
  border-radius: 3px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  gap: 4px;
  color: #23463f;
  font-weight: 700;
}
#demo-root .hd-picture.selected {
  border-color: #2c765f;
  background: #e9f4e9;
}
#demo-root .hd-picture img {
  max-height: 100px;
  width: 100%;
  object-fit: contain;
  min-height: 50px;
}
#demo-root .hd-picture b {
  position: absolute;
  top: 4px;
  right: 6px;
  background: #1e7054;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
#demo-root .hd-selection-count {
  font-size: 12px;
  font-weight: 800;
  color: #456b5c;
}
#demo-root .hd-sub {
  justify-content: flex-start;
}
#demo-root [data-ink] {
  width: 100%;
  height: 44%;
  min-height: 160px;
  border: 2px dashed #c4d2c8;
  background: #fff;
  touch-action: none;
  border-radius: 2px;
  cursor: crosshair;
}
#demo-root .hd-sub-row {
  display: flex;
  align-items: end;
  gap: 10px;
}
#demo-root .hd-sub-row .hd-field {
  flex: 1;
}
#demo-root .hd-hand-options {
  justify-content: center;
  gap: 18px;
  padding: 14px 0;
}
#demo-root .hd-arm {
  width: 100px;
  height: 155px;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#demo-root .hd-arm-head {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #607c81;
  position: absolute;
  top: 11px;
}
#demo-root .hd-arm-body {
  width: 22px;
  height: 71px;
  border-radius: 12px;
  background: #607c81;
  position: absolute;
  top: 45px;
}
#demo-root .hd-arm-limb {
  height: 14px;
  width: 60px;
  background: #607c81;
  border-radius: 8px;
  position: absolute;
  top: 55px;
  left: 50px;
  transform-origin: left center;
}
#demo-root .hd-arm.up .hd-arm-limb {
  transform: rotate(-48deg);
}
#demo-root .hd-arm.down .hd-arm-limb {
  transform: rotate(50deg);
}
#demo-root .hd-arm.still .hd-arm-limb {
  transform: rotate(0deg);
}
#demo-root .hd-arm.robot-arm .hd-arm-head,
#demo-root .hd-arm.robot-arm .hd-arm-body,
#demo-root .hd-arm.robot-arm .hd-arm-limb {
  background: #3e697c;
}
#demo-root .hd-arm.robot-arm .hd-arm-head {
  border-radius: 8px;
}
#demo-root .hd-word-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
#demo-root .hd-word {
  border: 1px solid #b9cfc5;
  border-radius: 3px;
  background: #fff;
  padding: 18px 10px;
  text-align: center;
  color: #254940;
  font-size: 17px;
  font-weight: 720;
}
#demo-root .hd-word.selected {
  background: #dfeddf;
  border: 2px solid #327958;
}
#demo-root .hd-word span {
  margin-left: 8px;
  color: #307a57;
}
#demo-root .hd-logs .hd-panel-head {
  margin-bottom: 12px;
}
#demo-root .hd-log-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
#demo-root .hd-log-tools .hd-btn {
  font-size: 11px;
  min-height: 31px;
  padding: 6px 8px;
}
#demo-root .hd-json {
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow: auto;
  flex: 1;
  min-height: 0;
  margin: 0;
  background: #102b2e;
  color: #d2e6df;
  padding: 16px;
  border-radius: 3px;
  tab-size: 2;
  user-select: text;
}
#demo-root .hd-json.expanded {
  font-size: 13px;
}
#demo-root .hd-json-note {
  flex: none;
  padding: 9px 0 0;
  color: #748b84;
  font-size: 11px;
}
@media (max-width: 1150px) {
  #demo-root .hd-main {
    grid-template-columns: 150px minmax(390px, 1.4fr) minmax(280px, 1fr);
    gap: 8px;
    padding: 8px;
  }
  #demo-root .hd-nav-item {
    font-size: 11px;
    padding: 9px 5px;
  }
  #demo-root .hd-ipad-content {
    padding: 13px;
  }
  #demo-root .hd-participant,
  #demo-root .hd-logs {
    padding: 10px;
  }
}
@media (max-width: 800px) {
  #demo-root .hd-top {
    height: 52px;
    padding: 0 8px;
  }
  #demo-root .hd-brand strong {
    font-size: 15px;
  }
  #demo-root .hd-index,
  #demo-root .hd-demo-tag {
    display: none;
  }
  #demo-root .hd-main {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  #demo-root .hd-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    min-height: 51px;
    flex: none;
    padding: 4px;
  }
  #demo-root .hd-nav-label,
  #demo-root .hd-nav-bottom {
    display: none;
  }
  #demo-root .hd-nav-item {
    white-space: nowrap;
    display: inline-flex;
    gap: 5px;
  }
  #demo-root .hd-participant {
    min-height: 580px;
    flex: none;
  }
  #demo-root .hd-logs {
    min-height: 300px;
    flex: none;
  }
  #demo-root .hd-task {
    min-height: 470px;
  }
  #demo-root .hd-top .hd-btn {
    font-size: 10px;
    padding: 5px;
  }
}
@media print {
  #demo-root {
    display: none !important;
  }
}
#demo-root .hd-timer-control {
  display: flex;
  justify-content: flex-end;
  margin: -3px 0 7px;
  min-height: 26px;
}
#demo-root .hd-timer-control .hd-btn {
  background: #dbeabe;
  border-color: #dbeabe;
  color: #153d35;
  font-size: 10px;
  min-height: 25px;
  padding: 2px 8px;
}
#demo-root .hd-memory-wait {
  min-height: 170px;
  flex: 1;
  display: grid;
  place-items: center;
  background: #eff3ec;
  border: 1px dashed #bdcfc1;
  color: #57736a;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}
#demo-root .hd-cue em {
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  color: #647c72;
  margin-top: 6px;
}
#demo-root .hd-hand-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 165px;
  background: #edf2ed;
  border: 1px solid #d8e4d9;
}
#demo-root .hd-hand-signal small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #577367;
}
#demo-root .hd-hand-signal .hd-arm {
  margin: 0;
}
#demo-root .hd-dot-signal {
  height: 116px;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  background: #152d34;
  border-radius: 9px;
  border: 5px solid #849596;
}
#demo-root .hd-dot-signal span {
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #425b5b;
  border: 2px solid #758b88;
}
#demo-root .hd-dot-signal span.lit {
  background: #e9ce68;
  box-shadow: 0 0 17px #e6c35e;
}
#demo-root .hd-logs.expanded {
  position: fixed;
  z-index: 4;
  inset: 7% 8%;
  box-shadow: 0 20px 80px #0b2527a8;
  padding: 22px;
}
#demo-root .hd-logs.expanded .hd-json {
  font-size: 14px;
}
/* Keep task arm diagrams inside their own cue area; deck.css uses .robot-arm/.screen-arm for a slide illustration. */
#demo-root .hd-arm.robot-arm,
#demo-root .hd-arm.screen-arm {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100px;
  height: 155px;
  max-width: 100px;
  max-height: 155px;
  min-width: 100px;
  min-height: 155px;
  flex: 0 0 100px;
  overflow: visible;
}
#demo-root .hd-hand-signal .hd-arm {
  margin: 0;
}

/* Speaking mode: participant UI first; live JSON is available on demand. */
#demo-root {
  font-family:
    "Source Sans Pro",
    -apple-system,
    sans-serif;
  font-size: 18px;
}
#demo-root .hd-main.without-logs {
  grid-template-columns: 222px minmax(0, 1fr);
}
#demo-root .hd-main.with-logs {
  grid-template-columns: 210px minmax(0, 1.45fr) minmax(340px, 1fr);
}
#demo-root .hd-logs[hidden] {
  display: none !important;
}
#demo-root .hd-brand strong {
  font-size: 27px;
}
#demo-root .hd-nav-item {
  font-size: 17px;
  padding: 13px 10px;
}
#demo-root .hd-nav-item span {
  font-size: 14px;
}
#demo-root .hd-btn {
  font-size: 17px;
  min-height: 44px;
}
#demo-root .hd-top .hd-btn {
  font-size: 16px;
  min-height: 40px;
}
#demo-root .hd-task {
  max-width: 960px;
  gap: 20px;
}
#demo-root .hd-task h2,
#demo-root .hd-complete h2 {
  font-size: 36px;
}
#demo-root .hd-instruction {
  font-size: 25px;
  line-height: 1.3;
  max-width: 900px;
}
#demo-root .hd-cue strong {
  font-size: 27px;
}
#demo-root .hd-cue small {
  font-size: 13px;
}
#demo-root .hd-cue em {
  font-size: 17px;
  display: block;
}
#demo-root .hd-progress {
  font-size: 16px;
}
#demo-root .hd-field {
  font-size: 18px;
}
#demo-root .hd-field textarea,
#demo-root .hd-field input {
  font-size: 25px;
}
#demo-root .hd-micro {
  display: none;
}
#demo-root .hd-source {
  font-size: 15px;
  margin-top: 9px;
}
#demo-root .hd-panel-head {
  font-size: 14px;
}
#demo-root .hd-pill {
  font-size: 13px;
}
#demo-root .hd-word {
  font-size: 23px;
}
#demo-root .hd-picture {
  font-size: 19px;
}
#demo-root .hd-json {
  font-size: 14px;
}
#demo-root .hd-log-tools .hd-btn {
  font-size: 14px;
  min-height: 36px;
}
#demo-root .hd-ipad-bar {
  font-size: 14px;
}
@media (max-width: 1150px) and (min-width: 801px) {
  #demo-root .hd-main.without-logs {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  #demo-root .hd-main.with-logs {
    grid-template-columns: 160px minmax(0, 1.4fr) minmax(270px, 1fr);
  }
  #demo-root .hd-nav-item {
    font-size: 14px;
  }
  #demo-root .hd-instruction {
    font-size: 21px;
  }
  #demo-root .hd-cue strong {
    font-size: 23px;
  }
}
@media (max-width: 800px) {
  #demo-root .hd-main.without-logs,
  #demo-root .hd-main.with-logs {
    display: flex;
  }
  #demo-root .hd-top .hd-btn {
    font-size: 12px;
    padding: 6px;
  }
  #demo-root .hd-brand strong {
    font-size: 19px;
  }
  #demo-root .hd-top-actions {
    gap: 5px;
  }
  #demo-root .hd-nav-item {
    font-size: 15px;
  }
  #demo-root .hd-instruction {
    font-size: 21px;
  }
  #demo-root .hd-cue strong {
    font-size: 23px;
  }
}

/* Let the iPad screen scroll when the picture grid exceeds the viewport. */
#demo-root .hd-task.hd-memory {
  height: auto;
  min-height: 100%;
}
#demo-root .hd-memory .hd-picture-grid {
  flex: none;
  grid-auto-rows: minmax(100px, auto);
}
