/* ==========================================================================
   품 꾸미기 PWA — 공용 스타일
   화이트 배경(#FFFFFF / #F8FAFC) 기반, 모바일 퍼스트.
   목차
     01 토큰 · 리셋
     02 공통 레이아웃 (앱바 · 셸 · 탭)
     03 기본 컴포넌트 (카드 · 필드 · 버튼 · 스위치 · 세그먼트)
     04 인증 화면 (로그인 · 회원가입 · 찾기 · 환영)
     05 품 꾸미기 (내 프로필 · 블록 · SNS · 이미지)
     06 꾸미기 추가 · 모달 · 토스트
     07 미리보기 · 공유 페이지
     08 지도 블록
     09 반응형
   ========================================================================== */

/* --------------------------------------------------------------------------
   00 폰트 (라틴/숫자: Pretendard 서브셋 · 한글: 기기 기본 산세리프)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Pum Sans';
  src: url('assets/fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+20A9, U+20AC;
}

@font-face {
  font-family: 'Pum Sans';
  src: url('assets/fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+20A9, U+20AC;
}

@font-face {
  font-family: 'Pum Sans';
  src: url('assets/fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+20A9, U+20AC;
}

/* --------------------------------------------------------------------------
   01 토큰 · 리셋
   -------------------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f4f8;
  --line: #e9edf2;
  --line-strong: #d9e0e8;
  --ink: #0f1419;
  --ink-2: #454d59;
  --muted: #8b95a3;
  --brand: #ff3b30;
  --brand-strong: #e12a1f;
  --brand-soft: #fff1f0;
  --dark: #161b22;
  --dark-2: #2a3038;
  --ok: #12b76a;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-xs: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 20, 25, 0.05), 0 6px 16px rgba(15, 20, 25, 0.04);
  --shadow: 0 10px 30px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 26px 70px rgba(15, 20, 25, 0.18);
  --font: 'Pum Sans', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: calc(15px * var(--fs-scale, 1));
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.svg-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* --------------------------------------------------------------------------
   02 공통 레이아웃
   -------------------------------------------------------------------------- */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: env(safe-area-inset-top) 8px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.appbar--plain {
  background: #fff;
}

.appbar__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.16s ease;
}

.appbar__icon:hover {
  background: var(--surface-3);
}

.appbar__title {
  flex: 1;
  text-align: center;
  font-size: calc(15px * var(--fs-scale, 1));
  font-weight: 600;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appbar__spacer {
  width: 40px;
  height: 40px;
}

.appbar__text {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: background 0.16s ease;
}

.appbar__text:hover {
  background: var(--surface-3);
}

.shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shell--tight {
  padding-top: 12px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 10px 16px 0;
  padding: 4px;
  background: var(--surface-3);
  border-radius: 999px;
}

.tabs__btn {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tabs__btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs__btn .svg-icon {
  width: 17px;
  height: 17px;
  opacity: 0.9;
  flex: none;
}

.tabs__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   03 기본 컴포넌트
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid transparent;
}

.card.is-open .card__head {
  border-bottom-color: var(--line);
}

.card__title {
  font-size: calc(15px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__sub {
  font-size: calc(12.5px * var(--fs-scale, 1));
  color: var(--muted);
  font-weight: 500;
}

.card__chev {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.2s ease, background 0.16s ease;
}

.card__chev:hover {
  background: var(--surface-3);
}

.card.is-open .card__chev {
  transform: rotate(180deg);
}

.card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__body--flush {
  padding: 16px 0;
}

.card--flat {
  box-shadow: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field__label .req {
  color: var(--brand);
}

.field__hint {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.5;
}

.field__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: calc(14.5px * var(--fs-scale, 1));
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #a9b2bf;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 20, 25, 0.07);
}

.input.is-error,
.textarea.is-error {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.input[readonly] {
  background: var(--surface-2);
  color: var(--ink-2);
}

.textarea {
  min-height: 96px;
  resize: none;
  line-height: 1.6;
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-prefix:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 20, 25, 0.07);
}

.input-prefix.is-error {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.input-prefix__label {
  display: flex;
  align-items: center;
  padding: 0 4px 0 12px;
  font-size: calc(13px * var(--fs-scale, 1));
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}

.input-prefix .input {
  border: 0;
  box-shadow: none !important;
  background: transparent;
  padding-left: 2px;
  min-height: 46px;
}

.input-prefix__btn {
  margin: 4px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--dark);
  color: #fff;
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 600;
  white-space: nowrap;
  flex: none;
  transition: background 0.16s ease;
}

.input-prefix__btn:hover {
  background: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: calc(14.5px * var(--fs-scale, 1));
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.08s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--dark);
  color: #fff;
}

.btn--primary:hover {
  background: #000;
}

.btn--brand {
  background: var(--brand);
  color: #fff;
}

.btn--brand:hover {
  background: var(--brand-strong);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface-2);
}

.btn--soft {
  background: var(--surface-3);
  color: var(--ink);
}

.btn--soft:hover {
  background: #e9eef4;
}

.btn--sm {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: calc(12.5px * var(--fs-scale, 1));
}

.btn--xs {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: calc(12px * var(--fs-scale, 1));
  gap: 4px;
}

.btn--dashed {
  border: 1px dashed var(--line-strong);
  background: #fff;
  color: var(--ink-2);
}

.btn--dashed:hover {
  border-color: var(--ink-2);
  background: var(--surface-2);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn .svg-icon {
  width: 18px;
  height: 18px;
}

.linkbtn {
  color: var(--ink-2);
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.linkbtn:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-2);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: calc(12px * var(--fs-scale, 1));
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 스위치 */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  width: 46px;
  height: 27px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch__track {
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: #d7dde5;
  transition: background 0.2s ease;
  position: relative;
  pointer-events: none;
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__track {
  background: var(--brand);
}

.switch input:checked + .switch__track::after {
  transform: translateX(19px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.switch--sm {
  width: 40px;
  height: 24px;
}

.switch--sm .switch__track {
  width: 40px;
  height: 24px;
}

.switch--sm .switch__track::after {
  width: 18px;
  height: 18px;
}

.switch--sm input:checked + .switch__track::after {
  transform: translateX(16px);
}

/* 세그먼트 */
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-3);
  border-radius: 12px;
}

.segmented__btn {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.segmented__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* 라디오 카드 */
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
}

.radio-row + .radio-row {
  border-top: 1px solid var(--line);
}

.radio-row input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color 0.16s ease;
}

.radio-row input:checked {
  border-color: var(--brand);
}

.radio-row input:checked::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.radio-row__body {
  flex: 1;
  min-width: 0;
}

.radio-row__title {
  display: block;
  font-size: calc(14px * var(--fs-scale, 1));
  font-weight: 600;
}

.radio-row__desc {
  display: block;
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--muted);
  margin-top: 2px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  font-size: calc(14px * var(--fs-scale, 1));
}

.check-row input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
}

.check-row input:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.check-row input:checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* --------------------------------------------------------------------------
   04 인증 화면
   -------------------------------------------------------------------------- */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px calc(40px + env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 420px at 50% -8%, #f0f4ff 0%, rgba(255, 255, 255, 0) 62%),
    var(--white);
}

