html:has(.course-editor-page),
body:has(.course-editor-page),
html:has(.course-share-page),
body:has(.course-share-page) {
  height: auto;
  min-height: 100%;
}

body:has(.course-editor-page),
body:has(.course-share-page) {
  background: var(--cream);
}

body.course-sheet-open,
body.course-is-dragging {
  overflow: hidden;
}

.course-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.course-editor-page {
  min-height: 100dvh;
  padding: 0 var(--space-6) var(--space-7);
  background:
    radial-gradient(circle at 75% 12%, rgb(var(--accent-rgb) / 6%), transparent 28%),
    var(--cream);
}

.course-editor-workspace {
  display: grid;
  width: min(100%, 1360px);
  grid-template-areas: "document map";
  grid-template-columns: minmax(0, 760px) minmax(290px, 1fr);
  gap: var(--space-7);
  align-items: start;
  margin: 0 auto;
}

.course-editor-topbar {
  width: min(100%, 1360px);
}

.course-editor-live-map {
  position: sticky;
  top: var(--space-12);
  display: grid;
  height: calc(100dvh - 116px);
  min-height: 540px;
  max-height: 820px;
  grid-area: map;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-4);
  background: #e8e7e3;
}

.course-editor-live-map__header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: rgb(253 252 249 / 94%);
}

.course-editor-live-map__header p {
  margin: 0;
  color: var(--rose-600);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  letter-spacing: 0.16em;
}

.course-editor-live-map__header strong {
  display: block;
  margin-top: var(--space-1);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.course-editor-live-map__toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-1) 0 var(--space-3);
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--text-2xs);
  background: transparent;
  cursor: pointer;
}

.course-editor-live-map__toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform var(--duration-base) var(--ease-out);
}

.course-editor-live-map.is-expanded .course-editor-live-map__toggle svg {
  transform: rotate(180deg);
}

.course-editor-live-map__viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.course-editor-live-map__canvas {
  width: 100%;
  height: 100%;
}

.course-editor-live-map__canvas img[src*="map.naver.net"],
.course-editor-live-map__canvas img[src*="nrbe.pstatic.net"],
.course-editor-live-map__canvas img[src*="map.pstatic.net/nrb/"] {
  filter: grayscale(1) brightness(1.05) contrast(0.9);
}

.course-editor-live-map__status {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: none;
  place-items: center;
  margin: 0;
  padding: var(--space-6);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.65;
  text-align: center;
  background: rgb(248 246 242 / 90%);
}

.course-editor-live-map__status.is-visible {
  display: grid;
}

.course-editor-live-map__hint {
  position: absolute;
  z-index: 20;
  right: var(--space-3);
  bottom: var(--space-3);
  left: var(--space-3);
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgb(63 63 60 / 9%);
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: var(--text-2xs);
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
  word-break: keep-all;
  background: rgb(253 252 249 / 90%);
  box-shadow: 0 5px 18px rgb(49 48 45 / 7%);
  pointer-events: none;
}

.course-editor-map-candidate {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.course-editor-map-candidate span {
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 3px 9px rgb(70 58 49 / 20%);
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.course-editor-map-candidate:hover span,
.course-editor-map-candidate:focus-visible span {
  background: var(--rose-600);
  transform: scale(1.22);
}

.course-editor-map-candidate:focus-visible {
  outline: 2px solid rgb(var(--accent-rgb) / 42%);
  outline-offset: -7px;
}

.course-editor-map-stop-marker {
  width: 30px;
  height: 30px;
}

.course-editor-map-card {
  display: grid;
  width: 226px;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background: rgb(253 252 249 / 98%);
  box-shadow: 0 14px 38px rgb(49 48 45 / 13%);
}

.course-editor-map-card__media {
  display: grid;
  width: 64px;
  height: 64px;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius-2);
  color: var(--rose-600);
  font-family: var(--font-display);
  background: var(--rose-100);
}

.course-editor-map-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-editor-map-card__copy {
  min-width: 0;
}

.course-editor-map-card__copy small,
.course-editor-map-card__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-editor-map-card__copy small {
  color: var(--rose-600);
  font-size: var(--text-2xs);
}

.course-editor-map-card__copy strong {
  margin-top: var(--space-1);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
}

.course-editor-map-card__copy button {
  min-height: 32px;
  margin-top: var(--space-2);
  padding: 0 var(--space-3);
  border: 1px solid rgb(var(--accent-rgb) / 26%);
  border-radius: var(--radius-full);
  color: var(--rose-600);
  font-family: inherit;
  font-size: var(--text-2xs);
  background: rgb(var(--accent-rgb) / 7%);
  cursor: pointer;
}

.course-editor-topbar,
.course-share-topbar {
  display: flex;
  width: min(100%, 920px);
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.course-share-brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-display);
  text-decoration: none;
}

.course-topbar-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

.course-topbar-link:hover {
  color: var(--rose-600);
}

.course-editor-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.course-save-state {
  color: var(--muted);
  font-size: var(--text-2xs);
  letter-spacing: 0.03em;
}

.course-share-button {
  /* 모양은 .ds-btn.ds-btn--accent 가 갖습니다. */
  transition: opacity var(--duration-base) var(--ease-standard);
}

.course-share-button:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.course-share-button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.course-share-button--compact {
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
}

.course-editor-document {
  width: min(100%, 760px);
  grid-area: document;
  margin: 0;
  padding: var(--space-11) 0 var(--space-7);
}

.course-document-eyebrow,
.course-block-section__head p,
.course-add-sheet__header p,
.course-share-eyebrow,
.course-share-section-label,
.course-share-cta > p {
  margin: 0;
  color: var(--rose-600);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  letter-spacing: 0.18em;
}

.course-title-field {
  display: block;
  margin-top: var(--space-3);
}

.course-title-field input {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 68px);
  font-weight: var(--weight-display-strong);
  letter-spacing: -0.05em;
  line-height: 1.08;
  background: transparent;
}

.course-title-field input::placeholder {
  color: #bdb6af;
  opacity: 1;
}

.course-meta-fields {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.course-meta-fields label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-2xs);
}

.course-meta-fields input {
  min-height: 36px;
  padding: 0 var(--space-1);
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  background: transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}

.course-meta-fields input:focus {
  border-bottom-color: var(--rose-500);
}

.course-meta-fields__divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.course-block-section {
  margin-top: var(--space-9);
}

.course-block-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.course-block-section__head h2 {
  margin: var(--space-2) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
}

.course-add-button {
  /* 모양은 .ds-btn.ds-btn--secondary.ds-btn--icon 이 갖습니다.
     '＋' 글리프만 브랜드 핑크로 남깁니다. */
  color: var(--brand-pink-strong);
  font-size: var(--text-xl);
}

.course-add-button:hover {
  border-color: rgb(var(--accent-rgb) / 40%);
  transform: rotate(90deg);
}

.course-add-button--small {
  width: 38px;
  height: 38px;
  font-size: var(--text-lg);
}

.course-empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: var(--space-8) var(--space-5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.course-empty-state[hidden] {
  display: none;
}

.course-empty-state p {
  margin: 0;
  color: #8d8781;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.course-empty-state button {
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-1);
  border: 0;
  border-bottom: 1px solid var(--rose-500);
  color: var(--rose-600);
  font-size: var(--text-xs);
  background: transparent;
  cursor: pointer;
}

.course-blocks {
  position: relative;
}

.course-block {
  position: relative;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.course-block.is-dragging {
  z-index: 3;
  opacity: 0.46;
  transform: scale(0.985);
}

.course-block.is-drop-target::before {
  position: absolute;
  z-index: 5;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--rose-500);
  content: "";
}

.course-block.is-drop-target[data-drop-position="before"]::before {
  top: -10px;
}

.course-block.is-drop-target[data-drop-position="after"]::before {
  bottom: -10px;
}

