/* Visual theme only: keep the original player media and interaction model. */
.robot {
  background: var(--paper, #fafaf7);
}

.robot .wrap {
  width: min(1160px, calc(100% - 80px));
}

.robot .section-head {
  margin-bottom: 28px;
}

.robot .section-head p {
  max-width: 520px;
}

.robot .visual-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 22px;
  color: var(--muted, #5c696a);
  font-size: 13px;
}

.robot .visual-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.robot .visual-key .badge {
  padding: 5px 10px;
  border: 1px solid var(--line, #d9dfda);
  border-radius: 999px;
  background: var(--teal-light, #e8f3ee);
  color: var(--teal-dark, #07584f);
  font-size: 12px;
  font-weight: 600;
}

.robot-list {
  display: grid;
  gap: 24px;
}

.robot-case {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line, #d9dfda);
  border-radius: 7px;
  background: var(--white, #fff);
}

.robot .case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 24px;
  padding: 24px 26px 22px;
}

.case-heading {
  display: flex;
  align-items: flex-start;
  flex: 1 1 430px;
  min-width: 0;
  gap: 15px;
}

.case-heading > div {
  min-width: 0;
}

.case-index {
  flex: none;
  padding-top: 5px;
  color: var(--teal, #0b746a);
  font: 500 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.robot .case-head h3 {
  margin: 0;
  color: var(--ink, #152b29);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.robot .case-head p {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--muted, #5c696a);
  font-size: 14px;
  line-height: 1.55;
}

.robot .case-head .method-tabs {
  display: flex;
  flex-wrap: wrap;
  flex: 0 1 auto;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line, #d9dfda);
  border-radius: 24px;
  background: var(--paper, #fafaf7);
}

.robot .method-tabs button {
  min-height: 38px;
  margin: 0;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #5c696a);
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.robot .method-tabs button:hover {
  background: var(--teal-light, #e8f3ee);
  color: var(--teal-dark, #07584f);
}

.robot .method-tabs button[aria-pressed="true"] {
  background: var(--teal, #0b746a);
  color: var(--white, #fff);
  box-shadow: none;
  font-weight: 600;
}

.robot-player {
  --accent: var(--teal, #0b746a);
  --line: #d9dfda;
  padding: 0 26px 22px;
  color: var(--ink, #152b29);
}

.robot-player:focus-visible,
.robot .method-tabs button:focus-visible,
.transport button:focus-visible,
.transport input:focus-visible {
  outline: 2px solid var(--teal-dark, #07584f);
  outline-offset: 3px;
}

.sync-row {
  border-color: var(--line, #d9dfda);
  border-radius: 5px;
  background: var(--white, #fff);
}

.sync-panel {
  background: var(--white, #fff);
}

.sync-panel.media video {
  background: var(--white, #fff);
}

.sync-panel.sim {
  border-left: 1px solid var(--line, #d9dfda);
  background: radial-gradient(ellipse at 50% 20%, #fff, #f2f5f0);
}

.panel-tag {
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border: 1px solid rgb(21 43 41 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: var(--ink, #152b29);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tactile-tag {
  left: calc(70.32967% + 10px);
}

.orbit-hint {
  right: 12px;
  bottom: 10px;
  padding: 3px 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 86%);
  color: var(--muted, #5c696a);
  font-size: 12px;
  line-height: 1.3;
}

.model-status {
  color: var(--muted, #5c696a);
  font-size: 13px;
}

.model-status[hidden] {
  display: none;
}

.transport {
  gap: 12px;
  padding-top: 14px;
}

.transport .play {
  width: 42px;
  height: 42px;
  border: 1px solid var(--teal, #0b746a);
  background: var(--teal, #0b746a);
  color: var(--white, #fff);
  font-size: 16px;
  transition: background-color 150ms ease;
}

.transport .play:hover {
  border-color: var(--teal-dark, #07584f);
  background: var(--teal-dark, #07584f);
}

.transport .track {
  height: 34px;
}

.transport .track::before {
  top: 14.5px;
  height: 5px;
}

.transport input {
  height: 34px;
}

.transport input::-webkit-slider-thumb {
  box-shadow: none;
}

.transport .time {
  min-width: 114px;
  color: var(--muted, #5c696a);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.transport .speeds {
  gap: 4px;
}

.transport .speeds button {
  min-width: 36px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--line, #d9dfda);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--muted, #5c696a);
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
}

.transport .speeds button:hover {
  border-color: var(--teal, #0b746a);
  color: var(--teal-dark, #07584f);
}

.transport .speeds button[aria-pressed="true"] {
  border-color: var(--line, #d9dfda);
  background: var(--teal-light, #e8f3ee);
  color: var(--teal-dark, #07584f);
  font-weight: 600;
}

.clip-note {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--muted, #5c696a);
  font-size: 12px;
  line-height: 1.55;
}

.clip-note:empty {
  display: none;
}

.clip-note.player-error {
  color: #923c2d;
}

@media (max-width: 800px) {
  .robot .wrap {
    width: calc(100% - 40px);
  }

  .robot .case-head {
    gap: 18px;
    padding: 20px 20px 18px;
  }

  .case-heading {
    flex-basis: 100%;
  }

  .robot .case-head .method-tabs {
    width: 100%;
  }

  .robot .method-tabs button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .robot-player {
    padding: 0 20px 20px;
  }

  .sync-panel.sim {
    border-top: 1px solid var(--line, #d9dfda);
    border-left: 0;
  }

  .sync-panel.media .panel-tag {
    top: 7px;
    left: 7px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .sync-panel.media .tactile-tag {
    left: calc(70.32967% + 5px);
  }

  .orbit-hint {
    font-size: 11px;
  }

  .transport {
    gap: 9px;
  }

  .transport .time {
    min-width: 100px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .robot .wrap {
    width: calc(100% - 32px);
  }

  .robot-list {
    gap: 20px;
  }

  .robot .visual-key {
    gap: 10px 16px;
    font-size: 12px;
  }

  .robot .case-head {
    padding: 18px 14px 16px;
  }

  .case-heading {
    gap: 11px;
  }

  .case-index {
    padding-top: 3px;
    font-size: 12px;
  }

  .robot .case-head h3 {
    font-size: 21px;
  }

  .robot .case-head p {
    margin-top: 6px;
    font-size: 13px;
  }

  .robot .method-tabs button {
    padding-inline: 9px;
  }

  .robot-player {
    padding: 0 14px 18px;
  }

  .panel-tag {
    font-size: 11px;
  }

  .transport .play {
    width: 40px;
    height: 40px;
  }

  .clip-note {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .robot .method-tabs button,
  .transport .play {
    transition: none;
  }
}
