.pcs-root,
.pcs-root * {
  box-sizing: border-box;
}

.pcs-root {
  --pcs-primary: #07345b;
  --pcs-accent: #169da1;
  --pcs-highlight: #e8b348;
  --pcs-ink: #132337;
  --pcs-muted: #5d6d7e;
  --pcs-line: #d8e1e8;
  --pcs-surface: #ffffff;
  --pcs-soft: #f2f7f9;
  --pcs-danger: #b33a3a;
  --pcs-success: #13765c;
  width: 100%;
  max-width: 1240px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid var(--pcs-line);
  border-radius: 24px;
  background: var(--pcs-surface);
  color: var(--pcs-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  box-shadow: 0 18px 60px rgba(7, 52, 91, 0.13);
}

.pcs-root button,
.pcs-root select,
.pcs-root input {
  font: inherit;
}

.pcs-root button {
  cursor: pointer;
}

.pcs-noscript {
  padding: 18px;
  background: #fff4d6;
  color: #644800;
}

.pcs-hero {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: center;
  padding: 34px 38px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 86% -20%, rgba(22, 157, 161, 0.7), transparent 36%),
    linear-gradient(125deg, var(--pcs-primary), #08294a 68%, #0b4163);
}

.pcs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 18px 18px;
}

.pcs-brand-mark,
.pcs-hero-copy,
.pcs-hero-pulse {
  position: relative;
  z-index: 1;
}

.pcs-brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: #82d2d4;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.pcs-brand-mark svg {
  width: 52px;
  height: 52px;
}

.pcs-eyebrow {
  margin-bottom: 3px;
  color: #9ce0df;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pcs-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.pcs-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.pcs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.pcs-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.76rem;
}

.pcs-hero-pulse {
  color: var(--pcs-highlight);
  opacity: 0.9;
}

.pcs-hero-pulse svg {
  width: 100%;
}

.pcs-hero-pulse path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: pcs-heartline 3.2s linear infinite;
}

@keyframes pcs-heartline {
  0% { stroke-dashoffset: 280; opacity: 0; }
  12% { opacity: 1; }
  72% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.pcs-progress-wrap {
  padding: 15px 28px 16px;
  border-bottom: 1px solid var(--pcs-line);
  background: #fbfdfe;
}

.pcs-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
  color: var(--pcs-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.pcs-progress-track,
.pcs-quality-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8ec;
}

.pcs-progress-fill,
.pcs-quality-fill {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pcs-accent), #53c3b2);
  transition: width 280ms ease;
}

.pcs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 680px;
}

.pcs-station-nav {
  padding: 18px 14px;
  border-right: 1px solid var(--pcs-line);
  background: #f6fafb;
}

.pcs-station-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 3px 0;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: #526273;
  text-align: left;
  background: transparent;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.pcs-station-button:hover {
  color: var(--pcs-primary);
  background: #eaf2f5;
}

.pcs-station-button[aria-current="step"] {
  color: var(--pcs-primary);
  background: #fff;
  box-shadow: 0 5px 18px rgba(7, 52, 91, 0.1);
  transform: translateX(2px);
}

.pcs-station-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--pcs-primary);
  background: #dcecef;
  font-size: 0.76rem;
  font-weight: 850;
}

.pcs-station-button[aria-current="step"] .pcs-station-num {
  color: #fff;
  background: var(--pcs-primary);
}

.pcs-station-name {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcs-station-done {
  color: var(--pcs-success);
  font-size: 0.85rem;
}

.pcs-stage {
  min-width: 0;
  padding: 34px;
  outline: none;
}

.pcs-stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 25px;
}

.pcs-station-kicker {
  margin-bottom: 4px;
  color: var(--pcs-accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pcs-stage h3 {
  margin: 0;
  color: var(--pcs-primary);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.18;
}

.pcs-stage-lead {
  max-width: 800px;
  margin: 8px 0 0;
  color: var(--pcs-muted);
  font-size: 1rem;
}

.pcs-time-chip {
  padding: 7px 10px;
  border: 1px solid var(--pcs-line);
  border-radius: 999px;
  color: var(--pcs-muted);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.pcs-grid-2,
.pcs-grid-3 {
  display: grid;
  gap: 18px;
}

.pcs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pcs-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--pcs-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 52, 91, 0.055);
}

.pcs-card h4 {
  margin: 0 0 8px;
  color: var(--pcs-primary);
  font-size: 1.02rem;
}

.pcs-card p:last-child,
.pcs-card ul:last-child,
.pcs-card ol:last-child {
  margin-bottom: 0;
}

.pcs-icon-card {
  position: relative;
  overflow: hidden;
}

.pcs-icon-card::before {
  content: attr(data-icon);
  position: absolute;
  right: 10px;
  top: -14px;
  color: var(--pcs-accent);
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.08;
}

.pcs-callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--pcs-accent);
  border-radius: 0 12px 12px 0;
  color: #244256;
  background: #edf8f8;
}

