/* 단독으로 열리는 모바일 우선 공유 화면. 토큰은 common.css, 바다 배경은 common.css .ocean-backdrop--surface(MY와 같다). */
.share-shell {
    /* 본문 카드 한 줄의 폭(가이드라인). 하단 행동 바·나의 투어 시트도 이 폭에 맞춰 카드 가장자리와 같은 선에 선다. */
    --share-column-width: min(100% - var(--space-4) * 2, var(--container-sm) - var(--space-4) * 2);
    /* 화면 위에 붙은 머리글 높이. 그 아래에 붙는 탭 줄(x-share.tabs)의 top이 이 값을 따른다. */
    --share-header-height: calc(var(--header-height) + env(safe-area-inset-top));
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}

.share-shell__bar,
.share-shell__main,
.share-shell__footer {
    width: min(100%, var(--container-sm));
    margin-inline: auto;
    padding-inline: var(--space-4);
}

/* 머리글: 화면 위에 붙어 있다. 맨 위에서는 바다 배경 그대로 투명하고, 스크롤하면 MY 머리글(.ocean-header)과 같은 유리 배경이 화면 폭 전체에 깔린다.
   화면 머리 영역([data-share-hero])이 머리글 뒤로 지나가면(--condensed) 브랜드 이름이 접히고 그 자리에 화면 제목이 올라온다(share-page.js).
   그 아래 탭 줄이 붙어 있으면 그림자는 탭 줄이 맡는다. */
.share-shell__header { position: sticky; z-index: calc(var(--z-sticky) + 1); top: 0; padding-top: env(safe-area-inset-top); }
.share-shell__header::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--header-glass-background);
    box-shadow: var(--shadow-header-scrolled);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard);
    -webkit-backdrop-filter: var(--header-glass-blur);
    backdrop-filter: var(--header-glass-blur);
}
.share-shell__header--scrolled::before { opacity: 1; transition-duration: var(--duration-fast), var(--duration-slow); }
.share-shell:has(.share-tabs__bar.is-stuck) .share-shell__header::before { box-shadow: none; }
.share-shell__bar { display: flex; min-height: var(--header-height); align-items: center; gap: var(--space-3); }
.share-shell__bar > :last-child { margin-left: auto; }

.share-shell__brand { display: inline-flex; min-height: var(--control-height); flex: 0 0 auto; align-items: center; text-decoration: none; }
.share-shell__brand .brand-mark__name { display: inline-block; max-width: 8rem; overflow: hidden; white-space: nowrap; transition: max-width var(--duration-slow) var(--ease-standard), opacity var(--duration-base) var(--ease-standard); }
.share-shell__title { overflow: hidden; min-width: 0; flex: 1 1 auto; color: var(--color-text); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); opacity: 0; text-overflow: ellipsis; transform: translateY(.5rem); transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-slow) var(--ease-standard), visibility var(--duration-base); visibility: hidden; white-space: nowrap; }
.share-shell__header--condensed .brand-mark__name { max-width: 0; opacity: 0; }
.share-shell__header--condensed .share-shell__title { opacity: 1; transform: none; visibility: visible; transition-delay: 80ms; }
.share-shell__main { flex: 1 0 auto; padding-bottom: var(--space-8); }
/* 카드 위 링크 안내(form-alert). 상자 다음 내용까지 --alert-gap. */
.share-shell__notice { margin-bottom: var(--alert-gap); }
/* 바닥글은 공통 푸터처럼 모래 바닥 위에 얹혀 윗선이 없다. */
.share-shell__footer { padding-top: var(--space-6); padding-bottom: max(var(--space-8), env(safe-area-inset-bottom)); color: var(--color-text-muted); font-size: var(--font-size-xs); text-align: center; }
.share-shell__footer > p + p { margin-top: var(--space-2); }
.share-shell__footer > .share-shell__legal { margin-top: var(--space-2); }

/* 하단 고정 행동 바(x-share.dock, 투어 참가하기·거절·나의 투어): 쇼핑몰 구매 바처럼 화면 아래에 붙은 유리 패널.
   위 줄은 요약(작은 label + 굵은 value), 아래 줄은 버튼. 앞의 보조 버튼은 내용 폭, 마지막 주 버튼이 남은 폭을 채운다.
   본문 카드와 같은 폭(--share-column-width)으로 가운데 두고 위 모서리만 둥글다. 페이지가 열리면 반쯤 잠긴 채로 시작해 잠시 뒤 천천히 올라온다.
   app.js가 접힌 바 높이를 --share-dock-height로 body에 넘겨 본문·푸터가 가려지지 않게 하고, 페이지 끝에 닿으면 .share-dock--settled로 그림자를 거둔다.
   panel slot(나의 투어)은 요약과 버튼 사이의 접힌 영역(.share-dock__sheet)이다. 장바구니 요약처럼 바 자체가 위로 늘어나며 요약 줄은 접혀 사라지고
   그 자리에 영역 내용이 펼쳐진다(둘 다 .share-dock__fold의 grid-template-rows 0fr ↔ 1fr, hidden 전환은 @starting-style·allow-discrete).
   본문 여백은 접힌 높이 그대로라 본문은 움직이지 않고, 길면 영역 안쪽만 스크롤한다. 열리면 바로 앞의 .share-dock-scrim이 뒤 화면을 흐리게 덮는다(누르면 접힘). */
