body .profile-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px;flex-wrap:nowrap!important;padding:14px 0 10px!important;width:100%;max-width:440px;margin:0 auto;box-sizing:border-box}
.profile-header-center{flex:1 1 auto;display:flex;align-items:center;justify-content:center;text-align:center}
.profile-header-center .anniversary-badge-wrap,.profile-header-center .profile-anniversary-badge{margin:0 auto}
.q-home-link{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;text-decoration:none;color:#eeede9;font-size:14px;font-weight:600;flex:0 0 36px}
.q-home-link[hidden]{display:none!important}
.q-home-link .q-account-symbol{width:29px;height:29px;flex:none;color:#e5c158}
.q-account-symbol path{fill:none;stroke:currentColor;stroke-width:5.2;stroke-linecap:round;stroke-linejoin:round}
.q-account-symbol .q-power-dot-gap{fill:#0c0c0e;stroke:none}
.q-account-symbol .q-power-dot{fill:#ff681f;stroke:none}
.profile-owner-nav{display:flex;gap:4px}
/* 상단 우측 '...' 더보기 버튼 및 인라인 메뉴 행 */
.profile-header .profile-owner-trigger-row{display:inline-flex;align-items:center;justify-content:flex-end;width:36px;height:36px;min-height:36px;margin:0;padding:0;position:static;flex:0 0 36px}
.profile-owner-trigger-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
  margin: 0 0 6px;
  padding: 0 4px;
  position: relative
}

.profile-owner-trigger-row[hidden] {
  display: none !important
}

.profile-owner-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e5c158;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease
}

.profile-owner-more-btn:hover {
  color: #fff;
  transform: scale(1.15)
}

.profile-owner-more-btn svg {
  width: 22px;
  height: 22px
}

.profile-owner-more-btn[hidden] {
  display: none !important
}

/* 같은 줄에 펼쳐지는 인라인 5가지 메뉴 바 */
.profile-owner-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: nowrap;
  max-width: 100%;
  margin: 0;
  padding: 2px 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: opacity .18s ease, transform .18s ease
}

.profile-owner-cluster.is-collapsed {
  display: none !important
}

.profile-owner-cluster.is-open {
  display: inline-flex !important;
  width: 100% !important;
  justify-content: space-between !important;
  padding: 2px 0 !important;
  opacity: 1 !important;
  transform: translateX(0);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important
}

.profile-owner-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aaa9a4;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  flex: none
}

.profile-owner-close-btn:hover {
  color: #fff;
  transform: scale(1.15)
}

.profile-owner-close-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round
}

#profileOwnerBar[hidden] {
  display: none !important
}

#profileShareOwner[hidden],
#profileHeaderOwner[hidden],
#profileGuestActions[hidden],
#cardStudioEntry[hidden] {
  display: none !important
}

.profile-owner-nav button,
.profile-owner-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #aaa9a4;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer
}

.profile-owner-nav button:hover,
.profile-owner-nav a:hover,
.q-home-link:hover {
  color: #e5c158
}

.q-home-link:focus-visible,
.profile-owner-nav :focus-visible,
.profile-social a:focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 3px
}

body .profile-social {
  margin: 16px 0 20px;
  padding: 0;
  border: 0;
  background: none
}

body .profile-social .profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px
}

body .profile-social .profile-link {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #33312a;
  border-radius: 12px;
  background: #151514;
  color: #d9d8d1;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5
}

.profile-social .profile-link span {
  overflow-wrap: anywhere;
  min-width: 0
}

.profile-social .profile-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #c7b980
}

.profile-social .profile-link:hover {
  border-color: #e5c158;
  color: #fff
}

.links-public {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  color: #bbb
}

.links-public input,
.link-edit-actions input {
  width: 20px;
  height: 20px;
  accent-color: #e5c158
}

.link-edit-row {
  border: 1px solid #33312a;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  min-width: 0
}

.link-edit-row legend {
  padding: 0 5px;
  color: #d7c68e;
  font-size: 12px
}

.link-edit-row>label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin: 0 0 10px
}

.link-edit-row .edit-input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 5px
}

.link-edit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px
}

.link-edit-actions label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  min-height: 44px;
  font-size: 13px
}

.link-edit-actions button,
.links-add {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #3a382f;
  border-radius: 9px;
  background: #201e17;
  color: #dfd9c8;
  font: inherit;
  cursor: pointer
}

.link-edit-actions button:disabled,
.links-add:disabled {
  opacity: .35;
  cursor: default
}

