/* Visual screenshot layouts for the English Smart Planner guide. */
.manual-shot {
  box-sizing: border-box;
  margin: 20px 0 0;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #f8fafc;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.manual-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
}

.manual-shot figcaption {
  padding: 10px 4px 2px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.manual-shot-single {
  width: min(60%, 390px);
  margin: 22px auto 0;
}

.backup-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.backup-step-list > div {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #fff;
}

.backup-step-list span {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
}

.backup-step-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.manual-shot-grid {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.manual-shot-grid .manual-shot {
  width: 100%;
  margin: 0;
}

.manual-shot-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-shot-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backup-shot-grid {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.manual-mini-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.manual-mini-flow span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.manual-mini-flow b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
}

.guide-section {
  scroll-margin-top: 96px;
}

@media (max-width: 900px) {
  .manual-shot-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-mini-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .backup-shot-grid {
    width: 100%;
  }

  .manual-shot-grid-two,
  .manual-shot-grid-three {
    grid-template-columns: 1fr;
  }

  .manual-shot-grid .manual-shot,
  .manual-shot-single {
    width: 60%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    border-radius: 14px;
  }

  .manual-shot img {
    border-radius: 10px;
  }

  .manual-shot figcaption {
    padding: 8px 2px 2px;
    font-size: 13px;
    line-height: 1.45;
  }

  .manual-mini-flow {
    display: none;
  }

  .backup-step-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .manual-shot-grid .manual-shot,
  .manual-shot-single {
    width: 60%;
  }
}

.guide-content img.is-zoomable {
  cursor: zoom-in;
}

.guide-content img.is-zoomable:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.guide-image-zoom {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .88);
}

.guide-image-zoom.is-open {
  display: grid;
}

.guide-image-zoom img {
  display: block;
  max-width: min(94vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.guide-image-zoom button {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.guide-zoom-open {
  overflow: hidden;
}

/* Manual step cards and screen location labels */
.manual-shot { position: relative; }
.manual-shot-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}
.manual-step-list { display: grid; gap: 22px; }
.manual-step-card {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 22px;
  border: 1px solid #dbe4ef;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f8fbff);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
}
.manual-step-copy { display: flex; gap: 14px; position: sticky; top: 104px; }
.manual-step-copy h3 { margin: 2px 0 8px; color: #111827; font-size: 21px; }
.manual-step-copy p { margin: 0; color: #64748b; line-height: 1.7; }
.manual-step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
}
.manual-step-shot { width: min(60%, 390px); margin: 0 auto; }
@media (max-width: 900px) {
  .manual-step-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .manual-step-copy { position: static; }
}
@media (max-width: 620px) {
  .manual-step-card { padding: 14px; border-radius: 20px; }
  .manual-step-copy h3 { font-size: 19px; }
  .manual-step-shot { width: 60%; max-width: 220px; padding: 5px; border-radius: 14px; }
  .manual-shot-label { top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 5px 8px; font-size: 10px; }
}

/* Highlighted form regions for Routine Loop steps */
.manual-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
}
.manual-image-frame > img {
  border-radius: 13px;
}
.routine-step-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 9px 2px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 5px 14px rgba(37,99,235,.20);
}
.routine-focus-box {
  position: absolute;
  z-index: 3;
  top: var(--focus-top);
  left: var(--focus-left);
  width: var(--focus-width);
  height: var(--focus-height);
  box-sizing: border-box;
  border: 3px solid #2563eb;
  border-radius: 12px;
  background: rgba(37, 99, 235, .035);
  box-shadow: 0 0 0 1px rgba(255,255,255,.82), 0 8px 20px rgba(37,99,235,.14);
  pointer-events: none;
}
@media (max-width: 620px) {
  .manual-image-frame,
  .manual-image-frame > img { border-radius: 10px; }
  .routine-step-badge { margin-bottom: 6px; padding: 4px 7px; font-size: 9px; }
  .routine-focus-box { border-width: 2px; border-radius: 8px; }
}


/* Focus Timer four-step composite */
.focus-flow-shot {
  width: 95%;
  max-width: 95% !important;
  margin: 20px auto 18px;
  padding: 10px;
  overflow: hidden;
}
.focus-flow-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.focus-ko-grid {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}
.focus-ko-grid .manual-shot {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.focus-ko-grid .manual-shot img {
  border: 0;
  border-radius: 0;
  transform: scale(1.1);
  transform-origin: center;
}
.focus-flow-copy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}
.focus-flow-copy article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid #dbe5f1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 64, 175, .06);
}
.focus-flow-copy article > span {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #1677ed;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}
.focus-flow-copy h3 {
  margin: 1px 0 6px;
  font-size: 16px;
  line-height: 1.3;
}
.focus-flow-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .focus-flow-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .focus-flow-shot { padding: 5px; border-radius: 14px; }
  .focus-flow-shot img { border-radius: 10px; }
  .focus-ko-grid { width: 100%; }
  .focus-ko-grid .manual-shot {
    width: 95%;
    max-width: 360px;
  }
  .focus-flow-copy { grid-template-columns: 1fr; gap: 10px; }
  .focus-flow-copy article { padding: 13px; }
}