.course-drag-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: -44px;
  display: grid;
  width: 34px;
  height: 44px;
  place-items: center;
  border: 0;
  color: #aaa39d;
  font-size: var(--text-lg);
  letter-spacing: -0.2em;
  background: transparent;
  cursor: grab;
  opacity: 0;
  transform: translateY(-50%);
  transition: color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
  touch-action: none;
}

.course-block:hover .course-drag-handle,
.course-drag-handle:focus-visible,
.course-is-dragging .course-drag-handle {
  opacity: 1;
}

.course-drag-handle:active {
  color: var(--rose-600);
  cursor: grabbing;
}

.course-place-block__card {
  display: grid;
  min-height: 152px;
  grid-template-columns: 154px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background: rgb(253 252 249 / 92%);
  box-shadow: 0 12px 34px rgb(49 48 45 / 4%);
}

.course-place-block__media {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  background: var(--rose-100);
}

.course-place-block__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-place-block__fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--rose-500);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
}

.course-place-block__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.course-place-block__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--rose-600);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
}

.course-place-block__meta time {
  color: var(--ink);
  font-weight: var(--weight-strong);
  letter-spacing: 0.02em;
}

.course-place-block h3 {
  margin: var(--space-2) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
}

.course-place-block__body > p {
  margin: var(--space-2) 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-place-block__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-3);
}

.course-place-block__remove,
.course-note-block__remove {
  padding: var(--space-1) 0;
  border: 0;
  color: #9a938d;
  font-size: var(--text-2xs);
  background: transparent;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.course-place-block__remove:hover,
.course-note-block__remove:hover {
  color: var(--rose-600);
}

.course-stay-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(63 63 60 / 10%);
  border-radius: var(--radius-full);
  color: var(--muted);
  background: rgb(255 255 255 / 56%);
}

.course-stay-stepper button {
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.course-stay-stepper button:hover:not(:disabled) {
  color: var(--rose-600);
  background: rgb(var(--accent-rgb) / 7%);
}

.course-stay-stepper button:disabled {
  opacity: 0.28;
  cursor: default;
}

.course-stay-stepper output {
  min-width: 60px;
  padding: 0 var(--space-1);
  color: var(--muted);
  font-size: var(--text-2xs);
  text-align: center;
}

.course-note-block {
  min-height: 116px;
  padding: var(--space-6) var(--space-9) var(--space-6) var(--space-10);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(var(--accent-rgb) / 3%);
}

.course-note-block__quote {
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  color: var(--rose-500);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1;
}

.course-note-block__text {
  min-height: 64px;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: keep-all;
}

.course-note-block__text:empty::before {
  color: #aaa39d;
  content: attr(data-placeholder);
}

.course-note-block__remove {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-3);
}

.course-walk-connector {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  padding-left: var(--space-11);
}

.course-walk-connector__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--space-7);
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgb(var(--accent-rgb) / 42%) 0 4px, transparent 4px 8px);
}

.course-walk-connector__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgb(var(--accent-rgb) / 18%);
  border-radius: var(--radius-full);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--text-2xs);
  background: rgb(253 252 249 / 84%);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.course-walk-connector__badge:hover {
  border-color: rgb(var(--accent-rgb) / 34%);
  background: rgb(253 252 249 / 100%);
}

.course-walk-connector__badge small {
  padding-left: var(--space-1);
  color: #98908a;
  font-size: var(--text-2xs);
  font-weight: var(--weight-regular);
}

.course-walk-connector__badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--rose-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.course-walk-connector--car .course-walk-connector__line {
  background: rgb(95 120 128 / 44%);
}

.course-walk-connector--car .course-walk-connector__badge {
  border-color: rgb(95 120 128 / 22%);
  color: #536c74;
  background: rgb(95 120 128 / 7%);
}

.course-walk-connector--car .course-walk-connector__badge svg {
  stroke: #5f7880;
}

.course-walk-connector--car .course-walk-connector__badge:hover {
  border-color: rgb(95 120 128 / 38%);
  background: rgb(95 120 128 / 11%);
}

.course-walk-connector--transit .course-walk-connector__line {
  background: rgb(100 92 132 / 44%);
}

.course-walk-connector--transit .course-walk-connector__badge {
  display: grid;
  max-width: min(100%, 520px);
  grid-template-columns: 14px minmax(0, 1fr);
  border-color: rgb(100 92 132 / 22%);
  border-radius: var(--radius-3);
  color: #5f587b;
  text-align: left;
  background: rgb(100 92 132 / 7%);
}

.course-walk-connector--transit .course-walk-connector__headline {
  grid-column: 2;
}

.course-walk-connector--transit .course-walk-connector__badge small {
  grid-column: 2;
  padding-left: 0;
}

.course-walk-connector--transit .course-walk-connector__badge svg {
  stroke: #645c84;
}

.course-walk-connector--transit .course-walk-connector__badge:hover {
  border-color: rgb(100 92 132 / 38%);
  background: rgb(100 92 132 / 11%);
}

.course-transit-timeline {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: var(--space-1) var(--space-1);
  margin: var(--space-1) 0 0;
  padding: 0;
  color: #6d6761;
  font-size: var(--text-2xs);
  line-height: 1.45;
  list-style: none;
  word-break: keep-all;
}

.course-transit-timeline__step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.course-transit-timeline__step + .course-transit-timeline__step::before {
  color: rgb(63 63 60 / 34%);
  content: "\2192";
}

.course-transit-timeline__step--bus {
  color: #765f4d;
}

.course-transit-timeline__step--subway {
  color: #5f587b;
}

.course-add-row {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  border: 1px dashed rgb(63 63 60 / 14%);
  border-radius: var(--radius-3);
  color: var(--muted);
  font-size: var(--text-xs);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.course-add-row:hover {
  border-color: rgb(var(--accent-rgb) / 36%);
  color: var(--rose-600);
  background: rgb(253 252 249 / 62%);
}

.course-add-row > span:first-child {
  font-size: var(--text-lg);
}

.course-editor-error {
  margin: var(--space-7) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgb(154 88 81 / 22%);
  border-radius: var(--radius-2);
  color: #825b57;
  font-size: var(--text-xs);
  line-height: 1.6;
  background: rgb(var(--accent-rgb) / 7%);
}

.course-summary-bar {
  position: sticky;
  z-index: 30;
  bottom: var(--space-4);
  display: flex;
  width: min(100%, 1360px);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin: var(--space-7) auto 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-4);
  background: rgb(253 252 249 / 94%);
  box-shadow: 0 16px 48px rgb(49 48 45 / 9%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.course-summary-bar__metrics {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.course-summary-bar__metrics p {
  margin: 0;
}

.course-summary-bar__metrics p + p {
  padding-left: var(--space-6);
  border-left: 1px solid var(--line);
}

.course-summary-bar__metrics span,
.course-summary-bar__metrics strong {
  display: block;
}

.course-summary-bar__metrics span {
  color: var(--muted);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
}

.course-summary-bar__metrics strong {
  margin-top: var(--space-1);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  white-space: nowrap;
}

.course-add-sheet[hidden] {
  display: none;
}

.course-add-sheet {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: var(--space-4);
  background: rgb(55 51 48 / 20%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.course-add-sheet.is-open {
  opacity: 1;
}

.course-add-sheet__panel {
  display: flex;
  width: min(100%, 520px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-4);
  background: var(--surface-solid);
  box-shadow: 0 22px 70px rgb(49 48 45 / 14%);
  transform: translateX(28px);
  transition: transform var(--duration-base) var(--sheet-ease);
}

.course-add-sheet.is-open .course-add-sheet__panel {
  transform: translateX(0);
}

.course-add-sheet__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--line);
}

.course-add-sheet__header h2 {
  margin: var(--space-2) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-heading);
}

.course-add-sheet__header button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: var(--text-xl);
  background: transparent;
  cursor: pointer;
}

.course-note-choice {
  display: grid;
  width: calc(100% - 48px);
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  margin: var(--space-5) var(--space-6) 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  color: var(--ink);
  text-align: left;
  background: rgb(var(--accent-rgb) / 4%);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.course-note-choice:hover {
  border-color: rgb(var(--accent-rgb) / 34%);
  background: rgb(var(--accent-rgb) / 7%);
}

.course-note-choice__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(var(--accent-rgb) / 24%);
  border-radius: var(--radius-2);
  color: var(--rose-600);
  font-family: var(--font-display);
  font-size: var(--text-base);
  background: var(--surface-solid);
}

.course-note-choice strong,
.course-note-choice small {
  display: block;
}

.course-note-choice strong {
  font-size: var(--text-sm);
}

.course-note-choice small {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--weight-regular);
  line-height: 1.45;
}