.links-add {
  width: 100%;
  font-size: 14px
}

.links-add span {
  color: #aaa;
  font-size: 12px
}

[data-links-status] {
  color: #e5c158;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  overflow-wrap: anywhere
}

@media(max-width:360px) {
  body .profile-social .profile-link {
    padding: 9px 11px
  }

  .profile-owner-nav {
    gap: 0
  }

  .q-home-link {
    gap: 7px
  }
}

/* 팝업 내부 메뉴 스타일 (투명 배경, 글씨와 아이콘만) */
body .profile-card-menu,
body .profile-owner-nav.profile-card-edit,
.profile-card-share {
  display: inline-flex;
  align-items: center;
  gap: 2px
}

body .profile-card-menu button,
body .profile-card-menu #profileRepresentativeChange,
body .profile-owner-nav.profile-card-edit button,
.profile-card-share button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
  min-height: 32px;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 2px 4px;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  color: #e5c158;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: -.3px;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: none !important;
  transition: color .15s ease, transform .15s ease
}

body .profile-card-menu span,
body .profile-card-menu #profileRepresentativeChange span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0
}

body .profile-card-menu button:hover,
body .profile-card-menu #profileRepresentativeChange:hover,
body .profile-owner-nav.profile-card-edit button:hover,
.profile-card-share button:hover {
  color: #fff;
  transform: scale(1.06)
}

body .profile-card-menu #cardStudioOpen {
  background: transparent !important;
  border: 0 !important;
  color: #e5c158
}

body .profile-card-menu svg,
body .profile-owner-nav.profile-card-edit svg,
.profile-card-share svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  display: block;
  margin: 0
}

body .profile-card-menu button:focus-visible,
body .profile-owner-nav.profile-card-edit button:focus-visible,
.profile-card-share button:focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 2px
}

/* 명함 뷰포트 및 명함 안쪽 좌·우·하단 5초 주기 4단계 동기화 내비게이션 */
.profile-card-viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 16px
}

.profile-card-viewport.has-nav,
.profile-card-viewport:has(.profile-nav-arrow:not([hidden])) {
  padding: 0
}

.profile-card-stage {
  width: 100%;
  position: relative;
  border-radius: 16px
}

/* 4단계 동기화 애니메이션 (5초 주기) */
@keyframes profile-nav-gradient-sync {

  0%,
  20% {
    opacity: 0
  }

  40% {
    opacity: .92
  }

  76% {
    opacity: .92
  }

  90%,
  100% {
    opacity: 0
  }
}

@keyframes profile-nav-chevron-sync {

  0%,
  38% {
    opacity: 0
  }

  52% {
    opacity: 1
  }

  76% {
    opacity: 1
  }

  90%,
  100% {
    opacity: 0
  }
}

.profile-nav-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent !important;
  cursor: pointer;
  z-index: 10;
  transition: opacity .2s ease, transform .15s ease
}

.profile-nav-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: profile-nav-gradient-sync 5s cubic-bezier(.4, 0, .2, 1) infinite
}

.profile-nav-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 2px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px
}

.profile-nav-prev::before {
  background: linear-gradient(to right, rgba(14, 16, 22, .65) 0%, rgba(14, 16, 22, .20) 65%, transparent 100%);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px
}

.profile-nav-next {
  right: 0;
  justify-content: flex-end;
  padding-right: 2px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px
}

.profile-nav-next::before {
  background: linear-gradient(to left, rgba(14, 16, 22, .65) 0%, rgba(14, 16, 22, .20) 65%, transparent 100%);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px
}

.profile-nav-arrow svg {
  position: relative;
  z-index: 2;
  width: 21px;
  height: 21px;
  display: block;
  animation: profile-nav-chevron-sync 5s cubic-bezier(.4, 0, .2, 1) infinite
}

.profile-nav-arrow[hidden] {
  display: none !important
}

/* 속이 빈 외곽선 꺾쇠 (Hollow Chevron) 공통 스타일 */
.profile-hollow-chevron {
  fill: transparent !important;
  stroke: #ffffff !important;
  stroke-width: 1.35 !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85))
}

/* 포커스, 호버, 액티브 상태에서는 즉시 100% 노출 */
.profile-nav-arrow:hover::before,
.profile-nav-arrow:focus-visible::before,
.profile-nav-arrow:active::before {
  animation: none !important;
  opacity: 1 !important
}