.auth {
  width: 100%;
  max-width: 400px;
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.auth__mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: calc(22px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px rgba(255, 59, 48, 0.24);
}

.auth__wordmark {
  font-size: calc(19px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth__title {
  font-size: calc(26px * var(--fs-scale, 1));
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.auth__subtitle {
  font-size: calc(13.5px * var(--fs-scale, 1));
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.6;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__error {
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--brand);
  font-weight: 500;
  min-height: 0;
}

.auth__sns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sns-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.sns-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.sns-btn:active {
  transform: translateY(1px);
}

.sns-btn__badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: calc(15px * var(--fs-scale, 1));
}

.sns-btn__badge--google {
  background: #fff;
  border: 1px solid var(--line-strong);
}

.sns-btn__badge--naver {
  background: #03c75a;
  font-size: calc(17px * var(--fs-scale, 1));
}

.sns-btn__badge--kakao {
  background: #fee500;
  color: #3c1e1e;
  font-size: calc(15px * var(--fs-scale, 1));
}

.sns-btn__label {
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
}

.auth__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  font-size: calc(13px * var(--fs-scale, 1));
  color: var(--ink-2);
}

.auth__links .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.auth__foot {
  margin-top: 26px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.auth__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.auth__back {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.auth__back:hover {
  background: var(--surface-3);
}

.auth__step {
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--muted);
  margin-left: auto;
}

.auth__agree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

/* 환영 */
.welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px calc(32px + env(safe-area-inset-bottom));
  background:
    radial-gradient(760px 420px at 50% -6%, #eef4ff 0%, rgba(255, 255, 255, 0) 66%),
    #fff;
}

.welcome__inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.welcome__art {
  width: 100%;
  max-width: 300px;
  margin: 8px auto 22px;
}

.welcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 700;
  margin-bottom: 14px;
}

.welcome__title {
  font-size: calc(24px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.welcome__title strong {
  color: var(--brand);
}

.welcome__desc {
  margin-top: 10px;
  font-size: calc(13.5px * var(--fs-scale, 1));
  line-height: 1.65;
  color: var(--ink-2);
}

.welcome__desc b {
  font-weight: 700;
  color: var(--ink);
}

.welcome__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.welcome__meta {
  margin-top: 18px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
}

/* 활용법 */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.guide-item__num {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 700;
}

.guide-item__title {
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 700;
  margin-bottom: 3px;
}

.guide-item__desc {
  font-size: calc(12.5px * var(--fs-scale, 1));
  color: var(--ink-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   05 품 꾸미기
   -------------------------------------------------------------------------- */
.editor-grid {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-aside {
  display: none;
}

.profile-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mode-btn.is-active {
  border-color: var(--dark);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--dark);
}

.mode-btn__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}

.mode-btn__thumb i {
  position: absolute;
  display: block;
  background: #cbd4de;
  border-radius: 2px;
}

.mode-btn__thumb .t-strip {
  top: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(120deg, #dbe3ec, #cfd9e4);
}

.mode-btn__thumb .t-avatar {
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #aab6c4;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30%;
  border: 2px solid #fff;
}

.mode-btn__thumb .t-line {
  left: 26%;
  right: 26%;
  height: 8%;
  bottom: 20%;
  border-radius: 2px;
}

.mode-btn__thumb .t-line2 {
  left: 34%;
  right: 34%;
  height: 6%;
  bottom: 8%;
  opacity: 0.7;
}

.mode-btn[data-layout='profile'] .t-strip {
  display: none;
}

.mode-btn[data-layout='profile'] .t-avatar {
  bottom: 44%;
  width: 34%;
}

.mode-btn[data-layout='full'] .t-strip {
  height: 12%;
}

.mode-btn[data-layout='bgprofile'] .t-strip {
  height: 36%;
}

.mode-btn[data-layout='bgprofile'] .t-avatar {
  bottom: 34%;
}

.mode-btn[data-layout='bg'] .t-strip {
  height: 100%;
  background: linear-gradient(140deg, #c9d5e2, #e3eaf2);
}

.mode-btn[data-layout='bg'] .t-avatar {
  display: none;
}

.mode-btn[data-layout='bg'] .t-line {
  bottom: 12%;
  background: #fff;
  opacity: 0.9;
}

/* 테마 */
.theme-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.theme-btn {
  position: relative;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-3);
  transition: border-color 0.16s ease, transform 0.12s ease;
}

.theme-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-btn span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 0 4px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 700;
  text-align: center;
}

.theme-btn.is-active {
  border-color: var(--dark);
}

.theme-btn.is-active::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* 이미지 슬롯 */
.img-slots {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.islot-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.islot-wrap--avatar {
  flex: none;
  width: 92px;
  align-items: center;
}

.islot__cap {
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.islot {
  position: relative;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.islot:hover,
.islot.is-dragover {
  border-color: var(--ink-2);
  background: #fff;
}

.islot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.islot--avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex: none;
}

.islot--bg {
  flex: 1;
  min-width: 0;
  aspect-ratio: 16 / 9;
}

.islot__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: calc(11px * var(--fs-scale, 1));
  text-align: center;
  padding: 6px;
  pointer-events: none;
}

.islot__empty .svg-icon {
  width: 20px;
  height: 20px;
}

.islot__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.62);
  color: #fff;
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 700;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.islot__tools {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}

.islot__tool {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 20, 25, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.islot__tool .svg-icon {
  width: 14px;
  height: 14px;
}

.islot__tool:hover {
  background: var(--brand);
}

.islot--avatar .islot__tools {
  right: 50%;
  transform: translateX(50%);
  bottom: 0;
}

.img-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* 블록 목록 */
.block-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  scroll-margin-top: 76px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.blk.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.blk.is-dragging {
  opacity: 0.35;
}

.blk.is-drop-target {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.18);
}

.blk.is-off .blk__name {
  color: var(--muted);
}

.blk__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 4px;
  min-height: 52px;
}

.blk__handle {
  width: 28px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  color: #b6c0cc;
  cursor: grab;
  touch-action: none;
  border-radius: 8px;
}

.blk__handle:hover {
  color: var(--ink-2);
  background: var(--surface-2);
}

.blk__handle:active {
  cursor: grabbing;
}

.blk__handle .svg-icon {
  width: 14px;
  height: 14px;
}

.blk__name {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: calc(14.5px * var(--fs-scale, 1));
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.blk__name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blk__tag {
  flex: none;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 700;
  display: grid;
  place-items: center;
}

.blk__tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.blk__move {
  width: 28px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.blk__move:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.blk__move[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.blk__move .svg-icon {
  width: 14px;
  height: 14px;
}

.blk__chev {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.2s ease, background 0.16s ease;
}

.blk__chev:hover {
  background: var(--surface-3);
}

.blk.is-open .blk__chev {
  transform: rotate(180deg);
}

.blk__body {
  display: none;
  padding: 4px 16px 16px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 14px;
  flex-direction: column;
  gap: 14px;
}

.blk.is-open .blk__body {
  display: flex;
}

.blk__empty {
  font-size: calc(12.5px * var(--fs-scale, 1));
  color: var(--muted);
  text-align: center;
  padding: 16px 0;
}

/* SNS 행 */
.sns-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sns-row__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  object-fit: cover;
  background: var(--surface-3);
}

.sns-row .input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  font-size: calc(13.5px * var(--fs-scale, 1));
}

.icon-btn {
  width: 40px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: #fff;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--brand);
  border-color: var(--brand);
}

.icon-btn .svg-icon {
  width: 17px;
  height: 17px;
}

/* 앱테크 편집 */
.apptech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

.apptech-item + .apptech-item {
  border-top: 1px solid var(--line);
}

.apptech-item img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.apptech-item__body {
  flex: 1;
  min-width: 0;
}

.apptech-item__num {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 800;
  display: grid;
  place-items: center;
}

.apptech-item__title {
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apptech-item__title em {
  color: var(--brand);
  font-style: normal;
}

.apptech-item__desc {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 추가 버튼 */
.add-block {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.add-block button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 600;
  transition: all 0.16s ease;
}

.add-block button:hover {
  border-color: var(--ink-2);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.editor-note {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  padding: 4px 8px 0;
}

/* --------------------------------------------------------------------------
   06 꾸미기 추가 · 모달 · 토스트
   -------------------------------------------------------------------------- */
.modal-root:empty {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 22, 0.42);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  animation: sheetUp 0.26s cubic-bezier(0.22, 0.68, 0.32, 1);
  padding-bottom: env(safe-area-inset-bottom);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 20px 10px;
}

.modal__title {
  font-size: calc(17px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.03em;
  flex: 1;
}

.modal__desc {
  font-size: calc(12.5px * var(--fs-scale, 1));
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.modal__close {
  width: 34px;
  height: 34px;
  margin: -6px -6px 0 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--surface-3);
  flex: none;
}

.modal__close:hover {
  background: #e9eef4;
}

.modal__body {
  padding: 6px 20px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal__actions {
  display: flex;
  gap: 8px;
  padding: 4px 20px 20px;
}

.modal__actions .btn {
  flex: 1;
}

@keyframes sheetUp {
  from {
    transform: translateY(18px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal--center {
  align-items: center;
  padding: 24px;
}

.modal--center .modal__panel {
  border-radius: 20px;
  max-width: 400px;
  animation: popIn 0.2s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.97);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.add-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.add-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.add-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex: none;
}

.add-item__icon .svg-icon {
  width: 19px;
  height: 19px;
}

.add-item--new .add-item__icon {
  background: var(--brand-soft);
  color: var(--brand);
}

.add-item__title {
  font-size: calc(14px * var(--fs-scale, 1));
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-item__desc {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  margin-top: 1px;
}

.pill-new {
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* SNS 아이콘 선택 */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sns-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  border-radius: 12px;
  transition: background 0.16s ease;
}

.sns-pick:hover {
  background: var(--surface-2);
}

.sns-pick img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.sns-pick span {
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.3;
}

/* 토스트 */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(16, 20, 26, 0.94);
  color: #fff;
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease;
  max-width: 100%;
}

.toast .svg-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.toast--ok .svg-icon {
  color: #5ee0a0;
}

.toast--err {
  background: rgba(190, 30, 22, 0.96);
}

@keyframes toastIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   07 미리보기 · 공유 페이지
   -------------------------------------------------------------------------- */
.preview-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.preview-bar__label {
  display: none;
  font-size: calc(12.5px * var(--fs-scale, 1));
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  margin-right: auto;
}

.preview-bar .segmented {
  flex: 1;
  min-width: 0;
  max-width: 220px;
}

.preview-bar .segmented__btn {
  white-space: nowrap;
  font-size: calc(12.5px * var(--fs-scale, 1));
}

.preview-bar .btn {
  flex: none;
}

@media (min-width: 560px) {
  .preview-bar__label {
    display: block;
  }
}

.preview-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 16px 12px 40px;
  overflow-x: auto;
}

.preview-stage--pc {
  justify-content: flex-start;
}

.device {
  width: 100%;
  max-width: 390px;
  flex: none;
  border-radius: 40px;
  background: #0f1419;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.device__screen {
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  height: min(720px, calc(100dvh - 190px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-top: 20px;
  scrollbar-width: none;
}

.device__screen::-webkit-scrollbar {
  display: none;
}

.device__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  border-radius: 999px;
  background: #0f1419;
  z-index: 3;
  pointer-events: none;
}

.device--pc {
  width: 1280px;
  max-width: none;
  border-radius: 18px;
  padding: 8px;
  background: #0f1419;
}

.device--pc .device__screen {
  border-radius: 12px;
  height: min(780px, calc(100dvh - 190px));
}

.device--pc .device__notch {
  display: none;
}

/* 공유 페이지 본문 */
.share {
  --share-bg: #f1f3f4;
  --share-ink: #16191d;
  --share-muted: #6b7480;
  background: var(--share-bg);
  min-height: 100%;
  padding-bottom: 26px;
  font-family: var(--font);
}

.share[data-theme='spring'] {
  --share-bg: #f1f6f1;
}

.share[data-theme='summer'] {
  --share-bg: #eff5fa;
}

.share[data-theme='autumn'] {
  --share-bg: #fbf3e9;
}

.share[data-theme='winter'] {
  --share-bg: #f1f3f4;
}

.share__inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 2px;
}

.share__topbar--float {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 10px 12px;
}

.share__share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.share__share .svg-icon {
  width: 13px;
  height: 13px;
}

.share__quick {
  display: flex;
  gap: 5px;
}

.share__quick button {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #222;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.share__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 4px;
  color: #9aa3ad;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 600;
  letter-spacing: -0.01em;
}

.share__brand strong {
  color: #6b7480;
}

/* 히어로 (프로필 영역) — 배경 테마 색 + 프로필 사진 배경 */
.hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--hero-base, #fff);
  color: var(--hero-fg, #16191d);
  box-shadow: 0 1px 3px rgba(20, 24, 30, 0.06);
}

.hero__bg {
  position: relative;
  width: 100%;
  aspect-ratio: 660 / 420;
  background: var(--hero-base, #dfe5ec) center / cover no-repeat;
  overflow: hidden;
}

.hero--photo .hero__bg {
  background-image: var(--hero-photo);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero--bgprofile .hero__scrim,
.hero--bg .hero__scrim {
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.22), rgba(10, 12, 16, 0) 46%);
}

.hero--bgprofile .hero__bg {
  aspect-ratio: 660 / 462;
}

.hero--bg .hero__bg {
  aspect-ratio: 660 / 760;
  max-height: 440px;
}

.hero--bg .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 44%, var(--hero-base, #fff) 100%);
}

.hero--bg .hero__body {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding-top: 0;
}

/* 프로필 전체 — 프로필 사진만을 배경 전체로 쓰는 풀 배경형 */
.hero--full {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
}

.hero__fullbg {
  position: absolute;
  inset: 0;
  background: var(--hero-base, #dfe5ec) center / cover no-repeat;
}

.hero--photo .hero__fullbg {
  background-image: var(--hero-photo);
}

.hero--full .hero__scrim {
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.14) 0%, rgba(10, 12, 16, 0.04) 34%, rgba(10, 12, 16, 0.64) 100%);
}

.hero--full .hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  padding-bottom: 24px;
}

.hero--full .hero__title {
  color: #fff;
  font-size: calc(19px * var(--fs-scale, 1));
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero--full .hero__intro {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero--full .hero__avatar {
  display: none;
}

.hero--profile .hero__bg {
  display: none;
}

.hero__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #eef1f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b6c0cc'%3E%3Cpath d='M12 12a4.2 4.2 0 1 0 0-8.4 4.2 4.2 0 0 0 0 8.4Zm0 2c-4 0-7.2 2.2-7.2 5v1.4h14.4V19c0-2.8-3.2-5-7.2-5Z'/%3E%3C/svg%3E") center / 44px no-repeat;
  box-shadow: 0 4px 14px rgba(20, 24, 30, 0.14);
  overflow: hidden;
  flex: none;
}

.hero__avatar--empty {
  display: grid;
  place-items: center;
  color: #9aa5b4;
  font-weight: 800;
  font-size: calc(24px * var(--fs-scale, 1));
  letter-spacing: -0.02em;
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--bgprofile .hero__avatar,
.hero--full .hero__avatar {
  position: relative;
  margin: -42px auto 0;
  z-index: 2;
}

.hero--profile .hero__avatar {
  margin: 24px auto 0;
}

.hero--bg .hero__avatar {
  display: none;
}

.hero__body {
  padding: 12px 20px 20px;
  text-align: center;
}

.hero--profile .hero__body {
  padding-top: 12px;
}

.hero__title {
  font-size: calc(16px * var(--fs-scale, 1));
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.03em;
  color: var(--hero-fg, var(--share-ink));
  white-space: pre-line;
  word-break: break-word;
}

.hero__intro {
  margin-top: 7px;
  font-size: calc(12px * var(--fs-scale, 1));
  line-height: 1.7;
  color: var(--hero-muted, #4a5058);
  white-space: pre-line;
  word-break: break-word;
}

.hero__placeholder {
  color: #a9b2bf;
}

/* 공유 카드 */
.s-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(20, 24, 30, 0.06);
  overflow: hidden;
}

.s-card--pad {
  padding: 16px;
}

.s-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px 10px;
}

.s-head h3 {
  font-size: calc(14px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--share-ink);
}

.s-head__more {
  margin-left: auto;
  font-size: calc(11px * var(--fs-scale, 1));
  color: #9aa3ad;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 반갑데이 */
.greet {
  padding: 0 16px 16px;
}

.greet__item {
  display: block;
}

.greet__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #f4f6f8 center / contain no-repeat;
  border: 1px solid #f0f2f5;
  position: relative;
  overflow: hidden;
}

.greet__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.greet__dday {
  position: absolute;
  right: 8px;
  bottom: 8px;
  height: 26px;
  min-width: 40px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(255, 59, 48, 0.3);
}

.greet__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: calc(11px * var(--fs-scale, 1));
  color: #8b95a3;
}

.greet__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cfd6de;
}

.greet__title {
  margin-top: 4px;
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 500;
  color: #3d444d;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.greet__price {
  text-align: right;
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}

.greet__off {
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--brand);
}

.greet__now {
  font-size: calc(15px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--share-ink);
}

.greet__was {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: #a9b2bf;
  text-decoration: line-through;
}

/* SNS */
.s-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px;
}

.s-sns__item {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: transform 0.14s ease;
}

.s-sns__item:hover {
  transform: translateY(-2px);
}

.s-sns__item img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

/* 텍스트 링크 */
.s-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
}

.s-link__body {
  flex: 1;
  min-width: 0;
}

.s-link__label {
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--share-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s-link__url {
  font-size: calc(11px * var(--fs-scale, 1));
  color: #9aa3ad;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.s-link__arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f4f6f8;
  display: grid;
  place-items: center;
  color: #6b7480;
  flex: none;
}

.s-link__arrow .svg-icon {
  width: 13px;
  height: 13px;
}

/* 품 무료 만들기 배너 */
.s-free {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(118deg, #1b2230 0%, #2b3a54 46%, #40506b 100%);
  padding: 18px 18px 16px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 28, 44, 0.22);
  text-align: left;
  width: 100%;
}

.s-free::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 93, 82, 0.55), rgba(255, 93, 82, 0) 68%);
}

.s-free__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.s-free__title {
  font-size: calc(15px * var(--fs-scale, 1));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.s-free__title em {
  color: #ff8a80;
  font-style: normal;
}

.s-free__desc {
  margin-top: 6px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 1;
}

.s-free__cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #1b2230;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* 명언 */
.s-quote {
  position: relative;
  padding: 18px 16px 16px;
  text-align: center;
}

.s-quote__mark {
  font-size: calc(24px * var(--fs-scale, 1));
  line-height: 1;
  color: #e6e9ee;
  font-weight: 700;
}

.s-quote__text {
  margin-top: 2px;
  font-size: calc(13.5px * var(--fs-scale, 1));
  line-height: 1.7;
  color: #2b3138;
  word-break: keep-all;
}

.s-quote__author {
  margin-top: 8px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: #9aa3ad;
}

.s-quote__actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.s-chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f6f8;
  color: #6b7480;
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 뉴스 */
.s-news {
  padding: 0 16px 16px;
}

.s-news__card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(120deg, #24303f, #3b4b60);
  color: #fff;
  padding: 14px;
  min-height: 92px;
}

.s-news__tag {
  display: inline-flex;
  height: 19px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 700;
}

.s-news__title {
  margin-top: 8px;
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 700;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.s-news__date {
  margin-top: 6px;
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: rgba(255, 255, 255, 0.66);
}

.s-news__wave {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 3px;
  align-items: center;
}

.s-news__wave i {
  width: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
}

/* 추천 컨텐츠 */
.s-recs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.s-rec {
  display: block;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.s-rec__thumb {
  aspect-ratio: 16 / 10;
  background: #eef2f6 center / cover no-repeat;
  position: relative;
}

.s-rec__tag {
  position: absolute;
  left: 6px;
  top: 6px;
  height: 17px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(20, 24, 30, 0.55);
  color: #fff;
  font-size: calc(9.5px * var(--fs-scale, 1));
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.s-rec__body {
  padding: 8px 9px 10px;
}

.s-rec__title {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  line-height: 1.45;
  color: #353c45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s-rec__desc {
  margin-top: 4px;
  font-size: calc(10px * var(--fs-scale, 1));
  color: #9aa3ad;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 동영상 */
.s-video {
  padding: 0 16px 16px;
}

.s-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1419;
}

.s-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.s-video__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #10151b center / cover no-repeat;
  display: grid;
  place-items: center;
}

.s-video__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.s-video__play {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.s-video__play .svg-icon {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

/* 배너 */
.s-banner {
  display: block;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 24, 30, 0.06);
  background: #fff;
}

.s-banner img {
  width: 100%;
  display: block;
}

.s-banner__empty {
  display: grid;
  place-items: center;
  aspect-ratio: 1000 / 380;
  background: var(--surface-2);
  color: var(--muted);
  font-size: calc(12px * var(--fs-scale, 1));
  border: 1px dashed var(--line-strong);
}

/* 앱테크 */
.s-apptech {
  padding: 0 16px 8px;
}

.s-apptech__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
}

.s-apptech__item + .s-apptech__item {
  border-top: 1px solid #f4f6f8;
}

.s-apptech__item img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
}

.s-apptech__body {
  flex: 1;
  min-width: 0;
}

.s-apptech__title {
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: #2b3138;
  letter-spacing: -0.02em;
}

.s-apptech__title em {
  color: var(--brand);
  font-style: normal;
}

.s-apptech__desc {
  margin-top: 2px;
  font-size: calc(11px * var(--fs-scale, 1));
  color: #9aa3ad;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 품스 콘텐츠 연동 — 보험·영업 영역 블록 */
.s-pumss {
  padding-bottom: 6px;
}

.s-pumss__list {
  padding: 0 16px 6px;
}

.s-pumss__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: inherit;
  text-decoration: none;
}

.s-pumss__item + .s-pumss__item {
  border-top: 1px solid #f4f6f8;
}

.s-pumss__num {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 7px;
  background: #f2f4f7;
  color: #6b7280;
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 800;
  display: grid;
  place-items: center;
}

.s-pumss__title {
  flex: 1;
  min-width: 0;
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: #2b3138;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.s-pumss__arrow {
  flex: none;
  color: #c3cad3;
  display: flex;
}

.s-pumss__arrow .svg-icon {
  width: 14px;
  height: 14px;
}

/* 지도 */
.s-map {
  padding: 0 16px 16px;
}

.s-map__addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fb;
  border: 1px solid #eef1f5;
}

.s-map__addr .svg-icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
  margin-top: 1px;
  flex: none;
}

.s-map__addr strong {
  display: block;
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: #2b3138;
  line-height: 1.45;
}

.s-map__addr span {
  display: block;
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: #9aa3ad;
  margin-top: 2px;
}

.s-map__canvas {
  margin-top: 8px;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f4;
  position: relative;
}

.s-map__canvas .kakao-map {
  position: absolute;
  inset: 0;
}

.s-map__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(0deg, #dde4ec 0 1px, #f2f6f9 1px 30px),
    repeating-linear-gradient(90deg, #dde4ec 0 1px, #f2f6f9 1px 30px);
}

.s-map__fallback::before,
.s-map__fallback::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
}

.s-map__fallback::before {
  left: 0;
  right: 0;
  top: 62%;
  height: 16px;
  transform: rotate(-4deg);
}

.s-map__fallback::after {
  top: 0;
  bottom: 0;
  left: 38%;
  width: 12px;
  transform: rotate(3deg);
}

.s-map__fallback .pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(255, 59, 48, 0.34);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.s-map__fallback .pin i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  transform: rotate(45deg);
}

.s-map__fallback strong {
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 700;
  color: #3d444d;
  max-width: 92%;
  word-break: keep-all;
  position: relative;
  z-index: 1;
}

.s-map__fallback span {
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: #9aa3ad;
  position: relative;
  z-index: 1;
}

.s-map__actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.s-map__actions a {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  background: #f4f6f8;
  color: #4a5058;
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.s-map__actions a .svg-icon {
  width: 13px;
  height: 13px;
}

.s-map__actions a:hover {
  background: #eaeef3;
}

/* 공유 페이지 푸터 */
.share__foot {
  text-align: center;
  padding: 14px 0 6px;
  font-size: calc(10px * var(--fs-scale, 1));
  color: #a9b2bf;
  line-height: 1.6;
}

/* 모달 안 지도 선택 */
.map-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.map-results:empty {
  display: none;
}

.map-result {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.map-result:last-child {
  border-bottom: 0;
}

.map-result:hover {
  background: var(--surface-2);
}

.map-result strong {
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 600;
}

.map-result span {
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
}

.map-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
}

.map-note .svg-icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--ink-2);
}

