body:has(.sc-page) { background: #f3faf8; }
.sc-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  color: #134e4a;
}
.sc-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #0f766e;
  font-weight: 700;
}
.sc-title {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.sc-lead {
  margin: 0;
  line-height: 1.7;
  color: #3f4f4d;
  word-break: keep-all;
  line-break: strict;
}
.sc-privacy {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #ecfdf5;
  color: #115e59;
  font-size: 0.92rem;
  line-height: 1.6;
}
.sc-panel {
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
}
.sc-drop {
  border: 1.5px dashed #99f6e4;
  border-radius: 16px;
  background: #f0fdfa;
  min-height: 148px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.4rem 1rem;
  cursor: pointer;
}
.sc-drop.is-over {
  border-color: #0f766e;
  background: #ccfbf1;
}
.sc-drop__title {
  margin: 0;
  font-weight: 700;
}
.sc-drop__note {
  margin: 0.35rem 0 0;
  color: #5b6b69;
  font-size: 0.92rem;
}
.sc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.sc-actions button,
.sc-sample,
.sc-reset {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
}
.sc-actions button:last-child,
.sc-sample,
.sc-reset {
  background: #f0fdfa;
  color: #0f766e;
}
.sc-fold {
  margin-top: 0.85rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}
.sc-fold summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
}
.sc-fold p,
.sc-samples {
  margin: 0;
  padding: 0 1rem 1rem;
}
.sc-samples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.2rem, 1fr));
  gap: 0.45rem;
}
.sc-sample {
  font-size: 0.86rem;
  padding: 0.6rem 0.7rem;
  white-space: nowrap;
}
.sc-progress,
.sc-summary,
.sc-side {
  margin-top: 1rem;
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}
.sc-progress__track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.45rem 0;
}
.sc-progress__bar {
  height: 100%;
  width: 0;
  background: #0f766e;
}
.sc-summary--high { background: #fef2f2; }
.sc-summary--caution { background: #fffbeb; }
.sc-summary--calm { background: #eff6ff; }
.sc-summary__title { margin: 0 0 0.25rem; font-weight: 700; }
.sc-summary__body { margin: 0; }
.sc-layout {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
@media (min-width: 860px) {
  .sc-layout { grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr); align-items: start; }
}
.sc-stage {
  position: relative;
  background: #0f172a;
  border-radius: 16px;
  overflow: auto;
  max-height: 78vh;
}
.sc-stage img { display: block; width: 100%; height: auto; }
.sc-boxes { position: absolute; inset: 0; }
.sc-box {
  position: absolute;
  border: 2px solid #f59e0b;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.sc-box--high { border-color: #dc2626; }
.sc-box--caution { border-color: #d97706; }
.sc-box--info { border-color: #2563eb; }
.sc-box.is-active { outline: 3px solid #fff; }
.sc-side { margin-top: 0; }
.sc-side h2 { margin: 0 0 0.4rem; font-size: 1rem; }
.sc-counts, .sc-items { list-style: none; margin: 0; padding: 0; }
.sc-count, .sc-item {
  display: flex;
  gap: 0.4rem;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  padding: 0.55rem 0;
  font: inherit;
  cursor: pointer;
}
.sc-count { cursor: default; font-weight: 700; }
.sc-count--high, .is-high { color: #b91c1c; }
.sc-count--caution, .is-caution { color: #b45309; }
.sc-count--info, .is-info { color: #1d4ed8; }
.sc-item__text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
}
.sc-item.is-active { background: #f0fdfa; }
.sc-detail {
  margin-top: 0.7rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: #f8fafc;
}
.sc-detail__label { margin: 0; font-weight: 700; }
.sc-detail__text { margin: 0.25rem 0; word-break: break-all; }
.sc-detail__level { margin: 0; }
.sc-reset { width: 100%; margin-top: 0.8rem; }
.sc-notes { color: #92400e; font-size: 0.92rem; }
.sc-fold--note p { line-height: 1.7; color: #3f4f4d; }
.sc-help { margin: 0.9rem 0 0; }
.sc-help a { color: #0f766e; }
.sc-camera {
  width: min(36rem, calc(100vw - 2rem));
  border: 0;
  border-radius: 16px;
  padding: 1rem;
}
.sc-camera::backdrop { background: rgba(15, 23, 23, 0.55); }
.sc-camera__title { margin: 0 0 0.7rem; font-weight: 700; }
.sc-camera video {
  display: block;
  width: 100%;
  max-height: 60vh;
  background: #111;
  border-radius: 12px;
  object-fit: contain;
}
.sc-camera__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.sc-camera__actions button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
}
.sc-camera__actions button:last-child {
  background: #f0fdfa;
  color: #0f766e;
}
@media (max-width: 640px) {
  .sc-actions { grid-template-columns: 1fr; }
}