.share-dock {
    --share-dock-shadow: 0 -.125rem .5rem -.25rem rgb(31 120 136 / .12), 0 -.75rem 2rem -1.25rem rgb(31 120 136 / .3);
    --share-dock-fold: var(--duration-slow) cubic-bezier(.2, 0, 0, 1);
    position: fixed;
    z-index: var(--z-sticky);
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: var(--share-column-width);
    margin-inline: auto;
    border: var(--border-width) solid var(--color-border);
    border-bottom: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--header-glass-background);
    padding: var(--space-3) var(--space-4) max(var(--space-3), env(safe-area-inset-bottom));
    box-shadow: var(--share-dock-shadow);
    transition: box-shadow var(--duration-slow) var(--ease-standard), background-color var(--share-dock-fold);
    animation: share-dock-in 900ms cubic-bezier(.22, 1, .36, 1) 600ms both;
    -webkit-backdrop-filter: var(--header-glass-blur);
    backdrop-filter: var(--header-glass-blur);
}
.share-dock--settled { box-shadow: none; }
/* 접히는 동안에도 흐린 막 위에 있도록 영역을 가진 바는 늘 막보다 위에 두고, 펼치면 유리 대신 불투명 배경으로 바꾼다. */
.share-dock:has(> .share-dock__sheet) { z-index: calc(var(--z-overlay) + 1); }
.share-dock:has(> .share-dock__sheet:not([hidden])) { background-color: var(--color-surface); box-shadow: var(--share-dock-shadow); }
/* 접히는 줄: 감싼 칸의 행 높이를 0fr ↔ 1fr로 바꿔 내용 높이만큼 부드럽게 접고 편다. 여백은 안쪽 요소에 둬야 0까지 접힌다. */
.share-dock__fold {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows var(--share-dock-fold), opacity var(--share-dock-fold), visibility var(--share-dock-fold), display var(--share-dock-fold) allow-discrete;
}
.share-dock__fold > * { min-height: 0; overflow: hidden; }
.share-dock__fold[hidden] { display: none; }
.share-dock__fold[hidden],
.share-dock:has(> .share-dock__sheet:not([hidden])) > .share-dock__fold:not(.share-dock__sheet) { grid-template-rows: 0fr; visibility: hidden; opacity: 0; }
@starting-style {
    .share-dock__sheet { grid-template-rows: 0fr; opacity: 0; }
}
.share-dock__summary { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-1) var(--space-3); }
.share-dock__fold:last-child .share-dock__summary { padding-bottom: 0; }
.share-dock__summary > span { overflow: hidden; min-width: 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
.share-dock__summary > strong { flex: 0 0 auto; margin-left: auto; color: var(--color-brand); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); white-space: nowrap; }
.share-dock__summary > strong:only-child { margin-inline: auto; text-align: center; }
/* 상태 안내 상자(tone): 유리 바 위에서도 묻히지 않게 색 배경·테두리·아이콘을 두고 글자를 키운다.
   요약 줄 여백 규칙(:last-child)보다 앞서도록 선택자를 한 단계 높인다. brand(곧 모집)는 진한 배경으로 가장 눈에 띄게, warning(다른 계정)·muted(마감·진행·종료)는 옅은 배경으로 구분한다. */
.share-dock__fold .share-dock__summary.share-dock__notice { justify-content: center; border: var(--border-width) solid var(--share-dock-notice-border); border-radius: var(--radius-lg); background: var(--share-dock-notice-bg); padding: var(--space-3) var(--space-4); }
.share-dock__notice > strong { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--share-dock-notice-text); font-size: var(--font-size-base); font-weight: var(--font-weight-bold); white-space: normal; }
.share-dock__notice > strong > .icon { flex: 0 0 auto; }
.share-dock__fold:not(:last-child) .share-dock__notice { margin-bottom: var(--space-3); }
.share-dock__fold .share-dock__summary:has(+ .share-dock__notice) { padding-bottom: var(--space-2); }
.share-dock__notice--brand { --share-dock-notice-bg: var(--color-brand); --share-dock-notice-border: var(--color-brand); --share-dock-notice-text: var(--color-surface); }
.share-dock__notice--warning { --share-dock-notice-bg: var(--color-warning-soft); --share-dock-notice-border: color-mix(in srgb, var(--color-warning) 30%, transparent); --share-dock-notice-text: var(--color-warning); }
.share-dock__notice--muted { --share-dock-notice-bg: var(--color-surface-soft); --share-dock-notice-border: var(--color-border-strong); --share-dock-notice-text: var(--color-text-secondary); }
.share-dock__actions { position: relative; z-index: 1; display: flex; gap: var(--space-2); }
.share-dock__actions > * { flex: 0 0 auto; }
.share-dock__actions > :last-child { flex: 1 1 auto; }
.share-dock__actions .btn { width: 100%; white-space: nowrap; }
.share-dock__actions > .btn:not(:last-child) { width: auto; }
.share-dock__panel { max-height: min(60dvh, 34rem); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-1) 0 var(--space-4); }
/* 화살표는 숨은 내용이 펼쳐질 방향을 가리킨다: 독은 위로 열리므로 접힘이면 위, 펼침이면 아래. */
.share-dock__chevron { transform: rotate(180deg); transition: transform var(--duration-slow) var(--ease-spring); }
[aria-expanded="true"] > .share-dock__chevron { transform: none; }
/* 버튼 글자를 가운데에 두고 화살표는 버튼 오른쪽 끝에 붙인다. */
.btn:has(> .share-dock__chevron--end) { position: relative; }
.share-dock__chevron--end { position: absolute; right: var(--space-4); top: 50%; margin-top: -0.5rem; }
.share-dock-scrim {
    position: fixed;
    z-index: var(--z-overlay);
    inset: 0;
    visibility: hidden;
    background: var(--color-overlay);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-base);
    -webkit-backdrop-filter: var(--header-glass-blur);
    backdrop-filter: var(--header-glass-blur);
}
.share-dock-scrim:has(+ .share-dock > .share-dock__sheet:not([hidden])) { visibility: visible; opacity: 1; }
.share-shell:has(.share-dock) { padding-bottom: var(--share-dock-height, calc(var(--control-height-lg) + var(--space-16))); }

/* 반쯤 잠긴 위치(지연 동안 유지)에서 감속 곡선으로 떠오른다. */
@keyframes share-dock-in {
    from { transform: translateY(55%); }
}