.pcs-callout-warning {
  border-left-color: var(--pcs-highlight);
  background: #fff8e8;
}

.pcs-callout-danger {
  border-left-color: var(--pcs-danger);
  background: #fff1f1;
}

.pcs-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcs-checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--pcs-line);
  border-radius: 12px;
  background: #fbfdfe;
}

.pcs-checklist input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pcs-accent);
}

.pcs-preset-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
  align-items: stretch;
}

.pcs-probe-illustration {
  display: grid;
  place-items: center;
  min-height: 310px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--pcs-primary);
  background:
    radial-gradient(circle at 50% 30%, rgba(22,157,161,.18), transparent 35%),
    linear-gradient(150deg, #eef7f8, #dcebef);
}

.pcs-probe-illustration svg {
  width: min(210px, 78%);
  filter: drop-shadow(0 18px 14px rgba(7, 52, 91, .14));
}

.pcs-control-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}

.pcs-control-row label {
  color: var(--pcs-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.pcs-control-row output {
  color: var(--pcs-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pcs-root input[type="range"] {
  width: 100%;
  accent-color: var(--pcs-accent);
}

.pcs-patient-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--pcs-line);
  border-radius: 12px;
  background: #eff5f6;
}

.pcs-patient-switch button {
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--pcs-muted);
  background: transparent;
}

.pcs-patient-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--pcs-primary);
}

.pcs-position-scene {
  position: relative;
  min-height: 330px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--pcs-line);
  border-radius: 20px;
  background: linear-gradient(#eef7f8 0 74%, #d6e2e6 74% 100%);
}

.pcs-bed {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 54px;
  height: 58px;
  border-radius: 18px 18px 8px 8px;
  background: #9eb7c0;
  box-shadow: 0 12px 0 #7895a0;
}

.pcs-patient {
  position: absolute;
  left: 20%;
  bottom: 107px;
  width: 60%;
  height: 112px;
  transform-origin: 50% 100%;
  transition: transform 350ms ease;
}

.pcs-patient.is-lateral {
  transform: rotate(-9deg) translateY(-7px);
}

.pcs-patient-head {
  position: absolute;
  right: 2%;
  top: 17px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #c88f71;
}

.pcs-patient-body {
  position: absolute;
  left: 2%;
  right: 65px;
  top: 28px;
  height: 74px;
  border-radius: 54px 36px 28px 28px;
  background: #d7a183;
}

.pcs-patient-heart {
  position: absolute;
  left: 57%;
  top: 42px;
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
  border-radius: 6px 14px 14px 14px;
  background: #b94e58;
  animation: pcs-beat 1s ease-in-out infinite;
}

@keyframes pcs-beat {
  0%, 100% { transform: rotate(45deg) scale(1); }
  45% { transform: rotate(45deg) scale(1.13); }
}

.pcs-view-trainer {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.pcs-torso-panel,
.pcs-ultrasound-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--pcs-line);
  border-radius: 20px;
  background: #f8fbfc;
}

.pcs-torso-workspace {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  aspect-ratio: 0.78;
  touch-action: none;
  user-select: none;
}

.pcs-torso-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pcs-torso-svg .pcs-skin {
  fill: #d7a183;
}

.pcs-torso-svg .pcs-outline {
  fill: none;
  stroke: #9b684f;
  stroke-width: 3;
  opacity: .58;
}

.pcs-torso-svg .pcs-rib {
  fill: none;
  stroke: rgba(255, 255, 255, .68);
  stroke-width: 6;
  stroke-linecap: round;
}

.pcs-torso-svg .pcs-sternum {
  fill: rgba(255, 255, 255, .68);
}