.profile-nav-arrow:hover svg,
.profile-nav-arrow:focus-visible svg,
.profile-nav-arrow:active svg {
  animation: none !important;
  opacity: 1 !important
}

.profile-nav-arrow:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: -2px
}

/* 움직임 줄이기 (prefers-reduced-motion: reduce) */
@media(prefers-reduced-motion:reduce) {
  .profile-nav-arrow::before {
    animation: none !important;
    opacity: .45 !important
  }

  .profile-nav-arrow svg {
    animation: none !important;
    opacity: .85 !important;
    transition: none !important
  }
}

body .quick-actions {
  margin-top: 16px
}

body .quick-actions .quick-action {
  height: auto;
  min-height: 64px;
  padding-block: 8px
}

.editor-myq-link {
  display: block;
  text-align: center;
  min-height: 44px;
  padding: 12px;
  color: #c9b684;
  font-size: 14px;
  margin: 8px 0 12px;
  text-decoration: none
}

#profileOwnerSocial[hidden],
#profilePublicSocial[hidden] {
  display: none !important
}

body #profileOwnerSocial .profile-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 3px
}

body #profileOwnerSocial .profile-link {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 8px 1px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font: 500 10px/1.25 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
  border: 2px solid transparent;
  background: #151514;
  color: #f4f4f5;
  opacity: 1
}

body #profileOwnerSocial .profile-link span {
  white-space: nowrap;
  overflow-wrap: normal
}

#profileOwnerSocial .profile-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: inherit
}

body #profileOwnerSocial .profile-link.is-connected {
  border-color: #e5c158
}

body #profileOwnerSocial .profile-link:disabled {
  cursor: default
}

#profileOwnerSocial .profile-link:focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 2px
}

/* 6개 이후는 기존 단색 아이콘을 가로로 이동하여 선택한다. */
body #profileOwnerSocial .profile-links.profile-social-strip,
.links-icon-grid.profile-social-strip,
body #profilePublicSocial .profile-links.is-social-compact {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: max(44px, calc((100% - 15px)/6));
  justify-content: start;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 3px;
  scroll-padding-inline: 2px
}

body #profileOwnerSocial .profile-links.profile-social-strip:not(.has-social-overflow),
.links-icon-grid.profile-social-strip:not(.has-social-overflow) {
  justify-content: center
}

.profile-social-strip::-webkit-scrollbar {
  display: none
}

.profile-social-strip .profile-link,
.profile-social-strip .links-service {
  position: relative
}

.profile-social-strip:focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 2px
}

body #profilePublicSocial .is-social-compact .profile-link {
  flex-direction: column;
  padding: 8px 1px;
  font-size: 10px;
  justify-content: center;
  text-align: center
}

/* 같은 SNS 행 위에 제어를 겹친다. 양 끝 클릭 공간은 링크 영역과 분리한다. */
.profile-social-frame {
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box
}

.profile-social-frame.has-social-overflow {
  padding-inline: 0 !important
}

.profile-social-frame>.profile-social-strip {
  margin: 0;
  width: 100%
}

.profile-social-frame:has(>.links-icon-grid) {
  margin: 10px 0 4px
}

.profile-social-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 100%;
  padding: 0;
  margin: 0;
  pointer-events: none;
  z-index: 3
}

.profile-social-scroll[hidden],
.profile-social-arrow[hidden] {
  display: none !important
}

.profile-social-scroll .profile-social-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3deb0;
  cursor: pointer;
  pointer-events: auto;
  transition: background .15s ease, color .15s ease
}

.profile-social-arrow[data-direction=previous] {
  left: 0;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(to right, rgba(12, 12, 14, 0.96) 0%, rgba(12, 12, 14, 0.80) 65%, transparent 100%)
}

.profile-social-arrow[data-direction=next] {
  right: 0;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(to left, rgba(12, 12, 14, 0.96) 0%, rgba(12, 12, 14, 0.80) 65%, transparent 100%)
}

.profile-social-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85))
}

.profile-social-scroll .profile-social-arrow:hover {
  color: #fff
}

.profile-social-scroll .profile-social-arrow:focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: -2px
}

body #profileOwnerSocial .profile-social-strip .profile-link span {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%
}

.profile-social-strip .links-service span {
  overflow-wrap: anywhere;
  max-width: 100%
}

@media(max-width:340px) {
  body #profileOwnerSocial .profile-link {
    font-size: 9px
  }
}

.links-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 3px;
  margin: 10px 0 4px
}

.links-icon-cell {
  min-width: 0;
  text-align: center
}