.share-page__intro { padding-block: var(--space-8); }
.share-page__eyebrow { display: flex; align-items: center; gap: var(--space-2); color: var(--color-brand); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: var(--letter-spacing-relaxed); }
.share-page__heading .guide-titled { margin-top: var(--space-3); }
.share-page__title { margin-top: var(--space-3); font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); letter-spacing: var(--letter-spacing-tight); line-height: var(--line-height-tight); }
.share-page__lead { margin-top: var(--space-3); color: var(--color-text-secondary); font-size: var(--font-size-sm); line-height: var(--line-height-loose); }
.share-page__alert { margin-top: var(--space-4); line-height: var(--line-height-loose); }
.share-page__catalog { display: grid; gap: var(--space-3); }
.share-page__preview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); padding: var(--space-5) var(--space-4); box-shadow: var(--shadow-sm); text-decoration: none; }
.share-page__preview strong { display: block; color: var(--color-text); font-weight: var(--font-weight-semibold); }
.share-page__preview small { display: block; margin-top: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.share-page__preview > .icon { color: var(--color-brand); }
.share-page__symbol { display: grid; width: var(--control-height); height: var(--control-height); place-items: center; border-radius: var(--radius-lg); background: var(--color-brand-soft); color: var(--color-brand); }

.share-page__card { overflow: clip; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-md); }
.share-page__heading { padding: var(--space-6) var(--space-5); }
.share-page__person { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.share-page__person strong { display: block; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.share-page__person small { display: block; margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--font-size-xs); }
.share-page__avatar { display: grid; width: var(--control-height); height: var(--control-height); flex: 0 0 auto; place-items: center; border-radius: var(--radius-pill); background: var(--color-brand-soft); color: var(--color-brand); }
.share-page__stats { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin-inline: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface-soft); padding-block: var(--space-4); }
.share-page__stats > div { min-width: 0; padding-inline: var(--space-2); text-align: center; }
.share-page__stats > div + div { border-left: var(--border-width) solid var(--color-border); }
.share-page__stats dt { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.share-page__stats dd { margin-top: var(--space-2); color: var(--color-brand); font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }
.share-page__stats small { font-size: var(--font-size-xs); font-weight: var(--font-weight-regular); }
.share-page__section { margin: var(--space-6) var(--space-5) 0; }
.share-page__section + .share-page__section { border-top: var(--border-width) solid var(--color-border); padding-top: var(--space-6); }
.share-page__section-title { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.share-page__memory { margin-top: var(--space-3); font-size: var(--font-size-sm); line-height: var(--line-height-loose); }
/* Shared list entries (checklist and itinerary·expense preset share pages). */
.share-entries { display: grid; gap: var(--space-3); margin-inline: var(--space-5); font-size: var(--font-size-sm); }
.share-entries > h2 { margin-top: var(--space-3); font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.share-entries > h3 { color: var(--color-brand); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.share-entries > hr { border: 0; border-top: var(--border-width) solid var(--color-border); }
.share-entry { display: flex; gap: var(--space-3); overflow-wrap: anywhere; }
.share-entry > span { color: var(--color-brand); }
.share-entry p { color: var(--color-text-secondary); }
/* 체크리스트 공유 항목(--check): 체크 버튼(x-share.check-item) 아래 설명·출처를 글 시작선에 맞춘다. */
.share-entry--check { display: grid; gap: 0; }
.share-entry--check > .check-item { padding-block: 0; font-weight: var(--font-weight-semibold); }
.share-entry--check > :not(.check-item) { margin-left: calc(var(--check-box-size) + var(--space-3)); }
.share-page__details { margin-top: var(--space-4); font-size: var(--font-size-sm); }
.share-page__details > div { display: grid; grid-template-columns: var(--space-20) minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-3); }
.share-page__details > div + div { border-top: var(--border-width) solid var(--color-border); }
.share-page__details dt { color: var(--color-text-secondary); }
.share-page__details dd { min-width: 0; }
.share-page__actions { display: grid; gap: var(--space-2); margin: var(--space-6) var(--space-5) 0; border-top: var(--border-width) solid var(--color-border); padding-block: var(--space-5) var(--space-6); }
.share-page__actions > p { margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--font-size-xs); text-align: center; }
/* 강사 문의·신고(x-share.contact): 버튼과 안내를 가운데에 둔다. */
.share-page__actions--contact { justify-items: center; }
/* 공유 화면 끝의 통신판매중개자 고지(x-legal.broker-notice subject=tour): 카드 안 다른 블록과 같은 좌우 여백. */
.share-page__notice { margin: var(--space-5) var(--space-5) var(--space-6); text-align: center; }
/* 투어 공유 화면의 강사 카드(share/tours/_instructor): 문의·신고 위, 본문 탭 아래. */
.tour-instructor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); margin: var(--space-6) var(--space-5) 0; border-radius: var(--radius-lg); background: var(--color-depth-surface); padding: var(--space-5); }
.tour-instructor__avatar { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: var(--radius-pill); background: var(--color-brand); color: var(--color-surface); font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); }
.tour-instructor__body { display: grid; min-width: 0; gap: var(--space-2); }
.tour-instructor__eyebrow { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.tour-instructor__name { color: var(--color-text); font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); }
.tour-instructor__link { display: inline-flex; align-items: center; gap: var(--space-1); justify-self: start; font-size: var(--font-size-sm); }
.tour-co-seats { display: grid; gap: var(--space-2); margin: var(--space-4) var(--space-5) 0; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.tour-co-seats__title { color: var(--color-text); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tour-co-seats__names { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--color-text); font-size: var(--font-size-sm); }
.tour-co-seats__note { color: var(--color-text-muted); font-size: var(--font-size-xs); }

@media (hover: hover) {
    .share-page__preview:hover { border-color: var(--color-brand-light); background: var(--color-surface-soft); }
}

@media (min-width: 40rem) {
    .share-page__heading { padding: var(--space-8) var(--space-6); }
    .share-page__section,
    .share-page__actions,
    .share-page__stats { margin-inline: var(--space-6); }
}

/* 다이빙 로그 묶음 공유(share.dive-log): 로그마다 한 블록, 블록 끝에 복사 버튼. 단건 공유는 블록 하나에 머리 없이 그린다. */
.share-page__stats--flush { margin-inline: 0; }
.share-log-list__actions { margin-top: var(--space-5); }
.share-log { display: grid; gap: var(--space-4); margin: var(--space-6) var(--space-5) 0; }
.share-log + .share-log { border-top: var(--border-width) solid var(--color-border); padding-top: var(--space-6); }
.share-log__header { display: grid; gap: var(--space-1); }
.share-log__date { color: var(--color-brand); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.share-log__place { display: flex; align-items: center; gap: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.share-log__label { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.share-log__label > small { margin-left: var(--space-1); color: var(--color-text-muted); font-size: var(--font-size-xs); font-weight: var(--font-weight-regular); }
.share-log__copy { display: flex; justify-content: flex-end; }

@media (min-width: 40rem) {
    .share-log { margin-inline: var(--space-6); }
}

/* A tour share is a field guide: public by default, personal only for the signed-in participant. */
.tour-share { position: relative; padding-bottom: var(--space-8); }
.tour-share__hero { border-bottom: var(--border-width) solid var(--color-border); background: linear-gradient(180deg, var(--color-depth-surface), var(--color-surface)); padding: var(--space-8) var(--space-5) var(--space-6); }
.tour-share__status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tour-share__hero .guide-titled { margin-top: var(--space-4); }
.tour-share__hero h1 { margin-top: var(--space-4); font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); letter-spacing: var(--letter-spacing-tight); line-height: var(--line-height-tight); }
.tour-share__hero > p { margin-top: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.tour-share__section { display: grid; gap: var(--space-4); margin: var(--space-6) var(--space-5) 0; }
.tour-share__section > h2 { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); }
.tour-share__next { display: grid; gap: var(--space-2); margin: var(--space-6) var(--space-5) 0; border-left: var(--space-1) solid var(--color-brand); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--color-brand-soft); padding: var(--space-5); }
.tour-share__next > .text-xs { color: var(--color-brand); font-weight: var(--font-weight-semibold); }
.tour-share__next > div { display: grid; gap: var(--space-1); }
.tour-share__next > div + div { border-top: var(--border-width) solid var(--color-brand-light); padding-top: var(--space-3); }
.tour-share__next strong { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }
.tour-share__next p:not(.text-xs) { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.tour-share__next .tour-share__clock { color: var(--color-text-muted); font-size: var(--font-size-xs); }
/* 머리 영역 날짜 뒤 여행 시점(여행 N일 전 · N일차 · 마쳤어요). */
.tour-share__phase { display: inline-flex; margin-left: var(--space-2); border-radius: var(--radius-pill); background: var(--color-brand-soft); padding: 0 var(--space-2); color: var(--color-brand); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); line-height: 1.75; vertical-align: .0625rem; }

/* 공유 화면 탭(x-share.tabs). 탭 줄은 머리글 바로 아래에 붙고(sticky, 카드는 overflow: clip이라 붙을 수 있다), 붙으면(.is-stuck, share-page.js)
   머리글과 같은 유리 배경과 그림자를 맡는다. 좁은 화면에서 탭이 넘치면 옆으로 밀어 보고 넘친 쪽 끝 표시는 x-ui.scroll-rail이 맡는다.
   고른 탭 아래 표시선(__indicator)은 탭 사이를 미끄러져 옮겨 간다(--share-tab-x·--share-tab-width, share-page.js. 준비 전에는 고른 탭 밑줄).
   패널 전환은 공통 탭의 교차 전환(app.js DiveoryTabs crossfade): 무대(__stage)는 높이가 바뀌는 동안 넘치는 부분을 자르고,
   떠나는 패널(.is-leaving)은 무대 위에 겹친 채 흐려진다. 탭 안에서는 탭 이름이 섹션 제목을 대신하므로 섹션 h2는 화면에서 숨긴다. */
.share-tabs { margin-top: var(--space-2); }
.share-tabs__bar { position: sticky; z-index: calc(var(--z-sticky) - 1); top: var(--share-header-height); border-bottom: var(--border-width) solid var(--color-border); background: var(--color-surface); transition: background-color var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard); }
.share-tabs__bar.is-stuck { background: var(--header-glass-background); box-shadow: var(--shadow-header-scrolled); -webkit-backdrop-filter: var(--header-glass-blur); backdrop-filter: var(--header-glass-blur); }
.share-tabs__list {
    position: relative;
    display: flex;
    overflow-x: auto;
    gap: var(--space-1);
    padding-inline: var(--space-3);
    overscroll-behavior-x: contain;
}
.share-tabs__list > button { position: relative; display: inline-flex; min-height: calc(var(--control-height) + var(--space-1)); flex: 1 0 auto; align-items: center; justify-content: center; gap: var(--space-1); padding: 0 var(--space-3); color: var(--color-text-secondary); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); white-space: nowrap; transition: color var(--duration-base) var(--ease-standard); }
.share-tabs__list > button[aria-selected="true"] { color: var(--color-brand); }
.share-tabs__list > button.is-locked { color: var(--color-text-muted); }
.share-tabs__list > button:focus-visible { outline: var(--border-width-accent) solid var(--color-focus); outline-offset: calc(var(--border-width-accent) * -1); border-radius: var(--radius-md); }
.share-tabs__lock { font-size: .6875rem; }
.share-tabs__hint { border-radius: var(--radius-pill); background: var(--color-surface-soft); padding: 0 .375rem; color: var(--color-text-secondary); font-size: .6875rem; font-variant-numeric: tabular-nums; line-height: 1.6; transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard); }
.share-tabs__list > button[aria-selected="true"] .share-tabs__hint { background: var(--color-brand); color: var(--color-surface); }
.share-tabs__indicator { position: absolute; bottom: 0; left: 0; width: var(--share-tab-width, 0); height: var(--border-width-accent); border-radius: var(--radius-pill) var(--radius-pill) 0 0; background: var(--color-brand); pointer-events: none; transform: translateX(var(--share-tab-x, 0)); }
.share-tabs__list.is-ready > .share-tabs__indicator { transition: transform 460ms var(--ease-spring), width 460ms cubic-bezier(.3, 0, 0, 1); }
.share-tabs__list:not(.is-ready) > button[aria-selected="true"] { box-shadow: inset 0 calc(var(--border-width-accent) * -1) var(--color-brand); }
.share-tabs__stage { position: relative; overflow: clip; overflow-clip-margin: var(--space-2); }
.share-tabs__panel { padding-bottom: var(--space-2); }
.share-tabs__panel.is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; }
.share-tabs__bar ~ .share-tabs__stage .tour-share__section > h2 { position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }
/* 패널 안 첫 섹션은 위 경계선 없이 탭 줄에서 같은 간격으로 시작한다. */
.share-tabs__panel > .tour-share__section:first-child,
.share-tabs__panel > .tour-share__next:first-child { margin-top: var(--space-6); }