.pcs-torso-svg .pcs-heart-shape {
  fill: rgba(173, 48, 62, .34);
  stroke: rgba(137, 35, 47, .46);
  stroke-width: 2;
}

.pcs-target-zone {
  fill: rgba(22, 157, 161, .14);
  stroke: var(--pcs-accent);
  stroke-width: 3;
  stroke-dasharray: 7 7;
  animation: pcs-target 1.8s ease-in-out infinite;
}

@keyframes pcs-target {
  50% { opacity: .48; }
}

.pcs-target-zone.is-hidden {
  opacity: 0;
}

.pcs-probe-drag {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  width: 42px;
  height: 100px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 82%;
  filter: drop-shadow(0 10px 6px rgba(0,0,0,.2));
  cursor: grab;
}

.pcs-probe-drag:active { cursor: grabbing; }
.pcs-probe-drag:focus-visible { outline: 3px solid var(--pcs-highlight); outline-offset: 4px; }

.pcs-probe-handle {
  position: absolute;
  left: 8px;
  top: 0;
  width: 26px;
  height: 74px;
  border: 2px solid #0a2c4d;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(90deg, #0f4775, #2871a0 55%, #0c3155);
}

.pcs-probe-head {
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 40px;
  height: 31px;
  border: 2px solid #0a2c4d;
  border-radius: 7px 7px 17px 17px;
  background: linear-gradient(#4b91b2, #0d426b);
}

.pcs-probe-marker {
  position: absolute;
  right: 2px;
  bottom: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pcs-highlight);
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}

.pcs-guide-line {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 2px;
  height: 130px;
  transform-origin: top;
  opacity: .42;
  background: linear-gradient(var(--pcs-accent), transparent);
  pointer-events: none;
}

.pcs-quality {
  margin-top: 12px;
}

.pcs-quality-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--pcs-muted);
  font-size: .8rem;
  font-weight: 800;
}

.pcs-quality-fill {
  width: 0;
}

.pcs-guidance {
  min-height: 50px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #26475b;
  background: #eaf5f6;
  font-size: .85rem;
}

.pcs-guidance.is-good {
  color: #0d583f;
  background: #e6f5ef;
}

.pcs-probe-buttons,
.pcs-view-toolbar,
.pcs-motion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pcs-mini-btn {
  padding: 8px 10px;
  border: 1px solid var(--pcs-line);
  border-radius: 10px;
  color: var(--pcs-primary);
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.pcs-mini-btn:hover,
.pcs-mini-btn[aria-pressed="true"] {
  border-color: var(--pcs-accent);
  background: #eaf7f7;
}

.pcs-ultrasound-screen {
  position: relative;
  overflow: hidden;
  border: 8px solid #15202b;
  border-radius: 15px;
  background: #020405;
  box-shadow: inset 0 0 40px #000, 0 12px 26px rgba(7, 52, 91, .16);
}

.pcs-ultrasound-screen::after {
  content: "SIMULATION — NOT A DIAGNOSTIC IMAGE";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  pointer-events: none;
}

.pcs-ultrasound-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
}

.pcs-screen-label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  color: #d7f4e7;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: 0 1px 2px #000;
}

.pcs-clock-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  padding: 13px;
  border: 1px solid var(--pcs-line);
  border-radius: 14px;
  background: #fff;
}

.pcs-clock {
  position: relative;
  width: 95px;
  aspect-ratio: 1;
  border: 2px solid var(--pcs-primary);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 49%, #edf5f6 50%);
}

.pcs-clock::before,
.pcs-clock::after {
  position: absolute;
  color: var(--pcs-muted);
  font-size: .63rem;
  font-weight: 800;
}

.pcs-clock::before { content: "12"; left: 50%; top: 3px; transform: translateX(-50%); }
.pcs-clock::after { content: "6"; left: 50%; bottom: 3px; transform: translateX(-50%); }

.pcs-clock-3,
.pcs-clock-9 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pcs-muted);
  font-size: .63rem;
  font-weight: 800;
}
.pcs-clock-3 { right: 5px; }
.pcs-clock-9 { left: 5px; }

.pcs-clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 35px;
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: 50% 100%;
  border-radius: 999px;
  background: var(--pcs-accent);
}

.pcs-clock-hand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pcs-highlight);
}

.pcs-view-facts {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcs-view-facts li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  font-size: .82rem;
}