.editor-map-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f4;
  position: relative;
  border: 1px solid var(--line);
}

.editor-map-preview .kakao-map {
  position: absolute;
  inset: 0;
}

.fallback-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.62);
  color: #fff;
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* 비공개 잠금 */
.lock {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--surface-2);
}

.lock__card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.lock__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.lock__title {
  font-size: calc(17px * var(--fs-scale, 1));
  font-weight: 700;
}

.lock__desc {
  margin-top: 6px;
  font-size: calc(12.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.6;
}

.lock__form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   08 지도 블록 (편집)
   -------------------------------------------------------------------------- */
.map-search-row {
  display: flex;
  gap: 6px;
}

.map-search-row .input {
  min-height: 44px;
  font-size: calc(14px * var(--fs-scale, 1));
}

.map-search-row .btn {
  height: 44px;
  flex: none;
  padding: 0 14px;
  font-size: calc(13px * var(--fs-scale, 1));
}

.coord {
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   09 반응형
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body {
    font-size: calc(15px * var(--fs-scale, 1));
  }

  .shell {
    padding: 20px 24px 56px;
  }

  .tabs {
    width: calc(100% - 48px);
    max-width: 480px;
    margin: 14px auto 0;
  }

  .modal {
    align-items: center;
    padding: 32px;
  }

  .modal__panel {
    border-radius: 20px;
    max-height: 84dvh;
  }
}

@media (min-width: 1080px) {
  .editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 560px) 400px;
    gap: 36px;
    align-items: start;
    max-width: 1040px;
    padding: 24px 24px 64px;
  }

  .editor-aside {
    display: block;
    position: sticky;
    top: 84px;
  }

  .editor-aside__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: calc(11.5px * var(--fs-scale, 1));
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .editor-aside__label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
  }

  .editor-aside .device {
    width: 372px;
    border-radius: 36px;
    padding: 9px;
  }

  .editor-aside .device__screen {
    border-radius: 28px;
    height: 640px;
  }

  .editor-aside__hint {
    margin-top: 12px;
    font-size: calc(11.5px * var(--fs-scale, 1));
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
  }

  .appbar {
    justify-content: center;
    position: relative;
  }

  .appbar__icon:first-of-type {
    position: absolute;
    left: 16px;
  }

  .appbar__icon:last-of-type {
    position: absolute;
    right: 16px;
  }
}