.course-place-picker {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: var(--space-6) var(--space-6) 0;
}

.course-place-picker__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.course-place-picker__heading strong {
  color: var(--ink);
  font-size: var(--text-xs);
}

.course-place-picker__heading span {
  color: var(--muted);
  font-size: var(--text-2xs);
}

.course-place-search {
  position: relative;
  display: block;
  margin-top: var(--space-3);
}

.course-place-search svg {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.4;
  transform: translateY(-50%);
}

.course-place-search input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4) 0 var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  outline: 0;
  color: var(--ink);
  font-size: var(--text-xs);
  background: #faf9f6;
}

.course-place-search input:focus {
  border-color: rgb(var(--accent-rgb) / 42%);
}

.course-place-categories {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-bottom: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
}

.course-place-categories::-webkit-scrollbar {
  display: none;
}

.course-place-categories button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: var(--text-2xs);
  background: transparent;
  cursor: pointer;
}

.course-place-categories button.is-active {
  border-color: var(--ink);
  color: var(--gray-0);
  background: var(--ink);
}

.course-place-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  scrollbar-color: rgb(63 63 60 / 14%) transparent;
  scrollbar-width: thin;
}

.course-place-option {
  display: grid;
  width: 100%;
  grid-template-columns: 70px minmax(0, 1fr) 30px;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) var(--space-1);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.course-place-option:hover {
  background: rgb(var(--accent-rgb) / 4%);
}

.course-place-option__media {
  display: grid;
  width: 70px;
  height: 70px;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius-2);
  color: var(--rose-600);
  font-family: var(--font-display);
  background: var(--rose-100);
}

.course-place-option__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-place-option__copy {
  min-width: 0;
}

.course-place-option__meta,
.course-place-option strong,
.course-place-option small {
  display: block;
}

.course-place-option__meta {
  overflow: hidden;
  color: var(--rose-600);
  font-size: var(--text-2xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-place-option strong {
  margin-top: var(--space-1);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-place-option small {
  margin-top: var(--space-1);
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--weight-regular);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-place-option__add {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose-600);
  font-size: var(--text-md);
}

.course-place-list__empty {
  margin: 0;
  padding: var(--space-9) var(--space-4);
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
}

.course-share-page {
  min-height: 100dvh;
  padding: 0 var(--space-6) var(--space-11);
  background:
    radial-gradient(circle at 72% 8%, rgb(var(--accent-rgb) / 7%), transparent 24%),
    var(--cream);
}

.course-share-document {
  width: min(100%, 820px);
  margin: 0 auto;
  padding-top: var(--space-10);
}

.course-share-head {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.course-share-head h1 {
  margin: var(--space-4) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 76px);
  font-weight: var(--weight-display-strong);
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-wrap: pretty;
  word-break: keep-all;
}.course-share-map-wrap {
  position: relative;
  margin-top: var(--space-8);
}

.course-share-map {
  position: relative;
  width: 100%;
  height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-4);
  background: #e8e7e3;
}

.course-share-map__canvas {
  width: 100%;
  height: 100%;
}

.course-share-map__canvas img[src*="map.naver.net"],
.course-share-map__canvas img[src*="nrbe.pstatic.net"],
.course-share-map__canvas img[src*="map.pstatic.net/nrb/"] {
  filter: grayscale(1) brightness(1.05) contrast(0.9);
}

.course-share-map__status {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: none;
  place-items: center;
  padding: var(--space-6);
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
  background: rgb(248 246 242 / 88%);
}

.course-share-map__status.is-visible {
  display: grid;
}

.course-map-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: var(--gray-0);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  background: var(--rose-600);
  box-shadow: 0 6px 18px rgb(70 58 49 / 22%);
}

.course-share-flow {
  margin-top: var(--space-10);
}

.course-share-section-label {
  margin-bottom: var(--space-5);
}

.course-share-place {
  display: grid;
  grid-template-columns: 68px 150px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}

.course-share-place:last-child {
  border-bottom: 1px solid var(--line);
}

.course-share-place__index {
  color: var(--rose-500);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.course-share-place__media {
  display: grid;
  width: 150px;
  height: 116px;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius-2);
  color: var(--rose-600);
  font-family: var(--font-display);
  background: var(--rose-100);
}

.course-share-place__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-share-place__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--rose-600);
  font-size: var(--text-2xs);
}

.course-share-place__meta time {
  color: var(--ink);
  font-weight: var(--weight-strong);
}

.course-share-place h2 {
  margin: var(--space-2) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-heading);
}

.course-share-place__link {
  color: inherit;
  text-decoration: none;
}

.course-share-place__link:hover {
  color: var(--rose-600);
}

.course-share-place__address {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.55;
  word-break: keep-all;
}

.course-share-place__stay {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: var(--text-2xs);
}

.course-share-note {
  position: relative;
  margin: var(--space-5) 0;
  padding: var(--space-6) var(--space-9) var(--space-6) var(--space-9);
  border-left: 2px solid rgb(var(--accent-rgb) / 38%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.9;
  white-space: pre-wrap;
  background: rgb(var(--accent-rgb) / 3%);
  word-break: keep-all;
}

.course-share-note::before {
  position: absolute;
  top: var(--space-4);
  left: var(--space-5);
  color: var(--rose-500);
  font-size: var(--text-2xl);
  content: "“";
}

.course-share-connector {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-7);
  color: var(--muted);
  font-size: var(--text-2xs);
}

.course-share-connector::before {
  width: 1px;
  height: 36px;
  margin-right: var(--space-5);
  background: repeating-linear-gradient(to bottom, rgb(var(--accent-rgb) / 44%) 0 4px, transparent 4px 8px);
  content: "";
}

.course-share-connector svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--rose-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.course-share-connector--car {
  color: #536c74;
}

.course-share-connector--car::before {
  background: rgb(95 120 128 / 44%);
}

.course-share-connector--car svg {
  stroke: #5f7880;
}

.course-share-connector--transit {
  color: #5f587b;
}

.course-share-connector--transit::before {
  background: rgb(100 92 132 / 44%);
}

.course-share-connector--transit svg {
  stroke: #645c84;
}

.course-share-connector__copy {
  min-width: 0;
}

.course-share-connector__copy > strong {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
}

.course-transit-timeline--share {
  max-width: 620px;
  font-size: var(--text-2xs);
}.course-share-cta {
  margin-top: var(--space-10);
  padding: var(--space-9) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  text-align: center;
  background:
    radial-gradient(circle at 78% 20%, rgb(var(--accent-rgb) / 9%), transparent 36%),
    var(--surface-solid);
}

.course-share-cta h2 {
  margin: var(--space-3) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
}

.course-share-cta a { /* .ds-btn--accent 와 같은 진한 핑크 */
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  color: var(--gray-0);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  text-decoration: none;
  background: var(--rose-600);
}

.map-course-create-link {
  text-decoration: none;
}