.pcs-view-facts strong {
  color: var(--pcs-primary);
}

.pcs-motion-lab {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr);
  gap: 20px;
}

.pcs-motion-stage {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(circle at center, #edf7f8, #d9e8ec);
}

.pcs-motion-probe {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 60px;
  height: 155px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 82%;
  transition: transform 420ms ease;
}

.pcs-motion-probe .pcs-probe-handle { left: 13px; width: 34px; height: 115px; }
.pcs-motion-probe .pcs-probe-head { width: 58px; height: 43px; }
.pcs-motion-probe .pcs-probe-marker { right: 3px; bottom: 18px; width: 10px; height: 10px; }

.pcs-motion-plane {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 260px;
  height: 70px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(22,157,161,.6);
  border-radius: 50%;
  background: rgba(22,157,161,.08);
}

.pcs-motion-description {
  min-height: 90px;
  margin-top: 15px;
  padding: 15px;
  border-radius: 14px;
  color: #24475a;
  background: #eef7f8;
}

.pcs-optimization-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(280px, .85fr);
  gap: 20px;
}

.pcs-target-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.pcs-target-setting {
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  background: #edf5f6;
}

.pcs-target-setting b {
  display: block;
  color: var(--pcs-primary);
  font-size: 1rem;
}

.pcs-score-ring {
  --score: 0;
  display: grid;
  place-items: center;
  width: 130px;
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 50%;
  background: conic-gradient(var(--pcs-accent) calc(var(--score) * 1%), #dbe7ea 0);
}

.pcs-score-ring::before {
  content: attr(data-score) "%";
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--pcs-primary);
  background: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.pcs-case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.pcs-case-tab {
  padding: 9px 12px;
  border: 1px solid var(--pcs-line);
  border-radius: 999px;
  color: var(--pcs-muted);
  background: #fff;
  font-weight: 800;
}

.pcs-case-tab[aria-selected="true"] {
  border-color: var(--pcs-primary);
  color: #fff;
  background: var(--pcs-primary);
}

.pcs-case-choice,
.pcs-quiz-option {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 11px 13px;
  border: 1px solid var(--pcs-line);
  border-radius: 12px;
  color: var(--pcs-ink);
  text-align: left;
  background: #fff;
}

.pcs-case-choice:hover,
.pcs-quiz-option:hover {
  border-color: var(--pcs-accent);
  background: #f1f9f9;
}

.pcs-case-choice.is-correct,
.pcs-quiz-option.is-correct {
  border-color: var(--pcs-success);
  color: #0c5f45;
  background: #e7f6ef;
}

.pcs-case-choice.is-wrong,
.pcs-quiz-option.is-wrong {
  border-color: var(--pcs-danger);
  color: #8b2e2e;
  background: #fff0f0;
}

.pcs-feedback {
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #edf5f6;
}

.pcs-quiz-question {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pcs-line);
}

.pcs-quiz-question:last-child {
  border-bottom: 0;
}

.pcs-quiz-question h4 {
  margin: 0 0 8px;
}

.pcs-quiz-result {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #edf7f8;
}

.pcs-quiz-result.is-visible { display: block; }

.pcs-video-shell {
  overflow: hidden;
  border: 1px solid var(--pcs-line);
  border-radius: 18px;
  background: #08131f;
}

.pcs-video-shell iframe,
.pcs-video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.pcs-video-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  color: rgba(255,255,255,.78);
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(22,157,161,.25), transparent 28%),
    linear-gradient(145deg, #071d31, #0c3854);
}

.pcs-play-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-size: 1.7rem;
}

.pcs-completion {
  text-align: center;
}

.pcs-completion-badge {
  display: grid;
  place-items: center;
  width: 110px;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border: 6px solid #d5edf0;
  border-radius: 50%;
  color: #fff;
  background: var(--pcs-accent);
  font-size: 2.5rem;
  box-shadow: 0 10px 30px rgba(22,157,161,.28);
}

.pcs-record-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 560px;
  margin: 18px auto 0;
}

.pcs-record-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--pcs-line);
  border-radius: 11px;
}

.pcs-learning-record {
  display: none;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 28px;
  border: 2px solid var(--pcs-primary);
  border-radius: 16px;
  text-align: left;
  background: #fff;
}

.pcs-learning-record.is-visible { display: block; }

.pcs-learning-record h4 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.pcs-reference-list {
  font-size: .8rem;
}