@media (max-width: 379px) {
  .profile-modes {
    grid-template-columns: repeat(2, 1fr);
  }

  .sns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .img-slots {
    gap: 10px;
  }

  .islot--avatar {
    width: 76px;
    height: 76px;
  }
}

/* --------------------------------------------------------------------------
   10 이미지 크롭 모달 · 품 주소 실시간 검사 · 운영 관리자 백엔드
   -------------------------------------------------------------------------- */

/* 10-1 품 주소 상태 배지 */
.slug-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.slug-check__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.slug-check[data-state='ok'] {
  background: #effaf4;
  border-color: #c3ecd6;
  color: #0b6b45;
}

.slug-check[data-state='ok'] .slug-check__dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
}

.slug-check[data-state='taken'],
.slug-check[data-state='reserved'] {
  background: var(--brand-soft);
  border-color: #ffd4d0;
  color: var(--brand-strong);
}

.slug-check[data-state='taken'] .slug-check__dot,
.slug-check[data-state='reserved'] .slug-check__dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.14);
}

.slug-check[data-state='invalid'] {
  background: #fff8e8;
  border-color: #ffe4b0;
  color: #966200;
}

.slug-check[data-state='invalid'] .slug-check__dot {
  background: #e8a200;
}

.input-prefix.is-blocked .input {
  border-color: #ffc9c4;
  background: #fff8f7;
}

