/* Static planner proof only; no controller or shared device rules. */
.screen-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.screen-detail .screen-detail__cards.planner-flow-grid {
  flex: 1 1 600px;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.screen-detail__figure {
  flex: 0 1 290px;
  width: 100%;
  max-width: 290px;
  min-width: 0;
  margin: 0 auto;
}

.screen-detail__device {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 25px 9px 11px;
  border: 1px solid #646c63;
  border-radius: 36px;
  background: linear-gradient(115deg, #c7ccc3, #555e54 7%, #19251e 12%, #354237 88%, #aab4a5);
  box-shadow: 0 18px 28px -21px #183b32a6, inset 0 0 0 2px #e1e5d65c;
}

.screen-detail__device::before {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% - 18px);
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: #09120c;
}

.screen-detail__screen {
  display: block;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 18px;
  background: #04140d;
}

.screen-detail__screen img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 390 / 844;
  object-fit: contain;
  margin: 0;
  border: 0;
}

.screen-detail__figure figcaption {
  margin: 18px 0 0;
  color: #46594f;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 999px) {
  .screen-detail .screen-detail__cards.planner-flow-grid {
    flex-basis: 100%;
  }
}

@media (max-width: 599px) {
  .screen-detail .screen-detail__cards.planner-flow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