.links-service {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  border: 1px solid #333239;
  border-radius: 12px;
  padding: 8px 1px;
  background: #131317;
  color: #77777e;
  font: 500 10px/1.3 'Noto Sans KR', sans-serif;
  cursor: pointer
}

.links-service.is-connected {
  color: #e0d7b9;
  border-color: #5a5039;
  background: #211e17
}

.links-service svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.link-public-check {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  font-size: 11px !important;
  margin: 0 !important;
  color: #b9b9bf
}

.link-public-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #d7ba6f
}

.link-public-check:has(input:disabled) {
  opacity: .4
}

.links-extra {
  border-top: 1px solid #2e2d33;
  margin-top: 6px;
  padding-top: 4px
}

.links-extra summary {
  min-height: 44px;
  display: list-item;
  padding: 12px 0;
  font-size: 12px;
  color: #bdb8ac;
  cursor: pointer
}

.links-order {
  list-style: none;
  padding: 0;
  margin: 0 0 10px
}

.link-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  gap: 4px;
  border-bottom: 1px solid #292830;
  padding: 5px 0
}

.link-order-row button {
  min-height: 44px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #c8bfaa;
  font: inherit;
  cursor: pointer
}

.link-order-edit {
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 13px !important
}

.link-order-row .link-public-check {
  justify-content: flex-start
}

.link-order-row button:disabled {
  opacity: .3
}

.links-service:focus-visible,
.links-extra :focus-visible,
.link-address-dialog :focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 2px
}

.link-address-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(420px, calc(100% - 24px));
  max-height: 90dvh;
  box-sizing: border-box;
  overflow: auto;
  padding: 20px;
  border: 1px solid #474035;
  border-radius: 20px;
  background: #19191f;
  color: #eee;
  font-family: inherit;
  box-shadow: 0 18px 80px #0008
}

.link-address-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px)
}

.link-address-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px
}

.link-address-dialog h3 {
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere
}

.link-address-dialog button {
  min-height: 44px;
  min-width: 44px;
  padding: 9px 12px;
  border: 1px solid #4a4539;
  border-radius: 10px;
  background: #232228;
  color: #e0d8c3;
  font: inherit;
  font-size: 13px;
  cursor: pointer
}

.link-address-dialog [data-close] {
  padding: 0;
  font-size: 24px;
  border: 0;
  background: transparent
}

.link-address-dialog label {
  display: block;
  font-size: 13px;
  color: #bbb;
  margin-bottom: 14px
}

.link-address-dialog [hidden] {
  display: none !important
}

.link-address-dialog .edit-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 7px;
  font-size: 16px
}

.link-draft-note {
  font-size: 12px;
  color: #a8a5a0;
  line-height: 1.6;
  margin: 10px 0
}

.link-address-dialog [data-error] {
  font-size: 13px;
  color: #ffb096;
  line-height: 1.5
}

.link-address-dialog footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px
}

.link-address-dialog [data-delete] {
  margin-right: auto;
  color: #bdafa7
}

.link-address-dialog [data-apply] {
  background: #e5c158;
  border-color: #e5c158;
  color: #211b0a;
  font-weight: 700
}

@media(max-width:600px) {
  .link-address-dialog {
    inset: auto 0 0;
    margin: 0 auto;
    width: 100%;
    max-height: 85dvh;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom))
  }
}

@media(max-width:340px) {
  .links-service {
    font-size: 9px
  }

  .link-public-check {
    font-size: 10px !important
  }
}

.owner-websites,
.links-websites {
  margin-top: 12px;
  min-width: 0;
  width: 100%
}

.owner-website-link,
.site-edit-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e5c158;
  border-radius: 10px;
  background: #151514;
  color: #f4f4f5;
  text-decoration: none;
  font: inherit;
  text-align: left;
  box-sizing: border-box
}

.owner-website-link {
  margin: 6px 0
}

.owner-website-link svg,
.site-edit-link svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6
}

.owner-website-link span,
.site-edit-link span {
  min-width: 0;
  overflow-wrap: anywhere
}

.owner-websites .links-add {
  margin-top: 8px
}

/* LINKS & BIO 아코디언 */
.links-bio-accordion {
  width: 100%;
  margin: 12px 0;
  box-sizing: border-box
}

.links-bio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid #e5c158;
  border-radius: 12px;
  background: #151514;
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease
}

.links-bio-bar::-webkit-details-marker {
  display: none
}