/* 떠 있는 버튼 묶음(안내·맨 위로, x-ui.float-stack, common.css): 본문 줄 오른쪽 끝, 하단 행동 바 바로 위에 선다. */
.share-shell { --float-right: calc((100% - var(--share-column-width)) / 2 + var(--space-2)); --float-bottom: calc(var(--share-dock-height, 0px) + var(--space-3) + env(safe-area-inset-bottom)); }
.share-shell:has(.share-dock) { --float-bottom: calc(var(--share-dock-height, 0px) + var(--space-3)); }

/* 섹션 안 안내 상자(form-alert) 다음 내용은 --alert-gap. */
.tour-share__section > .form-alert + :not(.form-field) { margin-top: calc(var(--alert-gap) - var(--space-4)); }
.tour-share__section + .tour-share__section { border-top: var(--border-width) solid var(--color-border); padding-top: var(--space-6); }
.tour-share-checklists,
.tour-share-checklist { display: grid; min-width: 0; gap: var(--space-4); }
/* 투어 공유 일정(share.tours._schedule): 가는 세로선 하나에 날짜만 마디로 둔다(1뎁스). 일정(2뎁스)은 표시 없이
   한 단계 들여 쓰고, 시간·제목 글자 크기와 색으로 구분한다. 시간 있는 행만 시간 칸을 둔다. */