/* 10-2 크롭 모달 */
.crop {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crop__stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: var(--crop-ratio, 1.7778);
  border-radius: 16px;
  overflow: hidden;
  background: #eef1f5;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.crop__stage:active {
  cursor: grabbing;
}

.crop__img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.crop__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(15, 20, 25, 0.22);
}

.crop__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.crop--profile .crop__frame {
  inset: 6%;
  border: 2px dashed rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}

.crop__frame span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  filter: drop-shadow(0 1px 2px rgba(15, 20, 25, 0.35));
}

.crop__frame span:nth-child(1) {
  left: 8px;
  top: 8px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 5px 0 0 0;
}

.crop__frame span:nth-child(2) {
  right: 8px;
  top: 8px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 5px 0 0;
}

.crop__frame span:nth-child(3) {
  left: 8px;
  bottom: 8px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 5px;
}

.crop__frame span:nth-child(4) {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 5px 0;
}

.crop--profile .crop__frame span {
  display: none;
}

.crop__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
}

.crop__zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.crop__zoom-label {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--muted);
  flex: none;
}

.crop__zoom input[type='range'] {
  flex: 1;
  min-width: 0;
  accent-color: var(--brand);
  height: 22px;
}

.crop__zoom-val {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--ink-2);
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.crop__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
  font-weight: 600;
}

.crop__guide {
  color: var(--ink-2);
}

.crop__hint {
  margin: 0;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

/* 10-3 관리자 진입 버튼 */
.admin-entry {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px 0;
}

.auth__admin {
  margin-top: 14px;
  text-align: center;
}

.linkbtn--muted {
  color: var(--muted);
  font-size: calc(12px * var(--fs-scale, 1));
}

/* 10-4 공유 페이지 공지 바 */
.share__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.45;
}

.share__notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.14);
}