.course-share-button:focus-visible,
.course-add-button:focus-visible,
.course-add-row:focus-visible,
.course-add-sheet button:focus-visible,
.course-place-search input:focus-visible,
.course-drag-handle:focus-visible,
.course-editor-live-map__toggle:focus-visible,
.course-editor-map-card__copy button:focus-visible,
.course-share-cta a:focus-visible,
.course-topbar-link:focus-visible,
.map-course-create-link:focus-visible {
  outline: 2px solid rgb(var(--accent-rgb) / 42%);
  outline-offset: 3px;
}

@media (701px <= width <= 900px) {
  .course-editor-workspace {
    display: block;
    max-width: 720px;
  }

  .course-editor-live-map {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: var(--space-4);
  }

  .course-editor-live-map__header {
    min-height: 60px;
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  }

  .course-editor-live-map__toggle {
    display: inline-flex;
  }

  .course-editor-live-map__viewport {
    height: 280px;
  }

  .course-editor-live-map.is-expanded .course-editor-live-map__viewport {
    height: min(62dvh, 520px);
  }
}

@media (width <= 700px) {
  .course-editor-page,
  .course-share-page {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .course-editor-topbar,
  .course-share-topbar {
    min-height: 62px;
  }

  .course-editor-workspace {
    display: block;
  }

  .course-editor-live-map {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: var(--space-4);
    border-radius: var(--radius-3);
  }

  .course-editor-live-map__header {
    min-height: 52px;
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  }

  .course-editor-live-map__header strong {
    margin-top: var(--space-1);
    font-size: var(--text-md);
  }

  .course-editor-live-map__toggle {
    display: inline-flex;
  }

  .course-editor-live-map__viewport {
    height: 150px;
  }

  .course-editor-live-map.is-expanded .course-editor-live-map__viewport {
    height: min(62dvh, 480px);
  }

  .course-editor-live-map__hint {
    right: var(--space-2);
    bottom: var(--space-2);
    left: var(--space-2);
    max-width: calc(100% - 16px);
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-2xs);
  }

  .course-save-state {
    display: none;
  }

  .course-editor-document,
  .course-share-document {
    padding-top: var(--space-9);
  }

  .course-title-field input {
    font-size: var(--text-4xl);
  }

  .course-meta-fields {
    gap: var(--space-3);
    padding-bottom: var(--space-7);
  }

  .course-meta-fields label {
    gap: var(--space-1);
  }

  .course-meta-fields input {
    min-width: 0;
    max-width: 132px;
    font-size: var(--text-2xs);
  }

  .course-block-section {
    margin-top: var(--space-9);
  }

  .course-drag-handle {
    top: var(--space-5);
    left: var(--space-2);
    width: 30px;
    height: 30px;
    opacity: 1;
    transform: none;
  }

  .course-place-block__card {
    min-height: 136px;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .course-place-block__media {
    min-height: 136px;
  }

  .course-place-block__body {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }

  .course-place-block__meta {
    padding-left: var(--space-5);
    font-size: var(--text-2xs);
  }

  .course-place-block h3 {
    margin-top: var(--space-2);
    font-size: var(--text-lg);
  }

  .course-place-block__body > p {
    font-size: var(--text-2xs);
  }

  .course-place-block__foot {
    gap: var(--space-2);
    padding-top: var(--space-2);
  }

  .course-stay-stepper button {
    width: 25px;
  }

  .course-note-block {
    padding: var(--space-9) var(--space-7) var(--space-6) var(--space-7);
  }

  .course-note-block__quote {
    top: var(--space-8);
    left: var(--space-4);
    font-size: var(--text-2xl);
  }

  .course-note-block__text {
    font-size: var(--text-md);
  }

  .course-walk-connector {
    min-height: 64px;
    padding-left: var(--space-9);
  }

  .course-walk-connector__line {
    left: var(--space-6);
  }

  .course-walk-connector__badge {
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-2);
    border-radius: var(--radius-3);
  }

  .course-walk-connector__badge small {
    width: 100%;
    padding-left: var(--space-5);
  }

  .course-summary-bar {
    bottom: var(--space-2);
    display: block;
    padding: var(--space-3);
    border-radius: var(--radius-4);
  }

  .course-summary-bar__metrics {
    justify-content: space-between;
    gap: 0;
    padding: var(--space-1) var(--space-2) var(--space-3);
  }

  .course-summary-bar__metrics p {
    flex: 1 1 0;
  }

  .course-summary-bar__metrics p + p {
    padding-left: var(--space-3);
  }

  .course-summary-bar .course-share-button {
    width: 100%;
  }

  .course-add-sheet {
    align-items: flex-end;
    padding: 0;
  }

  .course-add-sheet__panel {
    width: 100%;
    height: min(88dvh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius-4) var(--radius-4) 0 0;
    transform: translateY(32px);
  }

  .course-add-sheet.is-open .course-add-sheet__panel {
    transform: translateY(0);
  }

  .course-add-sheet__header {
    padding: var(--space-5) var(--space-5) var(--space-4);
  }

  .course-note-choice {
    width: calc(100% - 36px);
    margin: var(--space-4) var(--space-5) 0;
  }

  .course-place-picker {
    padding: var(--space-5) var(--space-5) 0;
  }

  .course-share-head h1 {
    font-size: var(--text-4xl);
  }

  .course-share-map {
    height: 300px;
  }

  .course-share-place {
    grid-template-columns: 42px 90px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .course-share-place__media {
    width: 90px;
    height: 96px;
  }

  .course-share-place h2 {
    font-size: var(--text-lg);
  }

  .course-share-place__meta {
    display: block;
  }

  .course-share-place__meta time {
    display: block;
    margin-top: var(--space-1);
  }

  .course-share-place__address {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .course-share-note {
    padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
    font-size: var(--text-md);
  }

  .course-share-note::before {
    left: var(--space-4);
  }

  .course-share-summary {
    gap: var(--space-3);
  }

  .course-share-summary p + p {
    padding-left: var(--space-3);
  }

  .course-share-summary strong {
    font-size: var(--text-base);
  }

  .course-share-summary:has(p:nth-child(4)) {
    gap: 0;
  }

  .course-share-summary:has(p:nth-child(4)) p + p {
    padding-left: var(--space-2);
  }

  .course-share-summary:has(p:nth-child(4)) strong {
    font-size: var(--text-md);
    white-space: nowrap;
  }

  .course-share-summary:has(p:nth-child(5)) strong {
    font-size: var(--text-sm);
  }

  .course-share-cta {
    margin-top: var(--space-9);
    padding: var(--space-8) var(--space-5);
  }

  .course-share-cta h2 {
    font-size: var(--text-2xl);
  }
}

.course-editor-live-map__header strong,
.course-block-section__head h2,
.course-add-sheet__header h2,
.course-share-place h2,
.course-share-cta h2,
.courses-index-surface__heading h1,
.courses-index-card__copy strong {
  font-weight: var(--weight-display);
  letter-spacing: -0.035em;
}

.course-title-field input,
.course-share-head h1 {
  font-weight: var(--weight-display-strong);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.course-place-block h3,
.courses-map-brand strong,
.courses-map-summary strong,
.courses-index-write strong {
  font-weight: var(--weight-display);
}

.course-document-eyebrow,
.course-block-section__head p,
.course-add-sheet__header p,
.course-share-eyebrow,
.course-share-section-label,
.course-share-cta > p,
.courses-index-surface__heading p,
.courses-index-group__label {
  color: var(--accent);
  font-weight: var(--weight-label);
  letter-spacing: var(--label-tracking);
}

.course-share-button,
.course-share-cta a,
.courses-index-write {
  border-color: transparent;
  background: var(--brand-pink-strong);
}

.course-share-button:hover,
.course-share-cta a:hover,
.courses-index-write:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.course-drag-handle:active,
.course-block.is-dragging .course-drag-handle,
.course-place-categories button.is-active {
  border-color: transparent;
  background: var(--brand-pink-strong);
}

.course-map-marker,
.course-editor-map-stop-marker,
.courses-index-marker {
  color: var(--coral-ink);
  background: var(--spark);
}

@media (prefers-reduced-motion: reduce) {
  .course-editor-page *,
  .course-share-page *,
  .course-add-sheet,
  .course-add-sheet__panel {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.courses-map-page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  background: #e8e7e3;
}

html:has(.courses-map-page),
body:has(.courses-map-page) {
  overflow: hidden;
}

.courses-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 24% 28%, rgb(var(--accent-rgb) / 8%), transparent 28%),
    #e8e7e3;
}

.courses-map-canvas img[src*="map.naver.net"],
.courses-map-canvas img[src*="nrbe.pstatic.net"],
.courses-map-canvas img[src*="map.pstatic.net/nrb/"] {
  filter: grayscale(1) brightness(1.05) contrast(0.9);
}

.courses-map-header {
  position: absolute;
  z-index: 1100;
  top: var(--space-6);
  right: var(--space-7);
  left: var(--space-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.courses-map-brand,
.courses-map-new {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.courses-map-brand {
  display: flex;
  min-height: 50px;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-3);
  text-decoration: none;
}

.courses-map-brand strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-display-strong);
  letter-spacing: var(--tracking-display);
}

.courses-map-brand span {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.courses-map-new {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.courses-map-new:hover {
  color: var(--rose-600);
  transform: translateY(-1px);
}

.courses-map-brand:focus-visible,
.courses-map-new:focus-visible,
.courses-index-card:focus-visible,
.courses-index-write:focus-visible,
.courses-index-surface__grabber:focus-visible,
.courses-map-summary a:focus-visible {
  outline: 2px solid rgb(var(--accent-rgb) / 46%);
  outline-offset: 3px;
}

.courses-map-configuration {
  position: absolute;
  z-index: 1050;
  top: 50%;
  left: 58%;
  display: none;
  width: min(400px, calc(100% - 48px));
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-4);
  text-align: center;
  background: var(--surface);
  transform: translate(-50%, -50%);
}

.courses-map-configuration.is-visible {
  display: block;
}

.courses-map-configuration h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
}

.courses-map-configuration p {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.courses-map-summary {
  position: absolute;
  z-index: 1060;
  top: var(--space-12);
  left: 412px;
  display: grid;
  width: min(310px, calc(100% - 440px));
  gap: var(--space-1);
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background: var(--surface);
  box-shadow: var(--control-shadow);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--sheet-ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.courses-map-summary.is-open {
  opacity: 1;
  transform: translateY(0);
}

.courses-map-summary[hidden] {
  display: none;
}

.courses-map-summary p {
  margin: 0;
  color: var(--rose-600);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  letter-spacing: 0.15em;
}

.courses-map-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.courses-map-summary > span {
  color: var(--muted);
  font-size: var(--text-2xs);
}

.courses-map-summary a {
  justify-self: end;
  margin-top: var(--space-1);
  color: var(--rose-600);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  text-decoration: none;
}

.courses-map-summary a[hidden] {
  display: none;
}

.courses-index-surface {
  --sheet-translate: 0px;
  position: absolute;
  z-index: 1080;
  top: var(--space-12);
  bottom: var(--space-6);
  left: var(--space-6);
  display: flex;
  width: 364px;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-4);
  background: rgb(253 252 249 / 95%);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.courses-index-surface__grabber {
  display: none;
}

.courses-index-surface__heading {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.courses-index-surface__heading p,
.courses-index-group__label {
  margin: 0;
  color: var(--accent);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.courses-index-surface__heading h1 {
  margin: var(--space-1) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
}

.courses-index-surface__heading > span {
  color: var(--muted);
  font-size: var(--text-2xs);
  line-height: 1.55;
  text-align: right;
}

.courses-index-surface__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgb(63 63 60 / 14%) transparent;
  scrollbar-width: thin;
}

.courses-index-write {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-3) var(--space-3) var(--space-6);
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-3);
  color: var(--gray-0);
  text-decoration: none;
  background: var(--accent);
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.courses-index-write:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.courses-index-write small,
.courses-index-write strong {
  display: block;
}

.courses-index-write small {
  margin-bottom: var(--space-1);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  letter-spacing: 0.15em;
  opacity: 0.62;
}

.courses-index-write strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-display);
}

.courses-index-write > span:last-child {
  font-size: var(--text-xl);
  font-weight: 300;
}

.courses-index-group {
  margin: 0 var(--space-3) var(--space-6);
}

.courses-index-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: var(--space-1);
}

.courses-index-group__head > span {
  color: var(--muted);
  font-size: var(--text-2xs);
}

.courses-index-group__label {
  margin: 0 var(--space-1) var(--space-2);
}

.courses-index-card {
  display: grid;
  width: 100%;
  min-height: 92px;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  gap: var(--space-2);
  align-items: center;
  margin: 0;
  padding: var(--space-4) var(--space-3);
  border: 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.courses-index-card:last-child {
  border-bottom: 1px solid var(--line);
}

.courses-index-card:hover,
.courses-index-card.is-active {
  background: rgb(var(--accent-rgb) / 7%);
}

.courses-index-card.is-loading {
  cursor: wait;
  opacity: 0.58;
}

.courses-index-card__number {
  align-self: start;
  padding-top: var(--space-1);
  color: var(--rose-500);
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.courses-index-card__copy {
  min-width: 0;
}

.courses-index-card__copy strong,
.courses-index-card__copy em,
.courses-index-card__copy small {
  display: block;
}

.courses-index-card__copy strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.courses-index-card__copy em {
  display: -webkit-box;
  margin-top: var(--space-1);
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-2xs);
  font-style: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.courses-index-card__copy small {
  margin-top: var(--space-2);
  color: #8f8782;
  font-size: var(--text-2xs);
}

.courses-index-card__arrow {
  color: #a39b95;
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.courses-index-card:hover .courses-index-card__arrow,
.courses-index-card.is-active .courses-index-card__arrow {
  color: var(--rose-600);
  transform: translateX(2px);
}

.courses-index-card--draft {
  border-style: dashed;
}

.courses-index-mine:empty {
  display: none;
}

.courses-index-empty {
  margin: 0;
  padding: var(--space-7) var(--space-4) var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  line-height: 1.75;
  text-align: center;
  word-break: keep-all;
}

.courses-map-status {
  position: absolute;
  z-index: 1090;
  right: var(--space-6);
  bottom: var(--space-6);
  max-width: min(320px, calc(100% - 48px));
  margin: 0;
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  color: var(--muted);
  font-size: var(--text-2xs);
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.courses-map-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.courses-index-marker {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: var(--gray-0);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  background: var(--rose-600);
  box-shadow: 0 7px 18px rgb(70 58 49 / 24%);
}

@media (width <= 700px) {
  body.has-bottom-nav .courses-map-page {
    height: calc(100dvh - var(--bottom-nav-total));
  }

  .courses-map-page {
    min-height: 460px;
  }

  .courses-map-header {
    top: max(10px, env(safe-area-inset-top));
    right: var(--space-3);
    left: var(--space-3);
  }

  .courses-map-brand {
    min-height: 46px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-4);
  }

  .courses-map-brand strong {
    font-size: var(--text-lg);
  }

  .courses-map-brand span {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .courses-map-new {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    font-size: var(--text-lg);
  }

  .courses-map-new > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .courses-map-configuration {
    top: 32%;
    left: 50%;
    width: calc(100% - 24px);
  }

  .courses-map-summary {
    top: var(--space-10);
    right: var(--space-3);
    left: var(--space-3);
    width: auto;
    padding: var(--space-3) var(--space-4);
  }

  .courses-map-summary strong {
    font-size: var(--text-base);
  }

  .courses-index-surface {
    top: var(--space-11);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 76px);
    border-width: 1px 0 0;
    border-radius: var(--radius-4) var(--radius-4) 0 0;
    transform: translateY(var(--sheet-translate));
    transition: transform var(--sheet-duration) var(--sheet-ease);
    will-change: transform;
  }

  .courses-index-surface.is-dragging {
    user-select: none;
    transition: none;
  }

  .courses-index-surface__grabber {
    display: grid;
    width: 100%;
    height: 34px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
  }

  .courses-index-surface__grabber span {
    display: block;
    width: 36px;
    height: 3px;
    border-radius: var(--radius-full);
    background: #d0cac4;
  }

  .courses-index-surface__heading {
    padding: var(--space-1) var(--space-5) var(--space-4);
    transition: opacity var(--duration-base) var(--ease-out);
  }

  .courses-index-surface__heading h1 {
    font-size: var(--text-xl);
  }

  .courses-index-surface__body {
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    transition: opacity var(--duration-base) var(--ease-out);
  }

  .courses-index-surface[data-sheet-state="collapsed"] .courses-index-surface__heading,
  .courses-index-surface[data-sheet-state="collapsed"] .courses-index-surface__body {
    opacity: 0;
    pointer-events: none;
  }

  .courses-index-write {
    margin-top: var(--space-3);
  }

  .courses-map-status {
    right: var(--space-3);
    bottom: var(--space-10);
    left: var(--space-3);
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .courses-map-page *,
  .courses-index-surface {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.course-editor-topbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.course-topbar-link--secondary {
  color: var(--muted);
  font-size: var(--text-sm);
}

body:has(.course-editor-page),
body:has(.course-share-page) {
  color: var(--ink);
  background: var(--gray-0);
}

.course-editor-page,
.course-share-page {
  background: var(--gray-0);
}

.course-editor-topbar,
.course-share-topbar {
  border-bottom: 1px solid var(--line);
  background: var(--gray-0);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.course-topbar-link,
.course-save-state,
.course-document-eyebrow,
.course-block-section__head p,
.course-add-sheet__header p,
.course-share-eyebrow,
.course-share-section-label,
.course-share-cta > p,
.courses-index-surface__heading p,
.courses-index-group__label {
  font-weight: var(--weight-strong);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.course-editor-live-map,
.course-editor-live-map__viewport,
.course-share-map,
.course-editor-map-card,
.course-add-sheet__panel,
.course-place-block__card,
.course-note-block,
.course-summary-bar,
.course-share-cta,
.courses-map-brand,
.courses-map-new,
.courses-map-summary,
.courses-index-surface,
.courses-index-write,
.courses-map-status {
  border-radius: var(--radius-1);
  box-shadow: none;
}

.course-editor-live-map,
.course-share-map,
.course-editor-map-card,
.course-add-sheet__panel,
.course-summary-bar,
.courses-map-brand,
.courses-map-new,
.courses-map-summary,
.courses-index-surface,
.courses-index-write,
.courses-map-status {
  border-color: var(--line);
  background: var(--gray-0);
}

.course-editor-live-map__header {
  border-bottom: 1px solid var(--line);
}

.course-editor-live-map__header p,
.course-editor-live-map__hint,
.course-editor-map-card__copy small,
.course-place-block__meta,
.course-place-block__body > p,
.course-share-place__meta,
.course-share-place__address,
.course-share-place__stay {
  color: var(--muted);
}

.course-editor-live-map__hint,
.course-editor-map-candidate span {
  box-shadow: none;
}

.course-editor-map-candidate span {
  background: var(--muted);
}

.course-editor-map-candidate:hover span,
.course-editor-map-candidate:focus-visible span {
  background: var(--ink);
}

.course-editor-map-candidate:focus-visible {
  outline-color: var(--ink);
}

.course-editor-live-map__header strong,
.course-title-field input,
.course-block-section__head h2,
.course-place-block h3,
.course-add-sheet__header h2,
.course-share-head h1,
.course-share-place h2,
.course-share-cta h2,
.courses-index-surface__heading h1,
.courses-index-card__copy strong {
  font-weight: var(--weight-regular);
}

.course-editor-live-map__toggle,
.course-share-button,
.course-add-button,
.course-empty-state button,
.course-add-row,
.course-place-categories button,
.course-place-option__add,
.course-stay-stepper button,
.course-note-choice,
.course-share-cta a,
.courses-map-new,
.courses-index-write {
  border-radius: var(--radius-1);
  box-shadow: none;
  transform: none;
}

.course-editor-live-map__toggle,
.course-add-button,
.course-empty-state button,
.course-add-row,
.course-place-categories button,
.course-place-option__add,
.course-stay-stepper button,
.course-note-choice {
  border-color: var(--line);
  color: var(--ink);
  background: var(--gray-0);
}

/* 공유 CTA — 옅은 핑크 위 흰 글자는 대비가 모자라서(docs/design-system.md '하지 말 것' 5번)
   .ds-btn--accent 와 같은 진한 핑크로 맞췄습니다. */
.course-share-button,
.course-share-cta a,
.courses-index-write {
  border-color: transparent;
  color: var(--gray-0);
  background: var(--brand-pink-strong);
}

.course-share-button:hover,
.course-share-cta a:hover,
.courses-index-write:hover {
  border-color: var(--ink);
  color: var(--gray-0);
  background: var(--ink);
  transform: none;
}

.course-editor-live-map__toggle:hover,
.course-add-button:hover,
.course-empty-state button:hover,
.course-add-row:hover,
.course-place-categories button:hover,
.course-place-option__add:hover,
.course-stay-stepper button:hover:not(:disabled),
.course-note-choice:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--gray-50);
  transform: none;
}

.course-editor-map-card {
  overflow: hidden;
}

.course-editor-map-card__media {
  border-radius: 0;
}

.course-editor-map-card__copy button {
  border-radius: var(--radius-1);
  background: var(--rose-500);
}

.course-meta-fields {
  border-block: 1px solid var(--line);
}

.course-meta-fields input,
.course-place-search,
.course-place-search input {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.course-place-block__card {
  padding-block: var(--space-5);
  border-width: 1px 0;
  border-style: solid;
  border-color: var(--line);
  background: transparent;
}

.course-place-block__media,
.course-place-block__fallback,
.course-place-option__media {
  border-radius: 0;
  background: #f4f4f4;
}

.course-drag-handle {
  border: 1px solid transparent;
  border-radius: var(--radius-1);
}

.course-drag-handle:focus-visible,
.course-block:hover .course-drag-handle {
  border-color: var(--line);
  background: var(--gray-0);
}

.course-stay-stepper {
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: var(--gray-0);
}

.course-note-block {
  padding: var(--space-5) 0 var(--space-5) var(--space-6);
  border-width: 0 0 0 1px;
  border-color: var(--hairline-strong);
  background: transparent;
}

.course-note-block__quote {
  color: var(--muted);
}

.course-walk-connector__line,
.course-share-connector::before {
  background: var(--line);
}

.course-walk-connector__badge {
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  color: var(--muted);
  background: var(--gray-0);
  box-shadow: none;
}

.course-walk-connector__badge:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--gray-50);
  transform: none;
}

.course-walk-connector--car .course-walk-connector__badge,
.course-walk-connector--transit .course-walk-connector__badge {
  border-color: var(--hairline-strong);
  color: var(--ink);
  background: var(--gray-0);
}

.course-transit-timeline {
  border-left: 1px solid var(--line);
}

.course-transit-timeline__step {
  color: var(--muted);
}

.course-transit-timeline__step--bus,
.course-transit-timeline__step--subway {
  color: var(--ink);
}

.course-summary-bar,
.course-share-summary {
  border-color: var(--hairline-strong);
  background: var(--gray-0);
}

.course-summary-bar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.course-summary-bar__metrics p + p,
.course-share-summary p + p {
  border-left-color: var(--line);
}

.course-add-sheet {
  background: rgb(0 0 0 / 18%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.course-add-sheet__panel {
  border: 1px solid var(--line);
}

.course-note-choice {
  border-width: 1px 0;
}

.course-note-choice__mark {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--gray-0);
}

.course-place-categories {
  gap: 0;
}

.course-place-categories button {
  border-radius: 0;
}

.course-place-categories button + button {
  margin-left: -1px;
}

.course-place-categories button.is-active {
  border-color: var(--ink);
  color: var(--gray-0);
  background: var(--ink);
}

.course-place-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.course-place-option {
  padding-inline: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.course-place-option:hover {
  background: var(--gray-50);
}

.course-share-map {
  overflow: hidden;
  border-color: var(--hairline-strong);
}

.course-map-marker,
.course-editor-map-stop-marker,
.courses-index-marker {
  box-shadow: none;
}

.course-share-flow {
  border-top: 1px solid var(--hairline-strong);
}

.course-share-section-label {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.course-share-place {
  padding-block: var(--space-6);
  border-bottom-color: var(--line);
}

.course-share-place__index {
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
}

.course-share-place__media {
  border-radius: 0;
  background: #f4f4f4;
}

.course-share-note {
  border-width: 1px 0;
  border-color: var(--line);
  border-radius: 0;
  background: transparent;
}

.course-share-connector {
  color: var(--muted);
}

.course-share-cta {
  border: 1px solid var(--hairline-strong);
  background: var(--gray-0);
}

.courses-map-brand,
.courses-map-new,
.courses-map-summary,
.courses-index-surface,
.courses-map-status {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.courses-map-brand span,
.courses-map-summary p,
.courses-map-summary > span,
.courses-index-surface__heading p,
.courses-index-surface__heading > span,
.courses-index-card__copy em,
.courses-index-card__copy small,
.courses-index-empty {
  color: var(--muted);
}

.courses-map-summary a {
  border-radius: var(--radius-1);
  color: var(--gray-0);
  background: var(--rose-500);
}

.courses-index-surface {
  border-color: var(--hairline-strong);
}

.courses-index-write {
  border-width: 1px;
  border-style: solid;
}

.courses-index-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.courses-index-card:hover,
.courses-index-card.is-active {
  background: var(--gray-50);
}

.courses-index-card.is-active {
  box-shadow: inset 2px 0 0 var(--ink);
}

.courses-index-card__number {
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.courses-index-card:hover .courses-index-card__arrow,
.courses-index-card.is-active .courses-index-card__arrow {
  color: var(--ink);
}

.courses-index-card--draft {
  border-style: solid;
}

.course-share-button:focus-visible,
.course-add-button:focus-visible,
.course-add-row:focus-visible,
.course-add-sheet button:focus-visible,
.course-place-search input:focus-visible,
.course-drag-handle:focus-visible,
.course-editor-live-map__toggle:focus-visible,
.course-editor-map-card__copy button:focus-visible,
.course-share-cta a:focus-visible,
.course-topbar-link:focus-visible,
.map-course-create-link:focus-visible,
.courses-map-brand:focus-visible,
.courses-map-new:focus-visible,
.courses-index-card:focus-visible,
.courses-index-write:focus-visible,
.courses-index-surface__grabber:focus-visible,
.courses-map-summary a:focus-visible {
  border-radius: var(--radius-1);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

@media (width <= 700px) {
  .course-share-head h1 {
    font-size: var(--text-4xl);
    line-height: 1.25;
    text-wrap: balance;
  }

  .course-editor-live-map,
  .course-editor-live-map__viewport,
  .courses-index-surface {
    border-radius: 0;
  }

  .courses-index-surface {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .courses-index-surface__grabber span {
    border-radius: 0;
    background: var(--hairline-strong);
  }

  .courses-index-surface__heading > span {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   코스 공유 문서 — 좌 지도(sticky) / 우 문서 분할 (projectmark 문법)
   모바일은 지도 위·문서 아래 그대로입니다.
   ═══════════════════════════════════════════════════════════════════ */

.course-share-layout {
  display: grid;
}

/* ── 코스 팩트시트 ─────────────────────────────────────────── */

.course-facts {
  margin: var(--space-7) 0 0;
  border-top: 1px solid var(--hairline-strong);
}

.course-facts__row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
}

/* 다음 섹션이 자기 윗선을 갖고 있어 마지막 행의 밑선은 뺍니다. */
.course-facts__row:last-child {
  border-bottom: 0;
}

.course-facts dt {
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
}

.course-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .course-share-document {
    width: min(100%, 1180px);
  }

  .course-share-layout {
    /* 행 간격은 0 — 제목 아래 헤어라인과 팩트시트가 바로 붙어야 합니다. */
    gap: 0 var(--space-9);
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
    align-items: start;
  }

  /* 제목은 오른쪽 문서 컬럼 위에 둡니다. */
  .course-share-head {
    grid-column: 2;
    grid-row: 1;
  }

  /* 지도는 왼쪽에서 따라다니고, 문서만 스크롤됩니다. */
  .course-share-map-wrap {
    position: sticky;
    top: var(--space-6);
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: var(--space-7);
  }

  .course-share-map {
    height: min(72vh, 640px);
  }

  .course-share-body {
    grid-column: 2;
    grid-row: 2;
  }

  /* 제목 블록의 밑선이 팩트시트의 윗선 역할을 합니다. */
  .course-facts {
    margin-top: 0;
    border-top: 0;
  }

  .course-facts__row {
    grid-template-columns: 108px minmax(0, 1fr);
    padding: var(--space-4) 0;
  }
}

body:has(.course-editor-page),
body:has(.course-share-page),
.course-editor-page,
.course-share-page {
  background: var(--warm-50);
}

.course-editor-topbar,
.course-share-topbar {
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 8px 26px rgb(60 50 42 / 5%);
}

.course-editor-live-map,
.course-share-map,
.course-editor-map-card,
.course-add-sheet__panel,
.course-summary-bar,
.course-share-cta,
.courses-map-brand,
.courses-map-new,
.courses-map-summary,
.courses-index-surface,
.courses-index-write,
.courses-map-status {
  border-color: var(--line);
  border-radius: var(--subpage-radius);
  background: var(--surface-solid);
  box-shadow: var(--panel-shadow);
}

.course-editor-live-map,
.course-share-map,
.course-add-sheet__panel,
.courses-index-surface {
  overflow: hidden;
}

.course-editor-live-map__viewport {
  border-radius: 0 0 var(--subpage-radius) var(--subpage-radius);
}

.course-editor-live-map__header,
.course-share-flow,
.course-share-section-label,
.course-facts__row,
.course-meta-fields {
  border-color: var(--line);
}

.course-editor-live-map__toggle,
.course-share-button,
.course-add-button,
.course-empty-state button,
.course-add-row,
.course-place-categories button,
.course-place-option__add,
.course-stay-stepper button,
.course-note-choice,
.course-share-cta a,
.courses-map-new,
.courses-index-write,
.courses-map-summary a {
  border-radius: var(--radius-pill);
  box-shadow: var(--control-shadow);
}

.course-editor-live-map__toggle,
.course-add-button,
.course-empty-state button,
.course-add-row,
.course-place-categories button,
.course-place-option__add,
.course-stay-stepper button,
.course-note-choice {
  border-color: var(--line);
  background: var(--surface-solid);
}

.course-editor-live-map__toggle:hover,
.course-add-button:hover,
.course-empty-state button:hover,
.course-add-row:hover,
.course-place-categories button:hover,
.course-place-option__add:hover,
.course-stay-stepper button:hover:not(:disabled),
.course-note-choice:hover {
  border-color: rgb(var(--accent-rgb) / 38%);
  color: var(--rose-600);
  background: var(--rose-50);
}

.course-share-button,
.course-share-cta a,
.courses-index-write {
  border-color: transparent;
  background: var(--brand-pink-strong);
}

.course-place-block__card {
  padding-block: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--control-shadow);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.course-block:hover .course-place-block__card {
  border-color: rgb(var(--accent-rgb) / 28%);
  box-shadow: var(--panel-shadow);
}

.course-place-block__media,
.course-place-block__fallback {
  border-radius: 0;
}

.course-drag-handle {
  top: var(--space-3);
  left: var(--space-3);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--surface-solid);
  box-shadow: var(--control-shadow);
  opacity: 0.72;
  transform: none;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.course-block:hover .course-drag-handle,
.course-drag-handle:focus-visible,
.course-is-dragging .course-drag-handle {
  border-color: rgb(var(--accent-rgb) / 38%);
  color: var(--rose-600);
  background: var(--rose-50);
  box-shadow: var(--panel-shadow);
  opacity: 1;
}

.course-drag-handle:active,
.course-block.is-dragging .course-drag-handle {
  color: var(--gray-0);
  background: var(--rose-500);
  cursor: grabbing;
}

.course-stay-stepper {
  border-color: var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  box-shadow: var(--control-shadow);
}

.course-note-block {
  padding: var(--space-6) var(--space-9) var(--space-6) var(--space-10);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--control-shadow);
}

.course-walk-connector__badge {
  border-color: var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  box-shadow: var(--control-shadow);
}

.course-walk-connector--transit .course-walk-connector__badge {
  border-radius: var(--radius);
}

.course-transit-timeline {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-left: 0;
  border-radius: var(--radius-sm);
  background: rgb(100 92 132 / 6%);
}

.course-summary-bar {
  background: rgb(255 255 255 / 96%);
}

.course-summary-bar__metrics p + p,
.course-share-summary p + p {
  border-left-color: var(--hairline-soft);
}

.course-add-sheet {
  background: rgb(43 39 35 / 20%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.course-note-choice,
.course-place-option {
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.course-place-list {
  gap: var(--space-3);
  border-top: 0;
}

.course-place-option {
  padding-inline: var(--space-3);
}

.course-place-option:hover {
  border-color: rgb(var(--accent-rgb) / 26%);
  background: var(--rose-50);
}

.course-place-option__media,
.course-editor-map-card__media {
  border-radius: var(--radius-sm);
}

.course-place-categories {
  gap: var(--space-2);
}

.course-place-categories button + button {
  margin-left: 0;
}

.course-place-categories button.is-active {
  border-color: var(--rose-500);
  color: var(--gray-0);
  background: var(--rose-500);
}

.course-share-place {
  margin-top: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--control-shadow);
}

.course-share-place:last-child {
  border-bottom: 1px solid var(--line);
}

.course-share-place__media {
  border-radius: var(--radius-sm);
}

.course-share-note {
  padding: var(--space-6) var(--space-9) var(--space-6) var(--space-9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--control-shadow);
}

.course-share-cta {
  background:
    radial-gradient(circle at 78% 20%, rgb(var(--accent-rgb) / 10%), transparent 38%),
    var(--surface-solid);
}

.courses-map-brand,
.courses-map-new,
.courses-map-summary,
.courses-index-surface,
.courses-map-status {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.courses-map-brand {
  border-radius: var(--radius);
}

.courses-map-new,
.courses-map-summary a,
.courses-index-write {
  border-radius: var(--radius-pill);
}

.courses-index-surface__heading {
  border-bottom-color: var(--hairline-soft);
}

.courses-index-card {
  margin-top: var(--space-2);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: 0 6px 18px rgb(60 50 42 / 5%);
}

.courses-index-card:last-child {
  border-bottom: 1px solid var(--hairline-soft);
}

.courses-index-card:hover,
.courses-index-card.is-active {
  border-color: rgb(var(--accent-rgb) / 28%);
  background: var(--rose-50);
  box-shadow: var(--control-shadow);
}

.courses-index-card.is-active {
  box-shadow: inset 3px 0 0 var(--rose-500), var(--control-shadow);
}

.courses-index-card__number {
  border-radius: var(--radius-pill);
  color: var(--rose-600);
  background: var(--rose-50);
}

.course-share-button:focus-visible,
.course-add-button:focus-visible,
.course-add-row:focus-visible,
.course-add-sheet button:focus-visible,
.course-place-search input:focus-visible,
.course-drag-handle:focus-visible,
.course-editor-live-map__toggle:focus-visible,
.course-editor-map-card__copy button:focus-visible,
.course-share-cta a:focus-visible,
.course-topbar-link:focus-visible,
.map-course-create-link:focus-visible,
.courses-map-brand:focus-visible,
.courses-map-new:focus-visible,
.courses-index-card:focus-visible,
.courses-index-write:focus-visible,
.courses-index-surface__grabber:focus-visible,
.courses-map-summary a:focus-visible {
  border-radius: var(--radius-sm);
  outline: 2px solid rgb(var(--accent-rgb) / 42%);
}

@media (width <= 700px) {
  .course-editor-live-map,
  .course-editor-live-map__viewport,
  .courses-index-surface {
    border-radius: var(--subpage-radius) var(--subpage-radius) 0 0;
  }

  .course-place-block__card,
  .course-note-block,
  .course-summary-bar,
  .course-share-place,
  .course-share-note,
  .course-share-cta {
    border-radius: var(--radius);
  }

  .course-drag-handle {
    top: var(--space-3);
    left: var(--space-2);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-3);
    opacity: 0.9;
    transform: none;
  }

  .course-note-block {
    padding: var(--space-9) var(--space-7) var(--space-6) var(--space-7);
  }

  .course-walk-connector__badge {
    border-radius: var(--radius);
  }

  .course-summary-bar {
    border-radius: var(--radius);
  }

  .course-add-sheet__panel {
    border-radius: var(--subpage-radius) var(--subpage-radius) 0 0;
  }

  .course-share-place {
    padding: var(--space-4) var(--space-3);
  }

  .courses-index-surface__grabber span {
    border-radius: var(--radius-pill);
    background: rgb(43 39 35 / 24%);
  }
}

.course-editor-live-map__header strong,
.course-block-section__head h2,
.course-add-sheet__header h2,
.course-share-place h2,
.course-share-cta h2,
.courses-index-surface__heading h1,
.courses-index-card__copy strong {
  font-weight: var(--weight-display);
  letter-spacing: -0.035em;
}

.course-title-field input,
.course-share-head h1 {
  font-weight: var(--weight-display-strong);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.course-place-block h3,
.courses-map-brand strong,
.courses-map-summary strong,
.courses-index-write strong {
  font-weight: var(--weight-display);
}

.course-document-eyebrow,
.course-block-section__head p,
.course-add-sheet__header p,
.course-share-eyebrow,
.course-share-section-label,
.course-share-cta > p,
.courses-index-surface__heading p,
.courses-index-group__label {
  color: var(--accent);
  font-weight: var(--weight-label);
  letter-spacing: var(--label-tracking);
}

.course-share-button,
.course-share-cta a,
.courses-index-write {
  border-color: transparent;
  background: var(--brand-pink-strong);
}

.course-share-button:hover,
.course-share-cta a:hover,
.courses-index-write:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.course-drag-handle:active,
.course-block.is-dragging .course-drag-handle,
.course-place-categories button.is-active {
  border-color: transparent;
  background: var(--brand-pink-strong);
}

.course-map-marker,
.course-editor-map-stop-marker,
.courses-index-marker {
  color: var(--coral-ink);
  background: var(--spark);
}
