.training-studio {
  display: grid;
  grid-template-rows: auto minmax(85px,1fr) auto auto;
  min-height: 0;
  overflow: hidden;
  color: #fff4dc;
  border: 1px solid #9d7c51;
  border-radius: 9px;
  background: #201b19;
  font: 500 clamp(11px,1.8vmin,15px)/1.18 Inter,sans-serif;
}
.training-brief {
  display: flex;
  align-items: baseline;
  gap: 7px;
  background: #34271e;
  padding: 7px 10px;
}
.training-brief b, .training-helper b { color: #ffdb92; }
.training-camera {
  --training-x: 30%;
  --training-y: 62%;
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  border-block: 1px solid #856642;
  min-height: 0;
  touch-action: none;
  cursor: crosshair;
  background: #302419 url(assets/scenes/boots.webp) center / cover;
}
.training-camera::before { content: ''; position: absolute; inset: 0; background: #1b130ed4; pointer-events: none; }
.training-product {
  width: min(100%,540px);
  height: 100%;
  min-height: 0;
  position: relative;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.training-focus {
  position: absolute;
  left: var(--training-x);
  top: var(--training-y);
  width: clamp(58px,27%,160px);
  height: 64%;
  transform: translate(-50%,-50%);
  border: 2px dashed #ffda88;
  box-shadow: 0 0 0 100vmax #17100c38;
  pointer-events: none;
}
.training-focus span { position: absolute; inset: calc(50% - 1px) calc(50% - 8px); height: 2px; background: currentColor; }
.training-focus span::after { content: ''; position: absolute; top: -7px; left: 7px; width: 2px; height: 16px; background: currentColor; }
.training-camera[data-assisted=true] .training-focus { width: clamp(80px,43%,225px); height: 76%; }
.training-camera[data-focus=true] .training-focus { color: #c9ff9a; border-color: currentColor; border-style: solid; }
.training-meter { position: absolute; top: 5px; left: 7px; padding: 3px 5px; background: #161613e8; border: 1px solid #baa476; border-radius: 4px; color: #fff5d4; pointer-events: none; }
.training-glint {
  position: absolute;
  top: 46%;
  left: var(--training-light);
  width: 38px;
  height: 26px;
  background: radial-gradient(ellipse,#fff6ca,#fcca675e 26%,transparent 68%);
  pointer-events: none;
  opacity: .28;
}
.training-camera[data-lit=true] .training-glint { opacity: 1; }
.training-controls {
  display: flex;
  align-items: center;
  gap: 5px 9px;
  padding: 4px 7px;
}
.training-controls button { margin: 0; min-height: 30px; }
.training-helper { display:flex; align-items:center; text-align:left; gap:5px; padding:2px 5px; }
.training-helper img { width: 28px; height: 28px; border-radius:50%; object-fit:cover; }
.training-helper small, .training-controls [data-training-offer] small { display:block; }
.training-controls [data-training-offer] { flex:1; }
.training-controls [data-training-shutter] { margin-left:auto; white-space:nowrap; }
.training-note { min-height: 17px; padding:3px 7px; color:#ebd7b6; }
.training-camera[data-captured=true] { animation: training-shutter .35s ease-out; }
.training-camera[data-captured=true] .training-glint { opacity: 0; }
@keyframes training-shutter { from { filter: brightness(1.8); } to { filter: brightness(1); } }
@media (max-width: 380px) {
  .training-brief { display: grid; gap: 2px; padding: 4px 6px; }
  .training-helper img { width:22px;height:22px; }
  .training-controls { gap:4px;padding:3px 4px; }
  .training-controls [data-training-apply] { min-height:20px;font-size:10px;padding:2px 3px; }
}
@media (max-height: 430px) and (orientation: landscape) {
  .training-brief, .training-controls, .training-note { padding-block: 2px; }
  .training-product { width: min(100%, 80vmin); object-fit: cover; }
  .training-helper img { width:22px;height:22px; }
}
@media (prefers-reduced-motion: reduce) {
  .training-camera[data-captured=true] { animation:none; }
  .training-glint { left: 50%; }
}