.blk__tag--off {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.lock__icon--stop {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.lock__meta {
  margin-top: 10px;
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--muted);
  font-weight: 600;
}

/* 10-5 운영 관리자 백엔드 */
.admin {
  min-height: 100dvh;
  background: #f6f7f9;
  color: var(--ink);
}

.admin__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.admin__logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.admin__brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin__brandtext small {
  font-size: calc(10px * var(--fs-scale, 1));
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.admin__tag {
  font-size: calc(9.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.admin__actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.admin__layout {
  display: flex;
  flex-direction: column;
}

.admin__nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.admin__nav::-webkit-scrollbar {
  display: none;
}

.admin__navbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  background: var(--surface-2);
  flex: none;
}

.admin__navbtn .svg-icon {
  width: 15px;
  height: 15px;
}

.admin__navbtn.is-active {
  background: var(--ink);
  color: #fff;
}

.admin__main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 14px 56px;
}

.adm-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adm-title {
  margin: 0;
  font-size: calc(19px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.03em;
}

.adm-title-sm {
  font-size: calc(14px * var(--fs-scale, 1));
}

.adm-desc {
  margin: 5px 0 0;
  font-size: calc(12.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.55;
  max-width: 660px;
}

.adm-updated {
  margin-left: auto;
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.adm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.adm-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}

.adm-stat__label {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
}

.adm-stat__value {
  font-size: calc(21px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.adm-stat__sub {
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
}

.adm-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.adm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.adm-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.adm-card__head h2 {
  flex: 1;
  margin: 0;
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
}

.adm-card__body {
  padding: 14px 16px;
}

.adm-count {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
}

.adm-meter {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--muted);
}

.adm-meter strong {
  color: var(--ink);
}

.adm-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-bottom: 12px;
}

.adm-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ok);
}

.adm-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: calc(12px * var(--fs-scale, 1));
}

.adm-kv li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.adm-kv b {
  color: var(--ink-2);
  font-weight: 600;
  text-align: right;
}

.adm-on {
  color: var(--ok);
  font-style: normal;
  font-weight: 700;
}

.adm-off {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.adm-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.adm-log li {
  display: flex;
  gap: 8px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1.45;
  align-items: baseline;
}

.adm-log__time {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.adm-log__text {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  font-weight: 600;
}

.adm-log__who {
  color: var(--muted);
  flex: none;
}

.adm-log--full li {
  flex-wrap: wrap;
}

.adm-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(12.5px * var(--fs-scale, 1));
}

.adm-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.adm-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.adm-table tr:last-child td {
  border-bottom: 0;
}

.adm-muted {
  color: var(--muted);
}

.adm-right {
  text-align: right;
}

.adm-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 700;
  white-space: nowrap;
}

.adm-pill--ok {
  background: #e9f9f0;
  color: #0b7a4b;
}

.adm-pill--stop {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.adm-pill--wait {
  background: #fff7e8;
  color: #a86a00;
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.adm-btn:hover {
  background: var(--surface-2);
}

.adm-btn--sm {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: calc(11.5px * var(--fs-scale, 1));
}

.adm-btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.adm-btn--primary:hover {
  background: #000;
}

.adm-btn--ghost {
  background: var(--surface-2);
}

.adm-btn--danger {
  background: #fff;
  border-color: #ffd0cc;
  color: var(--brand-strong);
}

.adm-btn--ok {
  background: #f4fdf8;
  border-color: #c8efd9;
  color: #0b7a4b;
}

.adm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.adm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
}

.adm-chip button {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: calc(12px * var(--fs-scale, 1));
  line-height: 1;
  display: grid;
  place-items: center;
}

.adm-chip button:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.adm-inline {
  display: flex;
  gap: 8px;
}

.adm-inline .input {
  flex: 1;
  min-width: 0;
}

.adm-hint {
  margin: 10px 0 0;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.55;
}

.adm-row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.adm-grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.adm-card__body .field__label {
  display: block;
  margin: 12px 0 6px;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
}

.adm-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
}

.adm-sync b {
  color: var(--ink-2);
}

.adm-prow-list {
  padding-top: 4px;
  padding-bottom: 18px;
}

.adm-prow {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.adm-prow:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.adm-prow__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-prow__name {
  flex: 1;
  min-width: 0;
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 700;
}

.adm-prow__ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.adm-prow__state {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-3);
}

.adm-prow__state.is-on {
  color: #0b7a4b;
  background: #e9f9f0;
}

.adm-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.adm-approw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

.adm-approw__label {
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-itemrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

.adm-itemrow__num {
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 800;
  display: grid;
  place-items: center;
}

.adm-itemrow__label {
  flex: 1;
  min-width: 0;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  line-height: 1.35;
}

.adm-approw .input {
  grid-column: 1 / -1;
}

.adm-input--sm {
  padding: 7px 9px;
  font-size: calc(12px * var(--fs-scale, 1));
}

.adm-preview {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
}

.adm-preview__notice {
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: #fff;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.45;
}

.adm-preview__free {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: #161b22;
  color: #fff;
}

.adm-preview__eyebrow {
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff8a80;
}

.adm-preview__title {
  font-size: calc(17px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.adm-preview__desc {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: #c7d2e1;
  line-height: 1.5;
}

.adm-preview__cta {
  margin-top: 4px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #161b22;
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 700;
}

@media (min-width: 640px) {
  .adm-grid2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  .adm-approw {
    grid-template-columns: 170px auto minmax(0, 1fr) minmax(0, 1fr);
  }

  .adm-approw .input {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .adm-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .adm-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin__layout {
    flex-direction: row;
    align-items: stretch;
  }

  .admin__nav {
    flex-direction: column;
    align-items: stretch;
    width: 224px;
    flex: none;
    padding: 16px 12px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow: visible;
    position: sticky;
    top: 49px;
    align-self: flex-start;
    min-height: calc(100dvh - 49px);
  }

  .admin__navbtn {
    border-radius: 10px;
    padding: 10px 12px;
    white-space: normal;
    text-align: left;
  }

  .admin__main {
    padding: 24px 24px 64px;
  }

  .adm-title {
    font-size: calc(21px * var(--fs-scale, 1));
  }
}

/* ==========================================================================
   2026-11-26 요청사항 반영 — 추가/수정 스타일
   ========================================================================== */

/* ---------- 상단 공지 (소유자 작성 · 마퀴 · 클릭 무시) ---------- */
.share__owner-notice {
  position: relative;
  overflow: hidden;
  background: #16191d;
  color: #fff;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.share__owner-notice__track {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 8px 14px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.share__owner-notice.is-marquee .share__owner-notice__track {
  justify-content: flex-start;
  animation: pum-marquee 14s linear infinite;
}

.share__owner-notice.is-marquee .share__owner-notice__track span {
  padding-right: 48px;
}

@keyframes pum-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share__owner-notice.is-marquee .share__owner-notice__track {
    animation: none;
  }
}

.notice-preview {
  margin-top: 6px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 1;
}

.notice-preview.is-off {
  opacity: 0.35;
}

.field__count {
  margin-left: auto;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
}

.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.textarea--auto {
  resize: none;
  overflow: hidden;
  line-height: 1.6;
}

/* ---------- 관리자 공지 배너 (닫기) ---------- */
.share__notice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 10px 40px 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--share-line, #e7e9ee);
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1.5;
  color: var(--share-muted, #6b7280);
  box-shadow: 0 1px 2px rgba(20, 24, 30, 0.04);
}

.share__notice-text {
  flex: 1;
  min-width: 0;
}

.share__notice-close {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--share-muted, #6b7280);
}

.share__notice-close .svg-icon {
  width: 14px;
  height: 14px;
}

.share__notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

/* ---------- 배너 그리드 (대·중·소) ---------- */
.s-banner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.s-banner {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f4f7;
  box-shadow: 0 1px 3px rgba(20, 24, 30, 0.06);
}

.s-banner--large {
  grid-column: span 6;
}

.s-banner--medium,
.s-banner--medium2 {
  grid-column: span 3;
}

.s-banner--small {
  grid-column: span 2;
}

.s-banner__media {
  display: block;
  width: 100%;
  overflow: hidden;
}

.s-banner--large .s-banner__media {
  aspect-ratio: 16 / 9;
}

.s-banner--medium .s-banner__media,
.s-banner--small .s-banner__media {
  aspect-ratio: 1 / 1;
}

.s-banner--medium2 .s-banner__media {
  aspect-ratio: 1 / 2;
}

.s-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s-banner__cap {
  display: block;
  padding: 6px 8px 7px;
  font-size: calc(10.5px * var(--fs-scale, 1));
  line-height: 1.4;
  color: var(--share-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
}

.banner-slot {
  aspect-ratio: 16 / 9;
}

.banner-slot--medium,
.banner-slot--small {
  aspect-ratio: 1 / 1;
}

.banner-slot--medium2 {
  aspect-ratio: 1 / 2;
}

/* ---------- 배너 다중 슬롯 편집 ---------- */
.banner-slots {
  display: grid;
  gap: 10px;
}

.banner-slots--1 {
  grid-template-columns: minmax(0, 1fr);
}

.banner-slots--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.banner-slots--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.banner-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.banner-card--single {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 14px;
}

.banner-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: var(--muted);
}

.banner-card__head b {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.banner-card .field {
  gap: 5px;
}

.banner-card:not(.banner-card--single) .field__label {
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--muted);
}

.banner-card:not(.banner-card--single) .input {
  min-height: 38px;
  padding: 8px 9px;
  font-size: calc(12px * var(--fs-scale, 1));
  border-radius: 10px;
}

.banner-card .img-actions {
  margin-top: 0;
  gap: 5px;
}

.banner-card--single .img-actions {
  margin-top: 8px;
  gap: 6px;
}

.banner-card:not(.banner-card--single) .btn--xs {
  height: 28px;
  padding: 0 7px;
  font-size: calc(10.5px * var(--fs-scale, 1));
}

.banner-card .btn--xs .svg-icon {
  width: 13px;
  height: 13px;
}

.banner-card .islot {
  border-radius: 11px;
}

.banner-card--single .islot {
  border-radius: 14px;
}

.banner-card:not(.banner-card--single) .islot__empty {
  font-size: calc(10px * var(--fs-scale, 1));
  gap: 3px;
}

.banner-card:not(.banner-card--single) .islot__empty .svg-icon {
  width: 16px;
  height: 16px;
}

.banner-card:not(.banner-card--single) .islot__tool {
  width: 22px;
  height: 22px;
}

@media (max-width: 379px) {
  .banner-slots {
    gap: 8px;
  }

  .banner-card {
    padding: 8px;
    gap: 8px;
  }

  .banner-card .btn--xs {
    padding: 0 5px;
    font-size: calc(10px * var(--fs-scale, 1));
  }
}

/* ---------- 배너 사이즈 선택 ---------- */
.size-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.size-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: left;
}

.size-btn b {
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.size-btn em {
  font-style: normal;
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: var(--muted);
}

.size-btn.is-active {
  border-color: var(--dark);
  background: var(--surface-2);
}

.size-btn__box {
  flex: none;
  display: block;
  background: #dfe5ec;
  border-radius: 3px;
}

.size-btn__box--large {
  width: 26px;
  height: 15px;
}

.size-btn__box--medium {
  width: 15px;
  height: 15px;
}

.size-btn__box--medium2 {
  width: 12px;
  height: 20px;
}

.size-btn__box--small {
  width: 11px;
  height: 11px;
}

.size-btn.is-active .size-btn__box {
  background: var(--dark);
}

/* ---------- 배경 테마 색 5종 ---------- */
.theme-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.theme-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  height: auto;
  overflow: visible;
}

.theme-btn__chip {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.theme-btn__chip i {
  display: block;
  width: 55%;
  height: 4px;
  border-radius: 2px;
}

.theme-btn__name {
  font-size: calc(9.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-2);
  white-space: nowrap;
}

.theme-btn.is-active {
  border-color: var(--dark);
  padding: 2px;
}

.theme-btn.is-active::after {
  top: -4px;
  right: -4px;
}

/* ---------- 비밀번호 강도 ---------- */
.pw-meter {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.pw-meter i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.16s ease;
}

.pw-meter[data-level='1'] i:nth-child(1) {
  background: #f04438;
}

.pw-meter[data-level='2'] i:nth-child(-n + 2) {
  background: #f79009;
}

.pw-meter[data-level='3'] i:nth-child(-n + 3) {
  background: #12b76a;
}

.pw-meter__label {
  flex: none;
  margin-left: 6px;
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--muted);
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 휴대전화 인증 ---------- */
.phone-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 6px;
}

.phone-row .select {
  min-height: 48px;
  padding: 0 8px;
  font-size: calc(13px * var(--fs-scale, 1));
}

.phone-verify {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.phone-code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.phone-code .input {
  letter-spacing: 0.24em;
  font-weight: 700;
}

/* ---------- 로그인 잠금 안내 ---------- */
.auth__notice {
  margin: 2px 0 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff1f0;
  border: 1px solid #ffd2cd;
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1.55;
  color: #b3261e;
}

.auth__notice b {
  display: block;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 800;
}

.auth__links--error {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.auth__links-label {
  width: 100%;
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
}

.check-row--compact {
  padding: 2px 0 12px;
  font-size: calc(12px * var(--fs-scale, 1));
}

.linkbtn--inline {
  display: inline;
  margin-left: 4px;
  padding: 0;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  font-size: calc(11px * var(--fs-scale, 1));
  line-height: 1.55;
  color: var(--muted);
  word-break: break-all;
}

/* ---------- 캡차 ---------- */
.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.captcha span {
  flex: 1;
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.captcha .input {
  width: 74px;
  min-height: 40px;
  text-align: center;
  font-weight: 700;
}

/* ---------- 크롭 모달 ---------- */
.crop {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crop__stage {
  position: relative;
  width: 100%;
  max-height: 46vh;
  margin: 0 auto;
  background: #f7f8fa;
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 30, 0.08);
}

.crop--banner-medium2 .crop__stage {
  max-width: 23vh;
}

.crop__stage.is-dragging {
  cursor: grabbing;
}

.crop--profile .crop__stage,
.crop--banner-medium .crop__stage,
.crop--banner-small .crop__stage {
  max-width: min(100%, 42vh);
}

.crop__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.crop__guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.crop__guide-circle {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 9999px rgba(10, 12, 16, 0.28) inset;
}

.crop__guide-safe {
  position: absolute;
  inset: 7%;
  border: 1.5px dashed rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.crop__guide-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(10, 12, 16, 0.56);
  color: #fff;
  font-size: calc(9.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.01em;
}

.crop__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f7f8fa;
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--muted);
  z-index: 3;
}

.crop__ctl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crop__ctl-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crop__ctl-row--misc {
  flex-wrap: wrap;
  gap: 10px;
}

.crop__ctl-label {
  flex: none;
  width: 58px;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--ink-2);
}

.crop__ctl-row input[type='range'] {
  flex: 1;
  min-width: 0;
  accent-color: var(--dark);
}

.crop__step {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--ink-2);
  display: grid;
  place-items: center;
}

.crop__step:active {
  background: var(--surface-2);
}

.crop__edge {
  flex: none;
  font-size: calc(9.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--muted);
}

.crop__val {
  flex: none;
  width: 46px;
  text-align: right;
  font-size: calc(11px * var(--fs-scale, 1));
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.crop__size {
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: var(--muted);
}

.crop__hint {
  font-size: calc(11px * var(--fs-scale, 1));
  line-height: 1.6;
  color: var(--muted);
}

.crop__hint b {
  color: var(--ink-2);
}

/* ---------- 미리보기(기기 프레임 없음) ---------- */
.preview-frame {
  width: 390px;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 24, 30, 0.14);
}

.preview-frame--pc {
  width: 1280px;
  max-width: none;
  border-radius: 10px;
}

.preview-frame__screen {
  width: 100%;
  min-height: 520px;
}

.preview-frame--pc .preview-frame__screen {
  min-height: 640px;
}

.mini-phone {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 24, 30, 0.12);
  margin: 0 auto;
}

.mini-phone__screen {
  width: 100%;
  min-height: 360px;
}

/* ---------- QR ---------- */
.qr-card {
  margin: 14px 16px 0;
}

.qr-card__body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qr-card__canvas {
  flex: none;
  width: 132px;
  height: 132px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
}

.qr-card__canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.qr-card__actions {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-modal {
  display: grid;
  place-items: center;
  padding: 8px 0 4px;
}

.qr-modal canvas {
  width: 228px;
  height: 228px;
  image-rendering: pixelated;
}

/* ---------- 관리자: 검색 · 유입 경로 · 공지 목록 ---------- */
.adm-search {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.adm-search .input {
  min-height: 36px;
  width: 220px;
  font-size: calc(12px * var(--fs-scale, 1));
}

.adm-sources {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.adm-source {
  display: grid;
  grid-template-columns: 74px 1fr 52px;
  align-items: center;
  gap: 8px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--ink-2);
}

.adm-source b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.adm-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: calc(12.5px * var(--fs-scale, 1));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.adm-subtitle {
  margin: 14px 0 6px;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 800;
  color: var(--ink);
}

.adm-title-sm {
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 800;
}

.adm-tag--user {
  background: #eef4ff;
  color: #2f5fd0;
}

.adm-preview__img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.adm-preview__img img {
  display: block;
  width: 100%;
  height: auto;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.notice-item__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-item__top b {
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 800;
}

.notice-item__time {
  margin-left: auto;
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: var(--muted);
}

.notice-item__body {
  margin-top: 6px;
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1.6;
  color: var(--ink-2);
  white-space: pre-line;
}

.notice-item__sched {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff2de;
  color: #8a4b00;
  font-size: calc(10px * var(--fs-scale, 1));
  font-weight: 700;
}

/* ---------- 안내 페이지 ---------- */
.lock__code {
  font-size: calc(44px * var(--fs-scale, 1));
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--line-strong);
  line-height: 1;
  margin-bottom: 8px;
}

.lock__card--404 .lock__title {
  font-size: calc(17px * var(--fs-scale, 1));
}

.map-note--warn {
  background: #fff7ed;
  border-color: #fbd9ae;
  color: #8a4b00;
}

.map-note--warn .svg-icon {
  color: #c07a1a;
}

/* ---------- 모바일 ---------- */
@media (max-width: 560px) {
  .qr-card {
    margin: 12px 12px 0;
  }

  .size-row {
    grid-template-columns: 1fr 1fr;
  }

  .crop__ctl-label {
    width: 50px;
    font-size: calc(10.5px * var(--fs-scale, 1));
  }

  .crop__ctl-row {
    gap: 4px;
  }

  .crop__step {
    width: 27px;
    height: 27px;
    font-size: calc(10px * var(--fs-scale, 1));
  }

  .crop__val {
    width: 40px;
    font-size: calc(10.5px * var(--fs-scale, 1));
  }

  .theme-btn__name {
    font-size: calc(8.5px * var(--fs-scale, 1));
  }

  .preview-frame {
    width: 100%;
  }

  .adm-search .input {
    width: 150px;
  }
}

/* ---------- 기존 테마 버튼 규칙 덮어쓰기 (색상 칩형) ---------- */
.theme-btn > .theme-btn__name {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0;
  background: none;
  color: var(--ink-2);
  font-size: calc(9.5px * var(--fs-scale, 1));
  font-weight: 700;
}

.theme-btn .theme-btn__chip {
  position: static;
  display: flex;
}

.theme-btn.is-active > .theme-btn__name {
  color: var(--ink);
}

/* 배경+프로필·배경 모드에서는 사진 위 텍스트가 없으므로 스크림 제거 */
.hero--bgprofile .hero__scrim,
.hero--bg .hero__scrim {
  display: none;
}


/* hidden 속성이 display 규칙에 덮이지 않도록 */
[hidden] {
  display: none !important;
}

/* ==========================================================================
   10 글씨 크기 · 모바일 접근성 · 헤더 정리 · 테마 전체 배경 (2026-11-26)
   ========================================================================== */
:root {
  --fs-scale: 1;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.appbar__right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.appbar__title--empty {
  min-width: 8px;
}

/* ---- 헤더 글씨 크기 토글 (가− / 가+) ---- */
.fs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 11px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  flex: none;
}

.fs-toggle__btn {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.fs-toggle__btn .fs-toggle__a {
  font-size: calc(13px * var(--fs-scale, 1));
}

.fs-toggle__btn .fs-toggle__sign {
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1;
}

.fs-toggle__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 20, 25, 0.16);
}

.fs-toggle__btn:hover {
  color: var(--ink);
}

@media (pointer: coarse) {
  .appbar__icon {
    width: 44px;
    height: 44px;
  }

  .switch::before {
    content: '';
    position: absolute;
    inset: -9px -8px;
  }

  .share__quick button::after,
  .share__share::after {
    content: '';
    position: absolute;
    inset: -9px -5px;
  }

  .adm-btn {
    min-height: 40px;
  }

  .adm-btn--sm {
    min-height: 36px;
  }

  .adm-collapse,
  .adm-btn--icon {
    min-width: 38px;
    min-height: 38px;
  }

  .fs-toggle__btn {
    height: 38px;
  }
}

.share__share,
.share__quick button {
  position: relative;
}

/* ---- 모바일에서 좁은 카드가 깨지지 않도록 ---- */
@media (max-width: 560px) {
  .banner-slots--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin__bar {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .admin__brandtext small {
    display: none;
  }

  .admin__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin__main {
    padding: 14px 12px 48px;
  }

  .adm-card__head {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .adm-pumss-tools {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .adm-head {
    margin-bottom: 12px;
  }
}

@media (max-width: 360px) {
  .banner-slots--3,
  .banner-slots--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .share__inner {
    padding: 10px 8px 0;
  }
}

/* 긴 문구가 카드 밖으로 넘치지 않도록 */
.s-pumss__title,
.s-apptech__title,
.s-link__label,
.s-head h3,
.adm-itemrow__label,
.adm-group__title b {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* --------------------------------------------------------------------------
   배경 테마 색상 — 미리보기 · 공유 페이지 · 실시간 미리보기 전체 배경까지
   -------------------------------------------------------------------------- */
.share {
  --share-base: #f1f3f4;
  --share-surface: #ffffff;
  --share-surface-2: #f7f9fb;
  --share-ink: #16191d;
  --share-fg: #16191d;
  --share-muted: #6b7480;
  --share-line: #e7e9ee;
  --share-chip: #f4f6f9;
  background: var(--share-base);
  color: var(--share-fg);
}

.share-page {
  background: var(--share-base, #f1f3f4);
}

.share .s-card,
.share .s-banner,
.share .s-rec {
  background: var(--share-surface);
  color: var(--share-ink);
}

.share .s-banner {
  box-shadow: 0 1px 3px rgba(20, 24, 30, 0.08);
}

.share .s-head h3,
.share .s-link__label,
.share .greet__now,
.share .s-quote__text,
.share .s-rec__title,
.share .s-apptech__title,
.share .s-pumss__title,
.share .s-map__addr strong,
.share .s-map__fallback strong {
  color: var(--share-ink);
}

.share .s-head__more,
.share .s-link__url,
.share .s-quote__author,
.share .s-rec__desc,
.share .s-apptech__desc,
.share .greet__meta,
.share .greet__title,
.share .greet__was,
.share .s-map__addr span,
.share .s-map__fallback span,
.share .share__brand,
.share .share__brand strong {
  color: var(--share-muted);
}

.share .s-quote__mark {
  color: var(--share-line);
}

.share .s-chip,
.share .s-link__arrow,
.share .s-pumss__num,
.share .s-map__actions a {
  background: var(--share-chip);
  color: var(--share-ink);
}

.share .s-map__actions a {
  color: var(--share-fg);
  opacity: 0.86;
}

.share .s-link__arrow,
.share .s-pumss__arrow {
  color: var(--share-muted);
}

.share .s-pumss__item + .s-pumss__item,
.share .s-apptech__item + .s-apptech__item {
  border-top-color: var(--share-line);
}

.share .s-map__addr {
  background: var(--share-surface-2);
  border-color: var(--share-line);
}

.share .s-rec {
  border-color: var(--share-line);
}

.share .greet__img {
  background-color: var(--share-surface-2);
  border-color: var(--share-line);
}

.share .share__share,
.share .share__quick button {
  background: var(--share-surface);
  color: var(--share-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.share .share__notice {
  background: var(--share-surface);
  color: var(--share-ink);
  border-color: var(--share-line);
}

.share[data-scheme='dark'] .s-card,
.share[data-scheme='dark'] .s-banner,
.share[data-scheme='dark'] .s-rec {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.share[data-scheme='dark'] .s-free,
.share[data-scheme='dark'] .s-news__card {
  box-shadow: none;
}

.share[data-scheme='dark'] .s-map__canvas,
.share[data-scheme='dark'] .s-rec__thumb {
  background-color: #1b2027;
}

.share[data-scheme='dark'] .share__owner-notice {
  background: rgba(255, 255, 255, 0.08);
  color: var(--share-fg);
}

/* --------------------------------------------------------------------------
   운영 관리자 — 품스 콘텐츠 연동 묶음 (접기 · 추가 영역)
   -------------------------------------------------------------------------- */
.adm-card__head--wrap {
  flex-wrap: wrap;
  row-gap: 8px;
}

.adm-pumss-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.adm-pumss-updated {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  white-space: nowrap;
}

.adm-pumss-updated b {
  color: var(--ink-2);
}

.adm-collapse {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}

.adm-collapse .svg-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.adm-collapse.is-collapsed .svg-icon {
  transform: rotate(-90deg);
}

.adm-prow-list.is-collapsed,
.adm-group__body.is-collapsed {
  display: none;
}

.adm-group {
  margin-top: 12px;
  overflow: hidden;
}

.adm-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
}

.adm-group__title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-group__title b {
  font-size: calc(14px * var(--fs-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.adm-group__title .adm-muted {
  font-size: calc(11.5px * var(--fs-scale, 1));
}

.adm-group__ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.adm-group__body {
  border-top: 1px solid var(--line);
}

.adm-group__bodyin {
  padding: 6px 16px 18px;
}

.adm-itemwrap + .adm-itemwrap {
  margin-top: 6px;
}

.adm-itemrow--edit {
  cursor: pointer;
}

.adm-itemrow--edit:hover,
.adm-itemrow--edit.is-open {
  background: var(--surface-3);
}

.adm-itemrow--edit .adm-itemrow__label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.adm-itemrow__label small {
  font-size: calc(10.5px * var(--fs-scale, 1));
  font-weight: 500;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-itemrow__label small.is-empty {
  color: #b9c0ca;
}

.adm-itemrow__pen {
  flex: none;
  display: flex;
  color: var(--muted);
}

.adm-itemrow__pen .svg-icon {
  width: 14px;
  height: 14px;
}

.adm-itemedit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.adm-itemedit .field__label {
  display: block;
  margin-bottom: 4px;
}

.adm-itemedit__actions {
  margin-top: 2px;
}

.adm-cglist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.adm-cgrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

.adm-cgrow__fields {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

@media (min-width: 720px) {
  .adm-cgrow__fields {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  }
}

.adm-btn--icon {
  width: 34px;
  padding: 0;
}

.adm-empty .adm-card__body {
  padding: 16px;
}

/* 운영자 연동 영역 (편집기 안내 카드) */
.operator-group {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.operator-group + .operator-group {
  margin-top: 8px;
}

.operator-group.is-off {
  opacity: 0.55;
}

.operator-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operator-group__head b {
  flex: 1;
  min-width: 0;
  font-size: calc(13px * var(--fs-scale, 1));
  font-weight: 700;
  overflow-wrap: anywhere;
}

.operator-group__list {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--ink-2);
  line-height: 1.6;
}

.operator-group__list li span {
  display: block;
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   11 사이트 푸터 · 약관 · 홈 화면 추가 · 공유 페이지 신고 (site.js)
   -------------------------------------------------------------------------- */
.site-foot-slot {
  margin-top: auto;
}

.site-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: calc(11.5px * var(--fs-scale, 1));
  line-height: 1.6;
}

.site-foot__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.site-foot__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 800;
}

.site-foot__word {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}

.site-foot__line {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 10px;
}

.site-foot__link {
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.site-foot__link:hover {
  color: var(--ink);
}

.site-foot__dot {
  color: var(--line-strong);
}

.site-foot__copy {
  margin: 8px 0 0;
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: #a9b2bf;
}

/* 로그인한 품 회원 전용 — 품스(PUMSS) 바로가기 */
.site-foot__pumss {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-foot__pumss:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.site-foot__pumss-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: block;
}

.site-foot__pumss-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-foot__pumss-body b {
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-foot__pumss-body em {
  font-style: normal;
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-foot__pumss-arrow {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--brand);
}

.site-foot__pumss-arrow .svg-icon {
  width: 17px;
  height: 17px;
}

/* 공유 페이지 — 방문객 화면을 가리지 않는 컴팩트 푸터 */
.site-foot--compact {
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  align-items: center;
  gap: 2px;
  font-size: calc(10.5px * var(--fs-scale, 1));
  line-height: 1.55;
  background: #fff;
}

.site-foot--compact .site-foot__links {
  margin-top: 6px;
  justify-content: center;
}

.site-foot--compact .site-foot__link {
  font-size: calc(10.5px * var(--fs-scale, 1));
}

/* 공유 페이지 신고하기 (푸터 위) */
.share-report {
  padding: 20px 16px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.share-report__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: calc(12px * var(--fs-scale, 1));
  font-weight: 600;
}

.share-report__btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.share-report__btn .svg-icon {
  width: 15px;
  height: 15px;
}

.share-report__hint {
  margin: 0;
  font-size: calc(10.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.5;
}

/* 신고 모달 */
.report-target {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: calc(12.5px * var(--fs-scale, 1));
}

.report-target span {
  color: var(--muted);
}

.report-target b {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.map-note + .field,
.map-note + .report-target {
  margin-top: 12px;
}

/* 홈 화면에 추가 배너 */
.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 20, 25, 0.16);
  animation: installUp 0.26s ease;
}

@keyframes installUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.install-banner__icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: calc(15px * var(--fs-scale, 1));
}

.install-banner__icon--img {
  background: none;
  object-fit: contain;
  border-radius: 11px;
}

/* 설정 카드 · 안내 모달의 공식 아이콘 미리보기 */
.install-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.install-app__icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 15px;
  display: block;
}

.install-app__icon--lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.install-app__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-app__body b {
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.install-app__body em {
  font-style: normal;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
}

/* 초대 링크·초대 안내 */
.invite-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid #ffd9d6;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.invite-note .svg-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.invite-note div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.invite-note b {
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 700;
}

.invite-note span {
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--ink-2);
}

.invite-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-link .input {
  flex: 1;
  min-width: 0;
  font-size: calc(12px * var(--fs-scale, 1));
  color: var(--muted);
}

.install-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-banner__text b {
  font-size: calc(12.5px * var(--fs-scale, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
}

.install-banner__text span {
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-banner__close {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-3);
}

.install-banner__close .svg-icon {
  width: 14px;
  height: 14px;
}

body.has-install-banner .app {
  padding-bottom: 74px;
}

.install-guide {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ig;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-guide li {
  counter-increment: ig;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: calc(13px * var(--fs-scale, 1));
  line-height: 1.6;
  color: var(--ink-2);
}

.install-guide li::before {
  content: counter(ig);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* 회원가입 약관 동의 */
.consent {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 4px 14px;
}

.consent__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.consent__row + .consent__row {
  border-top: 1px solid var(--line);
}

.consent__row--all {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.consent__row--all span {
  font-size: calc(13.5px * var(--fs-scale, 1));
}

.consent__group .consent__row:first-child {
  border-top: 0;
}

.consent__row label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: calc(12.5px * var(--fs-scale, 1));
  line-height: 1.45;
  color: var(--ink-2);
}

.consent__row em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
}

.consent__row em.is-optional {
  color: var(--muted);
}

.consent__row input[type='checkbox'] {
  appearance: none;
  width: 19px;
  height: 19px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
}

.consent__row input[type='checkbox']:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.consent__row input[type='checkbox']:checked::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.consent__view {
  flex: none;
  font-size: calc(11.5px * var(--fs-scale, 1));
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 2px 4px;
}

.consent__view:hover {
  color: var(--ink);
}

/* 약관 전용 페이지 */
.policy-page {
  max-width: 760px;
  padding-bottom: 28px;
}

.policy-head {
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
}

.policy-head h1 {
  font-size: calc(21px * var(--fs-scale, 1));
  font-weight: 800;
  letter-spacing: -0.03em;
}

.policy-head p {
  margin: 6px 0 0;
  font-size: calc(11.5px * var(--fs-scale, 1));
  color: var(--muted);
  line-height: 1.6;
}

.policy-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: calc(12.5px * var(--fs-scale, 1));
  line-height: 1.78;
  color: var(--ink-2);
}

.policy-sec h2 {
  font-size: calc(13.5px * var(--fs-scale, 1));
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.policy-sec p {
  margin: 0 0 6px;
}

.policy-list {
  margin: 4px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-list li {
  list-style: disc;
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* 약관 모달 */
.modal--policy .modal__body {
  max-height: 58dvh;
}

.policy-modal__body {
  padding-top: 4px;
}

.policy-modal__date {
  margin: 10px 0 0;
  font-size: calc(11px * var(--fs-scale, 1));
  color: var(--muted);
}

/* 운영 관리자 — 공유 페이지 신고 목록 */
.adm-table td.adm-detail {
  white-space: normal;
  min-width: 200px;
  max-width: 320px;
  color: var(--ink-2);
  line-height: 1.5;
}

.policy-modal__more {
  margin: 8px 0 0;
  text-align: right;
}