.tour-timeline { --timeline-x: .3125rem; --timeline-gutter: 1.5rem; --timeline-node: .625rem; position: relative; display: grid; min-width: 0; gap: var(--space-8); padding-left: var(--timeline-gutter); }
.tour-timeline::before { position: absolute; top: var(--space-2); bottom: var(--space-1); left: calc(var(--timeline-x) - var(--border-width) / 2); width: var(--border-width); background: var(--color-border-strong); content: ""; }
.tour-timeline__day { display: grid; min-width: 0; gap: var(--space-4); }
.tour-timeline__day h3 { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-base); font-weight: var(--font-weight-regular); line-height: var(--line-height-tight); }
.tour-timeline__day h3::before { position: absolute; top: calc((1em * var(--line-height-tight) - var(--timeline-node)) / 2); left: calc(var(--timeline-x) - var(--timeline-gutter) - var(--timeline-node) / 2); width: var(--timeline-node); height: var(--timeline-node); border-radius: var(--radius-pill); background: var(--color-brand); box-shadow: 0 0 0 var(--space-1) var(--color-surface); content: ""; }
.tour-timeline__date { color: var(--color-text); font-weight: var(--font-weight-semibold); }
.tour-timeline__day h3 small { color: var(--color-text-muted); font-size: var(--font-size-xs); letter-spacing: .02em; }
.tour-timeline__day ol { display: grid; min-width: 0; gap: var(--space-4); margin: 0; padding: 0 0 0 var(--space-3); list-style: none; }
.tour-timeline__day li { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: var(--space-1) var(--space-4); font-size: var(--font-size-sm); line-height: var(--line-height-body); }
/* 작은 화면: 시간을 제목 위 작은 줄로 둔다. 넓은 화면에서는 시간 칸 옆에 둔다(아래 min-width 40rem). */
.tour-timeline__time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-xs); font-variant-numeric: tabular-nums; line-height: var(--line-height-guide); }
.tour-timeline__time span { color: var(--color-text); font-weight: var(--font-weight-medium); }
.tour-timeline__time small { color: var(--color-text-muted); font-size: inherit; }
.tour-timeline__body strong { font-weight: var(--font-weight-medium); }
.tour-timeline__body p { margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--font-size-xs); line-height: var(--line-height-guide); }
/* 시간대별로 고른 행(ScheduleFocus): 왼쪽 가는 강조선. 지금·다음 행만 시간 뒤에 한 단어를 붙인다. */
.tour-timeline__day li.is-current::before,
.tour-timeline__day li.is-next::before,
.tour-timeline__day li.is-upcoming::before { position: absolute; top: var(--space-1); bottom: var(--space-1); left: calc(-1 * var(--space-3)); width: var(--border-width-accent); border-radius: var(--radius-pill); background: var(--color-border-strong); content: ""; }
.tour-timeline__day li.is-current::before { background: var(--color-brand); }
.tour-timeline__day li.is-current .tour-timeline__time span { color: var(--color-brand); }
.tour-timeline__day li.is-current .tour-timeline__time::after,
.tour-timeline__day li.is-next .tour-timeline__time::after { margin-left: var(--space-1); font-weight: var(--font-weight-semibold); }
.tour-timeline__day li.is-current .tour-timeline__time::after { color: var(--color-brand); content: "지금"; }
.tour-timeline__day li.is-next .tour-timeline__time::after { color: var(--color-text-secondary); content: "다음"; }
/* 여행 중의 일정(share.tours._schedule $today): 오늘 블록은 마디가 물결처럼 번지고 "오늘" 표시가 붙는다.
   지난 날은 날짜 줄만 흐리게 남기고 일정은 접어 둔다. 날짜 줄(버튼)을 누르면 행 높이 0fr ↔ 1fr로 부드럽게 펼친다(share-page.js). */