.links-bio-bar:hover {
  background: #1c1c1f;
  border-color: #fae69e;
  color: #fff
}

.links-bio-bar:focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 2px
}

.links-bio-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.5px
}

.links-bio-title svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #e5c158;
  stroke-width: 1.8;
  flex: none
}

.links-bio-chevron {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #e5c158;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  transition: transform .2s ease
}

details.links-bio-accordion[open] .links-bio-chevron {
  transform: rotate(180deg)
}

details.links-bio-accordion[open]>.links-bio-bar {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: #383630;
  background: #1a1a1f
}

.links-bio-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #151518;
  border: 1.5px solid #e5c158;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-sizing: border-box
}

.links-bio-content .owner-website-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #333230;
  border-radius: 9px;
  background: #101012;
  color: #eee;
  text-decoration: none;
  font: inherit;
  text-align: left;
  box-sizing: border-box;
  margin: 0;
  transition: border-color .15s, background .15s
}

.links-bio-content .owner-website-link:hover {
  border-color: #e5c158;
  background: #1c1b17;
  color: #fff
}

.links-bio-external {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #9e9786;
  stroke-width: 1.8;
  flex: none
}

.links-websites h3 {
  font-size: 14px;
  margin: 12px 0 8px;
  color: #eee
}

.links-count {
  font-size: 12px;
  line-height: 1.6;
  color: #bdb8ac;
  overflow-wrap: anywhere
}

.site-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 6px;
  margin: 6px 0
}

.site-edit-link,
.site-legacy {
  cursor: pointer;
  font-size: 13px
}

.site-legacy {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 8px 0;
  background: transparent;
  border: 1px solid #3a382f;
  border-radius: 8px;
  color: #c8bfaa;
  overflow-wrap: anywhere;
  text-align: left;
  padding: 10px
}

.links-website-add>summary {
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  padding: 12px;
  border: 1px solid #4a4539;
  border-radius: 9px;
  color: #e5c158;
  font-size: 13px
}

.links-website-add form {
  padding: 12px 0
}

.links-website-add form>label {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  color: #ccc
}

.links-website-add .edit-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  font-size: 16px
}

.site-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px
}

.site-add-actions button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid #4a4539;
  border-radius: 9px;
  background: #232228;
  color: #eee;
  cursor: pointer
}

.site-add-actions button:disabled {
  opacity: .45;
  cursor: default
}

[data-site-error] {
  font-size: 12px;
  color: #ffb096;
  line-height: 1.5
}

.owner-websites :focus-visible,
.links-websites :focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 2px
}

@media(max-width:480px) {

  #profileOwnerSocial .profile-link>span,
  .links-service>span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
  }
}

@media(max-width:340px) {
  #profileLinksEditor .profile-social-frame:has(>.links-icon-grid) {
    margin-inline: -6px
  }
}

/* 공유버튼은 우측 상단 현위치 유지, 수정(연필)버튼만 명함 우측 하단 구석으로 이동 */
#profileShareIcon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2px;
  background: transparent
}

/* 게스트 Q.참여 버튼 등 빠른 액션 */
.quick-action svg{width:20px;height:20px;color:var(--blue);stroke-width:2}

#profileShareIcon svg {
  transform: translateX(-0.75px)
}

#profileShareIcon:focus-visible {
  outline-offset: -3px
}

#profileOwnerBar #profileShareOwner {
  display: inline-flex !important
}

#profileOwnerBar #profileShareOwner[hidden] {
  display: none !important
}

#profileOwnerBar #profileShareIcon {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important
}

#profileOwnerBar #profileShareIcon svg {
  transform: none !important;
  width: 16px !important;
  height: 16px !important
}

#profileOwnerBar #profileHeaderOwner {
  display: inline-flex !important
}

#profileOwnerBar #profileHeaderOwner[hidden] {
  display: none !important
}

#profileOwnerBar #profileHeaderEdit {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  color: #e5c158 !important;
  border-radius: 6px !important
}

#profileOwnerBar #profileHeaderEdit svg {
  width: 16px !important;
  height: 16px !important;
  filter: none !important
}

#profileHeaderEdit {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #c9b684 !important;
  cursor: pointer;
  transition: color .15s ease
}

#profileHeaderEdit:hover {
  color: #fff !important
}

#profileHeaderEdit svg {
  width: 20px !important;
  height: 20px !important;
  transform: none !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6))
}

#profileHeaderEdit:focus-visible {
  outline: 2px solid #e5c158;
  outline-offset: 2px
}