.pcs-reference-list li {
  margin-bottom: 6px;
}

.pcs-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 17px 26px;
  border-top: 1px solid var(--pcs-line);
  background: #fbfdfe;
}

.pcs-controls .pcs-next { justify-self: end; }
.pcs-controls .pcs-prev { justify-self: start; }
.pcs-control-center { text-align: center; }

.pcs-btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 11px;
  font-weight: 820;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.pcs-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pcs-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.pcs-btn-primary {
  border: 1px solid var(--pcs-primary);
  color: #fff;
  background: var(--pcs-primary);
  box-shadow: 0 7px 18px rgba(7,52,91,.17);
}

.pcs-btn-primary:hover:not(:disabled) { background: #0b416d; }

.pcs-btn-secondary {
  border: 1px solid var(--pcs-line);
  color: var(--pcs-primary);
  background: #fff;
}

.pcs-btn-ghost {
  border: 0;
  color: var(--pcs-muted);
  background: transparent;
  font-size: .78rem;
}

.pcs-mobile-nav {
  display: none;
  padding: 14px 18px;
  border-bottom: 1px solid var(--pcs-line);
  background: #f6fafb;
}

.pcs-mobile-nav label {
  display: block;
  margin-bottom: 5px;
  color: var(--pcs-primary);
  font-size: .75rem;
  font-weight: 800;
}

.pcs-station-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--pcs-line);
  border-radius: 10px;
  color: var(--pcs-primary);
  background: #fff;
}

@media (max-width: 1000px) {
  .pcs-hero { grid-template-columns: 62px minmax(0, 1fr); }
  .pcs-hero-pulse { display: none; }
  .pcs-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .pcs-station-name { font-size: .76rem; }
  .pcs-stage { padding: 26px; }
  .pcs-view-trainer,
  .pcs-motion-lab,
  .pcs-optimization-layout { grid-template-columns: 1fr; }
  .pcs-torso-workspace { max-width: 390px; }
}

@media (max-width: 760px) {
  .pcs-root {
    margin: 12px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .pcs-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 18px;
  }

  .pcs-brand-mark { width: 48px; height: 48px; border-radius: 14px; }
  .pcs-brand-mark svg { width: 36px; height: 36px; }
  .pcs-hero p { font-size: .9rem; }
  .pcs-meta span { font-size: .68rem; }

  .pcs-mobile-nav { display: block; }
  .pcs-station-nav { display: none; }
  .pcs-layout { display: block; min-height: 0; }
  .pcs-stage { padding: 22px 16px; }
  .pcs-stage-header { grid-template-columns: 1fr; gap: 8px; }
  .pcs-time-chip { justify-self: start; }
  .pcs-grid-2,
  .pcs-grid-3,
  .pcs-preset-panel { grid-template-columns: 1fr; }
  .pcs-view-trainer { grid-template-columns: 1fr; }
  .pcs-torso-panel,
  .pcs-ultrasound-panel { padding: 11px; }
  .pcs-torso-workspace { width: min(100%, 350px); }
  .pcs-control-row { grid-template-columns: 80px minmax(0, 1fr) 46px; gap: 8px; }
  .pcs-clock-card { grid-template-columns: 86px minmax(0, 1fr); }
  .pcs-clock { width: 80px; }
  .pcs-target-settings { grid-template-columns: 1fr; }
  .pcs-controls { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .pcs-control-center { display: none; }
  .pcs-btn { width: 100%; padding: 9px 10px; font-size: .8rem; }
  .pcs-record-form { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .pcs-hero { grid-template-columns: 1fr; }
  .pcs-brand-mark { display: none; }
  .pcs-meta { display: grid; }
  .pcs-progress-wrap { padding-inline: 16px; }
  .pcs-stage h3 { font-size: 1.45rem; }
  .pcs-view-facts li { grid-template-columns: 1fr; gap: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcs-root *,
  .pcs-root *::before,
  .pcs-root *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  body * { visibility: hidden !important; }
  .pcs-learning-record,
  .pcs-learning-record * { visibility: visible !important; }
  .pcs-learning-record {
    position: fixed;
    inset: 20px;
    display: block !important;
    margin: 0;
    border: 2px solid #000;
    box-shadow: none;
  }
  .pcs-learning-record .pcs-no-print { display: none !important; }
}