.tour-timeline__fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 420ms cubic-bezier(.3, 0, 0, 1), opacity var(--duration-slow) var(--ease-standard); }
.tour-timeline__fold > div { min-height: 0; overflow: hidden; }
.tour-timeline__day.is-past { gap: 0; }
.tour-timeline__day.is-past .tour-timeline__fold { grid-template-rows: 0fr; opacity: 0; }
.tour-timeline__day.is-past .tour-timeline__fold > div > ol { padding-top: var(--space-4); }
.tour-timeline__day.is-past:has([aria-expanded="true"]) .tour-timeline__fold { grid-template-rows: 1fr; opacity: 1; }
.tour-timeline__day.is-past h3::before { background: var(--color-border-strong); }
.tour-timeline__toggle { display: flex; width: 100%; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); color: inherit; font: inherit; text-align: left; }
.tour-timeline__day.is-past .tour-timeline__date { color: var(--color-text-secondary); }
.tour-timeline__summary { margin-left: auto; }
.tour-timeline__chevron { align-self: center; color: var(--color-text-muted); font-size: var(--font-size-xs); transition: transform var(--duration-slow) var(--ease-spring); }
.tour-timeline__toggle[aria-expanded="true"] .tour-timeline__chevron { transform: rotate(180deg); }
.tour-timeline__today { border-radius: var(--radius-pill); background: var(--color-brand); padding: 0 var(--space-2); color: var(--color-surface); font-size: var(--font-size-xs); font-style: normal; font-weight: var(--font-weight-semibold); line-height: 1.6; }
.tour-timeline__today--tomorrow { background: var(--color-brand-soft); color: var(--color-brand); }
.tour-timeline__day.is-today h3::before { z-index: 1; }
.tour-timeline__day.is-today h3::after { position: absolute; top: calc((1em * var(--line-height-tight) - var(--timeline-node)) / 2); left: calc(var(--timeline-x) - var(--timeline-gutter) - var(--timeline-node) / 2); width: var(--timeline-node); height: var(--timeline-node); border-radius: var(--radius-pill); background: var(--color-brand-mid); content: ""; animation: tour-timeline-ripple 2.4s var(--ease-standard) infinite; pointer-events: none; }
@keyframes tour-timeline-ripple {
    from { opacity: .7; transform: scale(1); }
    to { opacity: 0; transform: scale(2.8); }
}
.tour-share-checklist + .tour-share-checklist { border-top: var(--border-width) solid var(--color-border); padding-top: var(--space-4); }
.tour-share-checklist h3 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.tour-share-checklist__note { margin-top: calc(var(--space-3) * -1); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
/* 투어 공유 체크리스트(share.tours._checklists): 항목은 촘촘한 한 줄씩, 그룹 제목 위만 넓힌다. 구분선은 위아래 같은 여백. */
.tour-share-checklist__entries { display: grid; min-width: 0; }
.tour-share-checklist h4 { margin: var(--space-4) 0 var(--space-1); color: var(--color-brand); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tour-share-checklist h4:first-child { margin-top: 0; }
.tour-share-checklist hr { margin: var(--space-4) 0; border: 0; border-top: var(--border-width) solid var(--color-border); }
/* 목록 처음·끝과 구분선 앞뒤 항목의 안쪽 여백을 빼서, 구분선 위아래와 섹션 경계 위아래 간격을 같게 한다. */
.tour-share-checklist__entries > .check-item:first-child,
.tour-share-checklist hr + .check-item { padding-top: 0; }
.tour-share-checklist__entries > .check-item:last-child,
.tour-share-checklist__entries > .check-item:has(+ hr) { padding-bottom: 0; }
.tour-share-checklist hr + h4 { margin-top: 0; }
/* 공유 화면 체크 항목(x-share.check-item, 기본 모양은 common.css): 투어에서 참가 중이 아닌 사람은 체크 표시 없는 글줄(--plain). */
/* 체크 권한이 없을 때: 체크박스 자리에 그룹별 번호(01, 02…)를 같은 폭으로 두어 참가자 화면과 줄 리듬·글 시작선을 맞춘다. */
.tour-share-checklist__entries { counter-reset: tour-check; }
.tour-share-checklist h4 { counter-set: tour-check 0; }
.check-item--plain { counter-increment: tour-check; }
.check-item--plain::before { flex: 0 0 var(--check-box); color: var(--color-text-muted); font-size: var(--font-size-xs); font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: calc(var(--font-size-sm) * var(--line-height-body)); content: counter(tour-check, decimal-leading-zero); }
/* 나의 투어(share.tours._mine): 하단 바 펼침 영역. 닉네임 줄(연필 → 그 자리 입력 폼) → 상태 안내 → 카드(나의 정산). 계정·참가 행동은 오른쪽 위 "···" 메뉴.
   상세 내역은 영수증처럼 점선으로 나눈다. */
/* 내 슬레이트: 판·구멍·그림자 모양은 공통 .slate(common.css, docs/ui/design-style.md 05)이고, 여기서는 하단 바 펼침 영역의 배치만 정한다.
   판 안쪽 여백은 네 변 모두 --slate-inset 하나로 맞추고, 구멍은 테두리에서 같은 여백만큼 떨어진 왼쪽 위에 둔다.
   오른쪽 위 모서리(__corner)는 구멍과 같은 높이 줄에 가운데를 맞춘 "···" 메뉴다(투어 관리 바로가기도 그 안).
   메뉴가 있으면(--menu) 그 줄을 따로 두고 내용은 그 줄 아래 같은 여백 뒤에서 시작해 닉네임이 판 폭을 다 쓴다
   (닉네임 양옆을 버튼 폭만큼 비우면 좁은 폭에서 닉네임이 글자 중간에서 꺾인다).
   메뉴가 없으면 그 줄을 비워 두지 않고 내용이 위 여백 바로 뒤에서 시작하며, 맨 위 묶음만 구멍 폭만큼 양옆을 비워 겹치지 않게 한다.
   내용이 짧아도 판이 화면 절반(min-height 50vh)은 차지해 아래가 하얗게 비는 슬레이트로 보이게 하고, 행은 위로 붙인다(align-content: start). */
.tour-mine {
    position: relative;
    display: grid;
    align-content: start;
    gap: var(--space-4);
    min-height: 50vh;
    margin-bottom: var(--space-3);
    padding: var(--slate-inset);
    padding-top: calc(var(--slate-inset) * 2 + var(--slate-hole));
    font-size: var(--font-size-sm);
}
/* 상태 배지와 닉네임은 한 묶음으로 왼쪽에 두고, 판의 다른 덩어리보다 촘촘하게 붙인다. */
.tour-mine__top { display: grid; justify-items: start; gap: var(--space-2); }
.tour-mine__top > .badge { white-space: nowrap; }
.tour-mine__name { justify-self: stretch; }
.tour-mine__head { display: flex; min-width: 0; align-items: center; gap: var(--space-1); padding-inline: var(--space-1); }
.tour-mine__head h2 + .inline-edit-toggle { margin-left: calc(var(--space-1) * -1); }
/* 닉네임은 띄어쓰기 없는 한 낱말(바다 생물+숫자)이 많아, 좁은 화면에서는 글자를 조금 줄여 한 줄에 담고 그래도 넘치면 줄을 바꾼다. */
.tour-mine__head h2 { min-width: 0; font-size: clamp(var(--font-size-base), 4.6vw, var(--font-size-lg)); font-weight: var(--font-weight-semibold); word-break: keep-all; overflow-wrap: anywhere; }
.tour-mine__corner { position: absolute; z-index: 1; top: calc(var(--slate-inset) + (var(--slate-hole) - var(--control-height-sm)) / 2); right: var(--space-1); }
.tour-mine__note { padding-inline: var(--space-1); color: var(--color-text-secondary); }
.tour-mine__card { display: grid; gap: var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface-soft); padding: var(--space-4); }
.tour-mine__card > p { color: var(--color-text-secondary); }
.tour-mine__card h3 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.tour-mine__deposit { display: grid; gap: var(--space-2); border-radius: var(--radius-md); background: var(--color-surface); padding: var(--space-3); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.tour-mine__deposit span { display: block; color: var(--color-text-muted); font-size: var(--font-size-xs); }
.tour-mine__deposit strong { color: var(--color-text); font-variant-numeric: tabular-nums; }
.tour-mine__card > .tour-mine__due { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); color: var(--color-text); }
.tour-mine__due strong { color: var(--color-brand); font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; }
.tour-receipt summary { display: flex; width: fit-content; align-items: center; gap: var(--space-1); color: var(--color-brand); font-weight: var(--font-weight-semibold); cursor: pointer; list-style: none; }
.tour-receipt summary::-webkit-details-marker { display: none; }
.tour-receipt summary .icon-xs { transition: transform var(--duration-fast) var(--ease-standard); }
.tour-receipt[open] summary .icon-xs { transform: rotate(180deg); }
.tour-receipt summary:focus-visible { outline: var(--border-width-accent) solid var(--color-focus); outline-offset: var(--border-width); border-radius: var(--radius-sm); }
.tour-receipt__paper { display: grid; gap: var(--space-3); margin-top: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); padding: var(--space-4); font-variant-numeric: tabular-nums; }
.tour-receipt__group { display: grid; gap: var(--space-1); }
.tour-receipt__group + .tour-receipt__group { border-top: var(--border-width) dashed var(--color-border-strong); padding-top: var(--space-3); }
.tour-receipt__group h4 { color: var(--color-text-muted); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.tour-receipt__group ul { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.tour-receipt__group li,
.tour-receipt__total { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.tour-receipt__group li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.tour-receipt__group li > span:last-child { flex: 0 0 auto; }
.tour-receipt__total { border-top: var(--border-width-accent) dashed var(--color-border-strong); padding-top: var(--space-3); font-weight: var(--font-weight-semibold); }
.tour-receipt__total strong { color: var(--color-brand); }
/* 나의 여행 공유(share.trips.show): 투어 공유 화면의 카드·섹션·체크리스트·영수증 모양을 그대로 쓰고, 로그·사진 목록만 더한다. */
.tour-share__owner-note { margin: var(--space-5) var(--space-5) 0; }
.trip-share-expenses { margin-top: 0; border: var(--border-width) solid var(--color-border); }
.trip-share-logs { display: grid; margin: 0; padding: 0; list-style: none; }
.trip-share-logs li { display: grid; gap: var(--space-1); padding-block: var(--space-3); font-size: var(--font-size-sm); overflow-wrap: anywhere; }
.trip-share-logs li:first-child { padding-top: 0; }
.trip-share-logs li + li { border-top: var(--border-width) solid var(--color-border); }
.trip-share-logs span { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
/* 대표 사진(x-share.cover-photo): 여행·로그의 첫 번째 사진 한 장. */
.share-cover-photo { display: grid; gap: var(--space-1); max-width: 36rem; margin: 0; }
.share-cover-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--color-depth-surface); object-fit: cover; }
.share-cover-photo figcaption { color: var(--color-text-secondary); font-size: var(--font-size-xs); overflow-wrap: anywhere; }

@media (min-width: 40rem) {
    .tour-share__hero { padding: var(--space-10) var(--space-6) var(--space-6); }
    .tour-share__section,
    .tour-share__next { margin-inline: var(--space-6); }
    .tour-timeline__day li.is-timed { grid-template-columns: 6rem minmax(0, 1fr); }
    .tour-timeline__day li.is-timed .tour-timeline__time { line-height: calc(var(--font-size-sm) * var(--line-height-body)); }
}

/* 투어 공지(share.tours._announcements): 링크 안내와 같은 .form-alert 상자에 확성기 아이콘. 강사는 상자를 눌러 메모처럼 고친다. */
.share-shell__notice:has(+ .share-shell__notice) { margin-bottom: var(--alert-stack-gap); }
.tour-notice__read { display: block; width: 100%; margin: 0; border: 0; border-radius: var(--radius-sm); background: none; padding: 0; color: inherit; font: inherit; line-height: inherit; text-align: left; overflow-wrap: anywhere; cursor: text; }
.tour-notice__read:focus-visible { outline: .1875rem solid var(--color-focus); outline-offset: .25rem; }
.tour-notice__placeholder { color: var(--color-text-muted); }
.tour-notice__editor { display: grid; min-width: 0; gap: var(--space-3); }
.tour-notice__input { width: 100%; min-height: 5rem; resize: vertical; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); padding: var(--space-2) var(--space-3); color: var(--color-text); font: inherit; line-height: inherit; }
.tour-notice__input:focus-visible { border-color: var(--color-focus); outline: none; }
.tour-notice__editor > .action-group { justify-content: center; }

@media (hover: hover) {
    .tour-notice__read:hover { color: var(--color-text); }
}

/* Hidden tour sections: a blurred skeleton with the login prompt on top; the real content is never rendered. */
.tour-locked { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface-soft); }
.tour-locked__preview { display: grid; gap: var(--space-2); padding: var(--space-4); filter: blur(3px); opacity: 0.7; pointer-events: none; user-select: none; }
.tour-locked__preview strong { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.tour-locked__line { display: block; height: var(--space-3); border-radius: var(--radius-pill); background: var(--color-border); }
.tour-locked__line--short { width: 60%; }
.tour-locked__message { position: absolute; inset: 0; display: grid; place-content: center; background: color-mix(in srgb, var(--color-surface) 55%, transparent); padding: var(--space-4); color: var(--color-text-secondary); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); text-align: center; }
.tour-share__recruit { margin-top: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.tour-share__recruit strong { color: var(--color-brand); font-weight: var(--font-weight-semibold); }

/* 공개 다이버 프로필(profiles.show). 카드·로그 블록·사진 격자는 공유 화면 것을 그대로 쓰고, 스킨은 머리 영역의 색만 바꾼다(.public-profile--{skin}, UserSetting::SKINS). */
.public-profile { --profile-hero-bg: linear-gradient(180deg, var(--color-depth-surface), var(--color-surface)); --profile-hero-text: var(--color-text); --profile-hero-muted: var(--color-text-secondary); --profile-avatar-bg: var(--color-brand); padding-bottom: var(--space-8); }
.public-profile--ocean { --profile-hero-bg: linear-gradient(160deg, var(--color-depth-coastal), var(--color-depth-surface) 70%, var(--color-surface)); }
.public-profile--sand { --profile-hero-bg: linear-gradient(180deg, var(--color-sand), var(--color-surface)); --profile-hero-muted: var(--color-sand-text); --profile-avatar-bg: var(--color-sand-text); }
.public-profile--night { --profile-hero-bg: linear-gradient(170deg, var(--color-brand), color-mix(in srgb, var(--color-brand) 65%, #000)); --profile-hero-text: var(--color-surface); --profile-hero-muted: color-mix(in srgb, var(--color-surface) 80%, transparent); --profile-avatar-bg: color-mix(in srgb, var(--color-surface) 22%, transparent); }
.public-profile__hero { border-bottom: var(--border-width) solid var(--color-border); background: var(--profile-hero-bg); padding: var(--space-8) var(--space-5) var(--space-6); color: var(--profile-hero-text); }
.public-profile--night .public-profile__hero .share-page__eyebrow,
.public-profile--night .public-profile__hero .text-link { color: var(--profile-hero-text); }
.public-profile__person { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.public-profile__person .share-page__title { margin-top: 0; }
.public-profile__avatar { display: grid; width: var(--space-16); height: var(--space-16); flex: 0 0 auto; place-items: center; border-radius: var(--radius-pill); background: var(--profile-avatar-bg); color: var(--color-surface); font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); }
.public-profile__summary { margin-top: var(--space-1); color: var(--profile-hero-muted); font-size: var(--font-size-sm); }
.public-profile__facts { margin-top: var(--space-4); }
/* SNS 혹은 홈페이지: 이름(서비스·도메인)만 작은 알약 링크로 늘어놓는다. 스킨 글자색을 따른다. */
.public-profile__links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); padding: 0; list-style: none; }
.public-profile__link { display: inline-flex; min-height: 2rem; align-items: center; gap: var(--space-1); max-width: 100%; border: var(--border-width) solid color-mix(in srgb, var(--profile-hero-text) 22%, transparent); border-radius: var(--radius-pill); padding: 0 var(--space-3); color: var(--profile-hero-text); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) {
    .public-profile__link:hover { border-color: currentColor; }
}
/* 객관식 소개(profile-traits): 항목 이름 + 선택지. 선택지는 모두 늘어놓고 고른 것만 브랜드 색으로 채우고, 나머지는 점선 테두리의 흐린 글자. */
.profile-traits { display: grid; margin-top: var(--space-3); }
.profile-traits__row { display: grid; gap: var(--space-2); border-top: var(--border-width) solid var(--color-border); padding-block: var(--space-4); }
.profile-traits__row:first-child { border-top: 0; padding-top: var(--space-2); }
.profile-traits__row:last-child { padding-bottom: 0; }
.profile-traits__row > dt { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.profile-traits__value { color: var(--color-text); font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.profile-traits__groups { display: grid; gap: var(--space-2); }
.profile-traits__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.profile-traits__chip { display: inline-flex; min-height: 2rem; align-items: center; gap: var(--space-1); border: var(--border-width) dashed var(--color-border); border-radius: var(--radius-pill); padding: 0 var(--space-3); color: var(--color-text-muted); font-size: var(--font-size-xs); word-break: keep-all; }
.profile-traits__chip.is-on { border: var(--border-width) solid var(--color-brand); background: var(--color-brand-soft); color: var(--color-brand); font-weight: var(--font-weight-semibold); }
@media (min-width: 40rem) {
    .profile-traits__row { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; gap: var(--space-4); }
    .profile-traits__row > dt { padding-top: var(--space-2); }
}
/* 강사 프로필의 확인된 것: 한 줄에 하나, 아이콘 + 이름 + 확인한 범위(·발급일·기한·증빙). 자격은 브랜드, 추가 인증은 성공 색 아이콘. */
.profile-facts { display: grid; gap: var(--space-4); margin-top: var(--space-4); padding: 0; list-style: none; }
.profile-facts__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-3); }
.profile-facts__icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: var(--radius-pill); background: var(--color-brand-soft); color: var(--color-brand); }
.profile-facts__item--trust .profile-facts__icon { background: var(--color-success-soft); color: var(--color-success); }
.profile-facts__item > div { display: grid; min-width: 0; gap: var(--space-1); }
.profile-facts__item strong { color: var(--color-text); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.profile-facts__detail { color: var(--color-text-secondary); font-weight: var(--font-weight-regular); }
.profile-facts__item small { color: var(--color-text-secondary); font-size: var(--font-size-xs); line-height: var(--line-height-body); word-break: keep-all; }
.profile-facts__item .profile-facts__dates { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--color-text-muted); }
/* 강사 프로필의 게시 투어: 투어 공유 화면으로 가는 줄. 투어 찾기 카드에서 오면 그 줄(:target)로 스크롤해 테두리로 표시한다. */
.profile-tours { display: grid; gap: var(--space-2); margin-top: var(--space-3); padding: 0; list-style: none; }
#profile-tours-title { scroll-margin-top: var(--space-24); }
.profile-tours li:target .profile-tours__link { border-color: var(--color-brand); }
.profile-tours__badges { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.profile-tours__link { display: grid; gap: var(--space-1); justify-items: start; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); color: var(--color-text); text-decoration: none; }
.profile-tours__link strong { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); word-break: keep-all; }
.profile-tours__link small { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
@media (hover: hover) {
    .profile-tours__link:hover { border-color: var(--color-brand); }
    .profile-tours__link:hover strong { color: var(--color-brand); }
}
/* 머리 영역의 문의 버튼: 스킨 글자색을 따르고, 어두운 스킨에서는 버튼을 밝게 뒤집는다. */
.public-profile__contact { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
.public-profile__contact .btn { width: 100%; }
.public-profile__contact p { color: var(--profile-hero-muted); font-size: var(--font-size-xs); }
.public-profile--night .public-profile__contact .btn { background: var(--color-surface); color: var(--color-brand); }
/* 추가 인증·확인 방법 접기: 일정이 위에 있어도 자격 구역이 길어지지 않게 한다. */
.profile-facts__more { margin-top: var(--space-4); border-top: var(--border-width) solid var(--color-border); padding-top: var(--space-3); }
.profile-facts__more > summary { cursor: pointer; font-size: var(--font-size-sm); }
.profile-facts__more > summary strong { font-weight: var(--font-weight-semibold); }
.profile-facts__more > summary small { display: block; margin-top: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.public-profile__note { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--font-size-xs); }
.public-profile__stats { margin-top: var(--space-6); }
.public-profile__stats dd { font-family: var(--font-gauge); }
.public-profile__item-title { display: flex; align-items: center; gap: var(--space-2); }
.public-profile__item-title > .icon { flex: 0 0 auto; color: var(--color-brand); }
.public-profile__empty { margin: var(--space-6) var(--space-5) 0; }

@media (min-width: 40rem) {
    .public-profile__hero { padding: var(--space-10) var(--space-6) var(--space-8); }
    .public-profile__empty { margin-inline: var(--space-6); }
}
