/* 쏘코스(2026-11-14) — GPX 올리기 → 지도·고도 그래프 → 자르기·지우기·정리 → 내려받기. */

.ssocourse-main {
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.ssocourse-main .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 단추 — 이 쪽 전용(주관회원 화면 스타일을 싣지 않으려고) */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sc-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.sc-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.sc-btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.sc-btn-primary:hover:not(:disabled) {
  color: #fff;
  filter: brightness(1.08);
}
.sc-drop-error {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fde8e8;
  color: #b42318;
  font-size: 0.86rem;
  text-align: center;
}

/* 빈 화면 — 끌어다 놓기 */
.sc-empty {
  max-width: 720px;
  margin: 1rem auto 0;
}
.sc-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  border: 2px dashed var(--border);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sc-drop:hover,
.sc-drop.is-over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.sc-drop-icon {
  color: var(--accent);
}
.sc-drop b {
  font-size: 1.05rem;
}
.sc-drop-or {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sc-drop-btn {
  padding: 10px 22px;
  font-size: 0.95rem;
}
.sc-drop-from {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sc-privacy {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* 편집 화면 */
.sc-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-top: 1rem;
}
.sc-name-label {
  display: block;
  margin: 0 0 4px 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
/* 폰에서는 이름 칸이 한 줄 전체 — 단추 둘과 나란히 두면 이름이 잘려 이름 칸인지 모른다. */
@media (max-width: 640px) {
  .sc-topbar .sc-name {
    flex: 1 1 100%;
  }
}
.sc-name {
  flex: 1;
  min-width: 0;
}
.sc-name input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}
.sc-name input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: var(--accent);
}
.sc-hint {
  margin: 8px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.sc-map {
  position: relative;
  height: min(52vh, 460px);
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
/* 지도에서 고치기(2026-11-15) */
.sc-mapedit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sc-mapedit-row,
.sc-mapedit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sc-mapedit-bar {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  font-size: 0.84rem;
}
.sc-mapedit-bar > span {
  font-weight: 700;
  margin-right: auto;
}
.sc-mapedit-help {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sc-btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
}
.sc-seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sc-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sc-seg-btn + .sc-seg-btn {
  border-left: 1px solid var(--border);
}
.sc-seg-btn.is-on,
.sc-seg-btn:has(input:checked) {
  background: var(--accent);
  color: #fff;
}
.sc-seg-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -4px 0 12px;
  font-size: 0.84rem;
}
.sc-target label {
  font-weight: 700;
}
.sc-target input {
  width: 110px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.sc-target-diff {
  font-weight: 700;
}
.sc-target-diff.is-off {
  color: #b42318;
}
.sc-target-diff.is-ok {
  color: #1a8f52;
}
.sc-map.is-failed {
  display: grid;
  place-items: center;
  padding: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
}
.sc-hover-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff3d8b; /* 내 자리 — 지점(주황)과 헷갈리지 않게 분홍(11/16) */
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.sc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.sc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sc-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.sc-stat b {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}
.sc-chart-wrap {
  position: relative;
  height: 170px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sc-chart {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.sc-hover {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: #1a1d21;
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
}
.sc-chart-help {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
/* [내 홈페이지에 넣기] 안내 말풍선(11/23) — 마우스를 올리거나 키보드로 고르면 위에 뜬다 */
.sc-tip-wrap {
  position: relative;
  display: inline-flex;
}
.sc-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 4px;
  width: max-content;
  max-width: min(340px, 86vw);
  word-break: keep-all;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.sc-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}
.sc-tip-wrap:hover .sc-tip,
.sc-tip-wrap:focus-within .sc-tip {
  display: flex;
}
@media (hover: none) {
  .sc-tip-wrap:hover .sc-tip,
  .sc-tip-wrap:focus-within .sc-tip {
    display: none;
  }
}
.sc-download {
  margin-left: auto;
  padding: 8px 18px;
}
.sc-msg {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.sc-msg.is-warn {
  background: #fff4e5;
  color: #8a4b00;
}
.sc-disclaimer {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .sc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-stat:nth-child(5) {
    display: none;
  }
  .sc-download {
    margin-left: 0;
    width: 100%;
  }
}

/* ── 2단계(2026-11-14): 목록·상세·올리기 ─────────────────────────────── */
.sc-btn-danger {
  color: #b42318;
}
.sc-btn-danger:hover:not(:disabled) {
  border-color: #b42318;
  color: #b42318;
}
.sc-btn.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
a.sc-btn {
  text-decoration: none;
}
.sc-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.sc-link:disabled {
  text-decoration: none;
  cursor: default;
}

/* 만들기 카드 */
.sc-make {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 1rem 0;
}
.sc-make-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.sc-make-card:hover {
  border-color: var(--accent);
}
.sc-make-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e7eefe;
  color: #2f6fed;
}
.sc-make-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sc-make-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 탭·거르기 */
.sc-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.sc-tab {
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sc-tab.is-on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.sc-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sc-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.sc-chip.is-on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.sc-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sc-filter-row select,
.sc-filter-row input,
.sc-field select,
.sc-supply-row select,
.sc-qty,
.sc-field input[type="search"],
.sc-field input[type="text"],
.sc-field textarea {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}
.sc-filter-row input {
  flex: 1;
  min-width: 160px;
}

/* 카드 */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.sc-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.sc-card:hover {
  border-color: var(--accent);
}
.sc-card-thumb {
  position: relative;
  height: 110px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.sc-card-line {
  width: 100%;
  height: 100%;
}
.sc-card-line path {
  fill: none;
  stroke: #1a5cff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.sc-card-line circle {
  fill: #1a8f52;
}
.sc-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #1a1d21;
  color: #fff;
}
.sc-badge.is-warn {
  left: auto;
  right: 6px;
  background: #b42318;
}
.sc-card-title {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-card-meta,
.sc-card-react {
  font-size: 0.76rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-card-nums {
  font-size: 0.86rem;
  font-weight: 700;
}
.sc-list-status {
  margin: 18px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.sc-more-row {
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}

/* 올리기 */
.sc-publish-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sc-publish-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sc-save {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sc-save-title {
  margin: 0;
  font-size: 1rem;
}
.sc-save-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.82rem;
  font-weight: 700;
}
.sc-field textarea {
  resize: vertical;
  font-weight: 400;
}
.sc-visibility {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}
.sc-visibility legend {
  width: 100%;
  margin-bottom: 4px;
}
.sc-visibility label,
.sc-reasons label {
  font-weight: 400;
  font-size: 0.86rem;
}
.sc-save-check {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sc-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 상세 */
.sc-owner-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 0.84rem;
}
.sc-body {
  margin: 14px 0 0;
  white-space: pre-wrap;
  line-height: 1.6;
}
.sc-owner-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.sc-report {
  margin-top: 16px;
}
.sc-reasons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 640px) {
  .sc-save-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .sc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sc-card-thumb {
    height: 90px;
  }
}

/* ── 3단계(2026-11-14): 대회 코스 ─────────────────────────────── */
.sc-event {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
}
.sc-event-fixed {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}
.sc-event-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  font-size: 0.84rem;
}
.sc-event-result {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.sc-event-band {
  margin: 6px 0 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: #e4f7ec;
  color: #1a6b40;
  font-size: 0.86rem;
}
.sc-event-band a {
  color: inherit;
  font-weight: 700;
}
.sc-badge-state {
  left: auto;
  right: 6px;
}
.sc-badge-state.is-ok {
  background: #1a8f52;
}
.sc-badge-state.is-pending {
  background: #b98900;
}
.sc-badge-state.is-warn {
  background: #b42318;
}
.sc-card-event {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.sc-org-actions {
  margin: 10px 0 14px;
}
.sc-schedule-courses {
  margin: 18px 0;
}

/* ── GPS 기록(2026-11-14) ─────────────────────────────── */
.sc-make-icon.is-record {
  background: #fdecdc;
  color: #e36a00;
}
.sc-rec-start,
.sc-rec-resume {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 1rem auto 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sc-rec-resume p {
  margin: 0;
}
.sc-rec-warn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 0.84rem;
}
.sc-rec-guide {
  margin: 0;
  padding: 12px 14px 12px 32px;
  border-radius: 10px;
  background: #f3f6fb;
  color: #1a2b4c;
  font-size: 0.88rem;
  line-height: 1.55;
}
.sc-rec-guide li + li {
  margin-top: 4px;
}
.sc-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  background: #eefaf2;
  color: #17603a;
}
.sc-check > b {
  width: 1.2em;
  text-align: center;
}
.sc-check > span {
  flex: 1 1 12em;
}
.sc-check.is-warn {
  background: #fff4e5;
  color: #8a4b00;
}
.sc-check.is-bad {
  background: #fdecec;
  color: #a12020;
}
.sc-check.is-todo {
  background: #f3f4f6;
  color: #4b5563;
}
.sc-check-fix {
  padding: 6px 10px;
  font-size: 0.82rem;
}
.sc-rec-live .sc-checks {
  margin-bottom: 8px;
}
#rcLiveTip.is-warn {
  color: #a12020;
  font-weight: 600;
}
.sc-rec-login {
  gap: 8px;
  margin-top: 1rem;
  padding: 16px;
  background: #eef3ff;
  color: #1a2b4c;
  font-size: 0.92rem;
}
.sc-rec-login .sc-btn {
  align-self: flex-start;
  margin-top: 4px;
  text-decoration: none;
}
.sc-rec-big {
  padding: 14px 18px;
  font-size: 1rem;
}
.sc-rec-status {
  margin: 1rem 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #e4f7ec;
  color: #1a6b40;
  font-weight: 700;
  font-size: 0.9rem;
}
.sc-rec-status.is-paused {
  background: #fff4e5;
  color: #8a4b00;
}
.sc-rec-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sc-rec-map {
  height: min(46vh, 420px);
}
.sc-rec-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.sc-rec-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .sc-rec-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-rec-stats .sc-stat:nth-child(5) {
    display: none;
  }
}

/* ── 지도에 그리기(2026-11-14) ─────────────────────────────── */
.sc-make-icon.is-draw {
  background: #e4f7ec;
  color: #1a8f52;
}
.sc-draw-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-top: 1rem;
}
.sc-draw-map {
  height: min(60vh, 560px);
}

/* ── 4단계(2026-11-14): 지점·운영 시트 ─────────────────────────────── */
.sc-org-course {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-org-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* 이름·코스 고치기(11/17)는 한 줄 전체 — 아래 두 단추(지점·운영 관리·운영 시트)는 그대로 반씩. */
.sc-org-course-actions .sc-btn:first-child {
  flex-basis: 100%;
}
.sc-org-course-actions .sc-btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 6px 8px;
}
.sc-points-map {
  height: min(50vh, 440px);
  margin-top: 10px;
}
.sc-points-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.sc-point {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sc-point-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* 접기/펴기(11/17) — 머리 줄을 누르면 펴진다. 접힌 채로 이름·담당자가 보인다. */
.sc-point-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 0;
  margin-right: auto;
  padding: 2px 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.sc-point-toggle b {
  flex: none;
}
.sc-point-caret {
  flex: none;
  display: inline-block;
  width: 1em;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.sc-point.is-open .sc-point-caret {
  transform: rotate(90deg);
}
.sc-point-sum {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.sc-point-body {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.sc-point.is-open .sc-point-body {
  display: flex;
}
.sc-point-people {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}
.sc-people-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-people-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-people-role {
  flex: none;
  min-width: 6.5em;
  font-weight: 600;
}
.sc-people-row select {
  flex: 1;
  min-width: 0;
}
.sc-people-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-people-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}
.sc-people-item.is-lead {
  border-color: #f0b46a;
}
.sc-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sc-person-kind {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.76rem;
}
.sc-point-warn {
  font-size: 0.78rem;
  color: #b42318;
}
.sc-danger-link {
  color: #b42318;
}
.sc-point-part {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.86rem;
}
.sc-point-part.is-staff {
  background: #fff8ec;
}
.sc-point-assigns,
.sc-point-supplies {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
}
.sc-point-label {
  font-weight: 700;
}
.sc-supply-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}
.sc-supply-row select {
  flex: 1;
  min-width: 0;
}
.sc-qty {
  width: 90px;
}
.sc-points-save {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 0;
  background: linear-gradient(transparent, var(--surface) 30%);
}
.sc-wp-box {
  margin-top: 14px;
}
.sc-wp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}
.sc-wp-caution {
  color: #b42318;
}
/* 운영 시트 */
.sc-sheet-people {
  white-space: nowrap;
}
.sc-sheet-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sc-sheet-meta {
  color: var(--text-muted);
}
.sc-sheet-map svg {
  width: 100%;
  height: auto;
  max-height: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.sc-sheet-map path {
  fill: none;
  stroke: #1a5cff;
  stroke-width: 3;
  stroke-linejoin: round;
}
.sc-sheet-map circle {
  fill: #fff;
  stroke: #e36a00;
  stroke-width: 3;
}
.sc-sheet-map text {
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
}
.sc-sheet-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.sc-sheet-table th,
.sc-sheet-table td {
  padding: 6px 8px;
  border: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.sc-sheet-table th {
  background: var(--bg);
  white-space: nowrap;
}
@media print {
  .organizer-topbar,
  .organizer-sidebar,
  .sc-sheet-tools {
    display: none !important;
  }
  .organizer-main {
    margin: 0 !important;
    padding: 0 !important;
  }
  .sc-sheet {
    box-shadow: none !important;
    border: 0 !important;
  }
  .sc-sheet-table tr {
    break-inside: avoid;
  }
}

/* 임베드 코드(2026-11-14) */
.sc-org-embed-btn {
  font-size: 0.8rem;
  padding: 6px 8px;
}
.sc-embed-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.84rem;
}
.sc-embed-panel[hidden] {
  display: none;
}
.sc-embed-allow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}
.sc-embed-allow input {
  margin-top: 3px;
  flex: none;
}
.sc-embed-allow small {
  display: block;
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
}
.sc-detail-embed {
  margin-top: 10px;
}
/* GPS 대회 배번 비공개 안내(2026-11-27) */
.sc-gps-race-warn {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 700;
  color: #d32f2f;
}
/* GPS 대회 규모·승인 줄(2026-11-27) */
.sc-gps-race-help {
  display: block;
  margin-top: 4px;
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
  line-height: 1.45;
}
.sc-gps-race-lines {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.45;
}
.sc-gps-race-lines li {
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
}
.sc-gps-race-lines .is-ok {
  background: #e8f6ee;
  color: #146c43;
}
.sc-gps-race-lines .is-warn {
  background: #fff6e0;
  color: #8a5a00;
}
.sc-gps-race-lines .is-off {
  background: #fdecec;
  color: #a12828;
}
.sc-embed-code {
  width: 100%;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  resize: none;
}
.sc-embed-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 갈림길 종목별 방향(2026-11-14) */
.sc-branches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-branch-row {
  display: grid;
  grid-template-columns: 70px 110px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.sc-branch-row select,
.sc-branch-row input {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 0.84rem;
}
.sc-wp-list li.is-junction,
.ec-points li.is-junction {
  padding: 6px 8px;
  border-radius: 8px;
  background: #eef3ff;
}
.wp-branch-mine {
  font-weight: 800;
  color: #1a4fd1;
}
.wp-branch-others {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.wp-caution {
  color: #b42318;
}

/* 따라가기(2026-11-14) */
.sc-follow-alert {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
}
.sc-follow-alert.is-off {
  background: #b42318;
  color: #fff;
  animation: sc-blink 1s step-start infinite;
}
.sc-follow-alert.is-ok {
  background: #e4f7ec;
  color: #1a6b40;
}
/* GPS 대회 판정 대기(2026-11-27) — 깜빡이지 않는 안내 */
.sc-follow-alert.is-info {
  background: #eef3ff;
  color: #1a4fd1;
}
@keyframes sc-blink {
  50% {
    opacity: 0.75;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sc-follow-alert.is-off {
    animation: none;
  }
}
.sc-follow-next {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef3ff;
  color: #1a4fd1;
  font-weight: 800;
}
.sc-follow-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin: 10px 0;
}
.sc-follow-sound {
  font-size: 0.86rem;
}
.sc-follow-start {
  width: 100%;
}
.sc-btn-follow {
  border-color: #1a8f52;
  color: #1a8f52;
}

/* 코스 변경 알림(2026-11-14) */
.sc-change-band {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 0.86rem;
  font-weight: 700;
}
/* GPS 대회(11/26) — 따라가기 맨 위 내 배번 띠 */
.sc-race-band {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef3ff;
  color: #173a8a;
  font-size: 0.88rem;
  line-height: 1.5;
}
.sc-race-band.is-ok { background: #e8f7ee; color: #1b5e34; }
.sc-race-band.is-warn { background: #fff4e5; color: #8a4b00; }
.sc-race-band a { font-weight: 700; white-space: nowrap; }
.sc-badge.sc-badge-change {
  top: auto;
  bottom: 6px;
  left: 6px;
  background: #e36a00;
}

/* ── 지점 사진·GPS 기록 중 지점 메모(2026-11-15) ─────────────────────────────── */
.sc-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.sc-photos img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.sc-photo-edit {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-photo-item {
  position: relative;
}
.sc-photo-rm {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}
.sc-photo-add {
  align-self: flex-start;
  cursor: pointer;
}
.sc-photo-add[hidden] {
  display: none;
}
.sc-rec-point {
  margin-top: 12px;
}
.sc-rec-points {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
}
.sc-rec-points li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
}

/* 따라가기 출발점 확인(2026-11-15) */
.sc-follow-startcheck {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8ec;
  border: 1px solid #f3d19c;
}
.sc-follow-startcheck b {
  font-size: 1.15rem;
}
.sc-follow-startcheck span {
  font-size: 0.86rem;
}
.sc-follow-startcheck[hidden] {
  display: none;
}

/* ── 전체 화면 작업(2026-11-15) — courseFocus.js ─────────────────────────────── */
.sc-focus-head {
  display: none;
}
body.sc-focus-open {
  overflow: hidden;
}
.sc-focus {
  position: fixed;
  inset: 0;
  z-index: 100000;
  margin: 0 !important;
  max-width: none !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg, #f5f7fb);
  overflow: hidden;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sc-focus > * {
  flex-shrink: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.sc-focus .sc-focus-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-focus .sc-focus-head b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}
.sc-focus-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  font-size: 18px;
  cursor: pointer;
}
.sc-focus .sc-focus-hide,
.sc-focus .sc-focus-open-btn {
  display: none !important;
}
.sc-focus .sc-map {
  flex: 1 1 auto;
  min-height: 160px;
  height: auto !important;
}
/* 숫자 칸은 한 줄로 작게 */
.sc-focus .sc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
}
.sc-focus .sc-stat {
  padding: 6px 8px;
}
.sc-focus .sc-stat span {
  font-size: 0.7rem;
}
.sc-focus .sc-stat b {
  font-size: 0.95rem;
}
.sc-focus .sc-rec-stats .sc-stat:nth-child(5) {
  display: block;
}
.sc-focus .sc-follow-alert,
.sc-focus .sc-follow-startcheck {
  padding: 10px 12px;
}
/* 따라가기: 설정과 시작/멈춤을 한 줄로 */
.sc-focus .sc-follow-foot {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.sc-focus .sc-follow-foot .sc-follow-bar {
  flex: 1;
  margin: 0;
}
.sc-focus .sc-follow-foot .sc-follow-start {
  flex: 1;
  margin: 0;
}
/* GPS 기록: 지점 메모는 아래에서 올라오는 판으로 */
.sc-focus .sc-rec-point {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78%;
  overflow: auto;
  z-index: 5;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.sc-focus .sc-rec-points {
  max-height: 16vh;
  overflow: auto;
}
.sc-focus .sc-rec-buttons {
  margin: 0;
}
/* 편집기: 그래프는 낮게 */
.sc-focus .sc-chart-wrap {
  height: 96px;
}
.sc-focus .sc-tools {
  flex-wrap: wrap;
}
/* 지점 관리: 휴대폰은 지도 위·카드 아래(스크롤), PC는 지도 왼쪽·카드 오른쪽 */
.sc-focus .sc-points-list {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
}
.sc-focus.sc-points-card .sc-map {
  flex: 1 1 0;
}
@media (min-width: 900px) {
  .sc-focus.sc-points-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-rows: auto auto 1fr auto auto;
    column-gap: 14px;
  }
  .sc-focus.sc-points-card > * {
    grid-column: 1 / -1;
  }
  .sc-focus.sc-points-card .sc-map {
    grid-column: 1;
    grid-row: 3 / 6;
  }
  .sc-focus.sc-points-card .sc-points-list {
    grid-column: 2;
    grid-row: 3;
  }
  .sc-focus.sc-points-card .sc-points-save,
  .sc-focus.sc-points-card .sc-msg {
    grid-column: 2;
  }
}

.sc-point-part[hidden] {
  display: none;
}

/* 탭 네 개(대회 코스 추가, 11/15) — 폰에서 '전체 코/스'로 꺾이지 않게 한 줄로, 넘치면 옆으로 민다 */
.sc-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.sc-tabs::-webkit-scrollbar {
  display: none;
}
.sc-tab {
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (max-width: 480px) {
  .sc-tabs {
    gap: 0;
  }
  .sc-tab {
    flex: 1 0 auto;
    padding: 8px 6px;
    font-size: 0.9rem;
  }
}

/* 편집기 지점 고치기 판(11/15) — 평소엔 지도 아래, 전체 화면에선 아래에서 올라오는 판 */
.sc-wp-sheet {
  margin-top: 10px;
}
.sc-focus .sc-wp-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78%;
  overflow: auto;
  z-index: 5;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
/* 전체 화면 편집기가 휴대폰에서 아래 단추를 가리던 것(11/15) — 도구 줄은 한 줄로 옆으로 밀고, 설명 글은 감추고,
   그래도 넘치면 판 전체를 스크롤해서라도 닿게 한다 */
.sc-focus {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sc-focus .sc-mapedit {
  padding: 8px;
}
.sc-focus .sc-mapedit-help,
.sc-focus .sc-chart-help {
  display: none;
}
.sc-focus .sc-mapedit-row,
.sc-focus .sc-tools {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.sc-focus .sc-mapedit-row > *,
.sc-focus .sc-tools > * {
  flex: 0 0 auto;
  white-space: nowrap;
}
.sc-focus .sc-tools .sc-btn {
  padding: 8px 12px;
}
.sc-focus .sc-target {
  gap: 6px;
}
@media (max-width: 640px) {
  .sc-focus .sc-chart-wrap {
    height: 80px;
  }
  .sc-focus .sc-map {
    min-height: 220px;
  }
  .sc-focus .sc-mapedit .sc-seg-btn {
    padding: 6px 10px;
  }
}

/* 기록 중 [기록 취소](11/15) — 세 단추 아래 작은 글씨 단추. */
.sc-rec-cancel {
  display: block;
  margin: 6px auto 0;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: #dc2626;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.sc-focus .sc-rec-cancel {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 6px 14px;
}

/* 지도 지점 말풍선(11/15) — 점을 누르면 그 지점 글·주의·사진. 목록 줄을 눌러도 열린다. */
.sc-wp-pop {
  margin: 0;
  padding: 2px 2px 0 1.3rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1a1d21;
  list-style: decimal;
}
.sc-wp-pop li > b {
  display: block;
  padding-right: 14px;
  margin-bottom: 2px;
}
.sc-wp-pop .sc-photos img {
  width: 84px;
  height: 84px;
}
.maplibregl-popup-content:has(.sc-wp-pop) {
  border-radius: 12px;
  padding: 12px 12px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.maplibregl-popup-close-button {
  font-size: 20px;
  width: 28px;
  height: 28px;
}
li.is-tappable {
  cursor: pointer;
}

/* 같이 따라가기(11/15·11/16) — 사람마다 분홍 점(자리) 위에 프로필 원이 붙는다. 이름은 지도 오른쪽 아래 순위 목록에. */
.sc-follow-crew {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1a5cff;
}
.sc-live-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}
.sc-live-face {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #7c3aed;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex: 0 0 auto;
}
.sc-live-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-live-stem {
  width: 3px;
  height: 7px;
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}
.sc-live-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff3d8b;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.sc-live-pin.is-me .sc-live-face {
  border-color: #ff3d8b;
}
.sc-live-pin.is-off .sc-live-face {
  border-color: #f59e0b;
}
.sc-live-pin.is-stale {
  opacity: 0.55;
}
.sc-live-board {
  position: absolute;
  right: 8px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 62%;
}
.sc-live-board[hidden] {
  display: none;
}
.sc-live-rank {
  margin: 0;
  padding: 6px 8px;
  list-style: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 168px;
  overflow-y: auto;
}
.sc-live-rank li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #1a1d21;
}
.sc-live-rank li.is-me {
  font-weight: 800;
}
.sc-live-rank-no {
  width: 14px;
  text-align: center;
  color: #5f6b7a;
  font-size: 0.74rem;
}
.sc-live-face-sm {
  width: 24px;
  height: 24px;
  border-width: 2px;
  font-size: 11px;
  box-shadow: none;
}
.sc-live-rank-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-live-rank-km {
  flex: 0 0 auto;
  color: #ff3d8b;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sc-live-fold {
  border: 1px solid #e2e5ea;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1d21;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sc-live-rank-pace {
  flex: 0 0 auto;
  color: #5f6b7a;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

/* 페이스 칸(11/25) — 따라가기 숫자 칸이 여섯이 됐다. 넓은 화면 6칸 한 줄, 휴대폰 3칸 두 줄(다섯째 칸 숨김 규칙 풀기). */
.sc-follow-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .sc-follow-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sc-follow-stats .sc-stat:nth-child(5) {
    display: flex;
  }
}

/* 운동 종류·케이던스(11/25) — 따라가기 숫자 칸 위 한 줄 */
.sc-activity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff0f6;
  color: #c2185b;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sc-activity[hidden] {
  display: none;
}

/* 스마트워치·글라스로 따라가기 안내(11/25) — 코스 상세. 제목 줄은 파란 큰 버튼(대표님: 더 눈에 띄게), GPX 내려받기는 그 아래 흰 버튼. */
.sc-watch-help {
  margin: 12px 0 0;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.85rem;
  overflow: hidden;
}
.sc-watch-help summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.sc-watch-help summary::-webkit-details-marker {
  display: none;
}
.sc-watch-help summary::after {
  content: '▾';
  font-size: 0.9em;
  transition: transform 0.15s;
}
.sc-watch-help[open] summary::after {
  transform: rotate(180deg);
}
.sc-watch-help summary:hover {
  filter: brightness(1.08);
}
/* 따라가기 방법 네 칸(11/25) — 폰·워치·글라스·관전. 좁은 화면은 2×2 */
.sc-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sc-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 84px;
  padding: 12px 6px;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sc-mode:last-child {
  border-right: 0;
}
.sc-mode:hover,
.sc-mode[aria-expanded='true'] {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.sc-mode[aria-disabled='true'] {
  cursor: default;
  opacity: 0.55;
}
.sc-mode[aria-disabled='true']:hover {
  background: var(--surface);
}
.sc-mode-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sc-mode-top b {
  font-size: 1.15rem;
  font-weight: 800;
}
.sc-mode-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-mode small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
.sc-mode.is-live small {
  color: #1a7f37;
  font-weight: 700;
}
.sc-mode-panel {
  padding: 2px 14px 12px;
  border-top: 1px solid var(--border);
}
.sc-mode-panel li a { white-space: nowrap; font-weight: 600; }
.sc-mode-panel p {
  margin: 10px 0;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .sc-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-mode:nth-child(2n) {
    border-right: 0;
  }
  .sc-mode:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}
.sc-watch-help ul {
  margin: 10px 0 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
}

/* 쏘톡 워치 연결(11/25) — watch.html */
.sc-watch-steps {
  margin: 12px 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}
.sc-watch-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.sc-watch-form #wtCode {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}
.sc-watch-form .sc-msg.is-ok {
  color: #1a7f37;
}
.sc-watch-list-box {
  margin-top: 24px;
}
.sc-watch-list-box h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.sc-watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}
.sc-watch-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.sc-watch-list li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sc-watch-list small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* 관전하기(11/25) — 지도 아래 순위 목록 */
.sc-spectate-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-spectate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.sc-spectate-row.is-stale {
  opacity: 0.6;
}
.sc-spectate-no {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
}
.sc-spectate-who {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-spectate-who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-spectate-who small {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-spectate-who small.sc-spectate-motion {
  color: #c2185b;
  font-weight: 700;
}
.sc-spectate-who small.is-off {
  color: #d93025;
}
.sc-spectate-km {
  flex: 0 0 auto;
  color: #ff3d8b;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sc-spectate-pace {
  flex: 0 0 auto;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.sc-spectate-pace small {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.sc-spectate-empty {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
}
.sc-spectate-empty span {
  color: var(--text-muted);
}
.sc-spectate-actions {
  margin-top: 14px;
}
.sc-spectate #lvStatus {
  margin: 0 0 8px;
}
#scSpectate.is-live {
  border-color: #ff3d8b;
  color: #ff3d8b;
  font-weight: 700;
}

.sc-live-terms {
  margin-left: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
}

/* 휴대폰 웹 → 쏘톡 앱 안내(11/17) — 늘 보이게, 위쪽 제목 아래. */
.sc-app-notice {
  margin: 8px 0 12px;
  background: #eef3ff;
  color: #1d3f9c;
}

/* 코스로 돌아가기(11/25) — 따라가기·관전 맨 위 */
.sc-back-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 4px 0 2px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.sc-back-top:hover {
  text-decoration: underline;
}

/* GPS 대회 공식 참가(11/26) */
.sc-race-attempt { display: inline-block; margin-top: 2px; font-size: 0.84rem; }
.sc-race-start {
  margin-top: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #1a5cff;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.sc-race-start:disabled { opacity: 0.5; }
/* 참가 확인 — 휴대전화 뒤 4자리 + 참가 확인 코드(11/27) */
.sc-race-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.sc-race-claim input {
  flex: 1 1 8em;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #c9d2e3;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  background: #fff;
  color: #111;
}
.sc-race-claim .sc-race-start { margin-top: 0; }
.sc-race-claim .sc-race-note { flex-basis: 100%; margin-top: 0; }
.sc-race-note { display: block; margin-top: 6px; font-size: 0.78rem; opacity: 0.85; }
.sc-race-save {
  margin-left: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.sc-race-saved { display: block; margin-top: 4px; font-size: 0.82rem; font-weight: 700; }

/* GPS 대회 결과표(3단계, 11/26) — 코스 상세 아래 */
.sc-race-results { margin-top: 18px; padding: 14px; border: 1px solid #e6e9f0; border-radius: 12px; background: #fff; }
.sc-rr-meta { margin: 4px 0 10px; font-size: 0.85rem; color: #555; }
.sc-rr-group + .sc-rr-group { margin-top: 14px; }
.sc-rr-gender { margin: 0 0 6px; font-size: 0.95rem; }
.sc-rr-scroll { overflow-x: auto; }
.sc-rr-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sc-rr-table th, .sc-rr-table td { padding: 7px 8px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: top; }
.sc-rr-table th { background: #f6f8fb; font-weight: 700; white-space: nowrap; }
.sc-rr-rank { width: 3em; font-weight: 800; text-align: center !important; }
.sc-rr-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-rr-table tr.is-extra td { color: #888; }
.sc-rr-verdict { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.sc-rr-verdict.is-ok { background: #e8f7ee; color: #1b5e34; }
.sc-rr-verdict.is-extra { background: #f1f1f1; color: #777; }
.sc-rr-why { display: block; margin-top: 2px; font-size: 0.76rem; }
.sc-rr-note, .sc-rr-empty { margin: 10px 0 0; font-size: 0.8rem; color: #777; }
/* 칸: 순위 · 닉네임(배번) · 기록 · 기기(11/27) · 코스 */
.sc-rr-table { table-layout: fixed; }
.sc-rr-table th { white-space: normal; word-break: keep-all; }
.sc-rr-table th:nth-child(1) { width: 52px; }
.sc-rr-table th:nth-child(3) { width: 84px; }
.sc-rr-table th:nth-child(4) { width: 22%; }
.sc-rr-table th:nth-child(5) { width: 22%; }
.sc-rr-device { font-size: 0.78rem; color: #555; word-break: keep-all; overflow-wrap: normal !important; }
@media (max-width: 560px) {
  .sc-rr-table th, .sc-rr-table td { padding: 6px 4px; }
  .sc-rr-table th:nth-child(1) { width: 34px; }
  .sc-rr-table th:nth-child(3) { width: 62px; }
  .sc-rr-table th:nth-child(4) { width: 80px; }
  .sc-rr-table th:nth-child(5) { width: 52px; }
}
.sc-rr-table td { overflow-wrap: anywhere; }
