/* partners.thessadang.com - standalone UI (no inline/internal CSS) */

:root {
  color-scheme: light;

  /* Dark mode base colors */
  --darker: #1a1a1a;
  --pop-darker: #131313;
  --primary: #56a2ff;
  --main-text: #ffffff;
  --sub-text: #677687;
  --border: #272d33;
  --card: var(--main-text);
  --text: var(--main-text);
  --muted: var(--sub-text);
  --muted-2: #9ca3af;
  --primary-hover: #4338ca;
  --ghost: #f3f4f6;
  --ghost-hover: #e5e7eb;
  --shadow: 0 8px 16px #c3defff2;
  --radius: 16px;

  /* Legacy palette vars */
  --gray-50: #fcfdff;
  --gray-100: #ededed;
  --yellow: #f59e0b;
  --red: #ef4444;
  --green: #37CB72;
  --themecolor: var(--primary);
  --primary-color: var(--primary);
  --second-color: #0ea5e9;
  --white-color: #fff;


  /* common colors start */
  /* owner personal color */
  --owner-personal-color: #ff9e22;
  /* sub account personal color */
  --sub-account-personal-color: #37cb72;

  /* button colors */
  --accept-button-color: #56A2FF;
  --reject-button-color: #FF3939;
  --warning-button-color: #677687;

  /* button hover colors */
  --side-menu-hover-color: #3d4149;

  /* scrollbar (dark default) */
  --scrollbar-track: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: rgba(255, 255, 255, 0.20);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.32);
  /* common colors end */
}

html,
body {
  font-family: 'Pretendard', sans-serif;
  color: var(--text);
}

.wrap {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card--wide {
  max-width: 640px;
}

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

.brand img {
  width: auto;
  height: 48px;
}

.title {
  font-size: 18px;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--darker);
}

.subtitle {
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

.field {
  margin-top: 14px;
}

.label {
  display: block;
  font-size: 12px;
  color: #374151;
  margin-bottom: 6px;
}

.help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #67768759;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
  outline: none;
  color: var(--darker);
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accept-button-color);
}

.row {
  display: flex;
  gap: 10px;
}

.row>* {
  flex: 1;
}

.actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.actions--sticky {
  position: sticky;
  bottom: -32px;
  margin: 14px -32px -32px -32px;
  padding: 16px 32px;
  background: var(--card);
  z-index: 5;
  border-top: 1px solid var(--ghost);
}

.sub-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.remember-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.remember-check input {
  width: 16px;
  height: 16px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--main-text);
}

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

.btn-ghost {
  background: var(--ghost);
  color: var(--text);
}

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

.btn-danger {
  background: #ef4444;
  color: var(--main-text);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-link {
  background: transparent;
  color: var(--primary);
  padding: 8px 0;
  font-weight: 400;
}

.btn-link[disabled] {
  color: var(--muted-2);
  cursor: not-allowed;
}

.meta {
  margin: 14px 0 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

/* alerts (htmx fragments) */
.alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid transparent;
}

.alert+.modal-actions {
  margin-top: 10px;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert-warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.alert-success {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.alert-info {
  background: #ecfeff;
  color: #155e75;
  border-color: #a5f3fc;
  margin-bottom: 12px;
}

.alert-sub {
  margin-top: 6px;
  opacity: 0.85;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  z-index: 50;
}

.modal {
  width: 100%;
  max-width: 620px;
  background: var(--darker);
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 0;
  color: var(--darker);
}

.modal-title {
  font-weight: 400;
  color: var(--darker);
}

.preview-title {
  font-weight: 400;
  color: var(--main-text);
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--sub-text);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-close:hover {
  color: var(--main-text);
}

.btn-close::before {
  content: '×';
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.modal-bd {
  padding: 32px;
}

.no-padding-top {
  padding-top: 0;
}

/* Modal scrollable area - same scrollbar style as .pds-content */
.modal-bd--scrollable {
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgb(0 0 0 / 20%) var(--scrollbar-track);
  /* Firefox */
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* WebKit scrollbar (Chromium/Safari) - modal scrollable area */
.modal-bd--scrollable::-webkit-scrollbar {
  width: 10px;
}

.modal-bd--scrollable::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.modal-bd--scrollable::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 3px solid var(--scrollbar-track);
}

.modal-bd--scrollable::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

.note {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--muted);
}

.x {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* dashboard */
.dash-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 400;
  color: #e5e7eb;
}

.dash-muted {
  margin: 0 0 12px 0;
  color: rgba(229, 231, 235, 0.75);
  font-size: 13px;
}

.dash-code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.dash-card {
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

/* ==========================================================
   Partners Dashboard Shell (pds-*)
   ========================================================== */

body.partners-dash {
  background: var(--darker);
  overflow: hidden;
  margin: 0;
}

.pds-topbar__right i {
  font-size: 24px;
}

.pds-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  overflow: hidden;
}

.pds-shell.is-collapsed {
  grid-template-columns: 82px 1fr;
}

.pds-side {
  border-right: 1px solid var(--border);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px 14px 24px;
  gap: 34px;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.pds-side__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.pds-side__topleft {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pds-side__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.pds-side__logoimg {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.pds-side__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--main-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pds-iconbtn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 400;
}

.pds-side__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--main-text);
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.pds-side__toggle:hover {
  opacity: 0.8;
}

.pds-side__toggle svg {
  width: 24px;
  height: 24px;
}

.pds-shell.is-collapsed .pds-side__toggle {
  display: none;
}

.pds-side.is-collapsed .pds-side__title {
  display: none;
}

.pds-side.is-collapsed .pds-snav__label {
  display: none;
}

.pds-side.is-collapsed .pds-snav__head {
  justify-content: center;
  padding: 12px 10px;
}

.pds-side.is-collapsed .pds-snav__left {
  gap: 0;
}

.pds-side.is-collapsed .pds-snav__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  opacity: 0.92;
  transition: background 160ms ease, border-color 160ms ease;
}

.pds-shell.is-collapsed .pds-snav__head:hover {
  background: transparent;
  border-color: transparent;
}

.pds-shell.is-collapsed .pds-snav__head.is-active {
  background: var(--side-menu-hover-color);
  border-color: transparent;
}

.pds-shell.is-collapsed .pds-snav__head.is-active .pds-snav__ico {
  background: var(--muted);
}

.pds-side.is-collapsed .pds-snav__note {
  display: none;
}

.pds-btn__ico {
  width: 18px;
  text-align: center;
  opacity: 0.95;
}

.pds-side.is-collapsed .pds-btn__label {
  display: none;
}

.pds-side.is-collapsed .pds-btn.pds-btn--full {
  justify-content: center;
  gap: 0;
}

/* pds-side__user removed from dashboard (kept intentionally empty) */

.pds-nav {
  display: none;
  gap: 6px;
  padding-top: 6px;
  height: 35vh;
  overflow: auto;
}

/* New sidebar (Font Awesome + accordion) */
.pds-snav {
  display: flex;
  gap: 4px;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.pds-shell.is-collapsed .pds-side__top {
  justify-content: center;
}

.pds-shell.is-collapsed .pds-side__topleft {
  justify-content: center;
  width: 100%;
}

.pds-shell.is-collapsed .pds-snav {
  height: auto;
  overflow: visible;
  justify-items: center;
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.pds-shell.is-collapsed .pds-snav__section {
  width: auto;
}

.pds-shell.is-collapsed .pds-snav__head {
  width: auto;
}

.pds-shell.is-collapsed .pds-side__bottom .pds-btn.pds-btn--full {
  justify-content: center;
}

.pds-snav__note {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--main-text);
  font-size: 12px;
}

.pds-snav__section {
  border-radius: 12px;
}

.pds-snav__head {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: transparent;
  color: var(--main-text);
  border-radius: 12px;
  padding: 11px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  text-decoration: none;
}

.pds-snav__head.is-active {
  background: var(--side-menu-hover-color);
  color: var(--accept-button-color);
}

.pds-snav__head:hover {
  background: var(--side-menu-hover-color);
}

.pds-snav__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pds-snav__ico {
  width: 18px;
  text-align: center;
  opacity: 0.9;
}

.pds-snav__label {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pds-snav__chev {
  font-size: 12px;
  opacity: 0.75;
  transition: transform 160ms ease;
}

.pds-snav__section.is-open .pds-snav__chev {
  transform: rotate(180deg);
}

.pds-snav__sub {
  display: none;
  padding: 6px 6px 10px 34px;
  gap: 6px;
}

.pds-snav__section.is-open .pds-snav__sub {
  display: grid;
}

.pds-snav__link {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--main-text);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 400;
}

.pds-snav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.pds-snav__link.is-active {
  background: rgba(79, 70, 229, 0.18);
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--main-text);
}

.pds-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--main-text);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

.pds-nav__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.pds-nav__item--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pds-nav__note {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--main-text);
  font-size: 12px;
}

.pds-side__bottom {
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.pds-main {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 58px 16px;
  box-sizing: border-box;
  gap: 8px;
}

.pds-topbar {
  border-radius: 14px;
  padding: 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.pds-topbar__right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.pds-topicon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--main-text);
  cursor: pointer;
  position: relative;
}

.pds-topicon:hover {
  background: var(--side-menu-hover-color);
}

/* Topbar icon tooltips */
.pds-topicon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(0, 0, 0, 0.72);
  color: var(--main-text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
  z-index: 50;
}


.pds-topicon:hover[data-tooltip]::after,
.pds-topicon:focus-visible[data-tooltip]::after,
.pds-topicon:hover[data-tooltip]::before,
.pds-topicon:focus-visible[data-tooltip]::before {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="light"] .pds-topicon[data-tooltip]::after {
  background: var(--main-text);
  color: var(--darker);
  border-color: #f8f9fa;
}

html[data-theme="light"] .pds-topicon[data-tooltip]::before {
  background: var(--main-text);
  border-left-color: #f8f9fa;
  border-top-color: #f8f9fa;
}

.pds-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--main-text);
  text-decoration: none;
  max-width: 240px;
}

.pds-account:hover {
  background: var(--side-menu-hover-color);
  border-color: var(--border);
}

.pds-account__ico {
  flex: 0 0 auto;
}

.pds-account__name {
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.pds-account__chev {
  font-size: 12px;
  opacity: 0.8;
  flex: 0 0 auto;
}

/* Light theme (minimal) - 다크 모드의 반전 */
html[data-theme="light"] {
  --primary-color: #462cc5;
  --primary-hover: #7d65f2;
  --themecolor: #462cc5;

  /* 다크 모드의 반전: 텍스트는 어두운 색, 배경은 밝은 색 */
  --main-text: #3b3b3b;
  --sub-text: #677687;
  --border: #e5e7eb;
  --darker: #ffffff;
  /* 배경 */
  --pop-darker: #f5f5f5;
  /* 팝업 배경 */
  --side-bg: #f9fcff;
  /* 사이드바 배경 */
  --side-hover: #e3f0fe;
  /* 사이드바 호버 배경 */

  /* scrollbar (light) */
  --scrollbar-track: #f5f5f5;
  --scrollbar-thumb: rgba(102, 102, 102, 0.35);
  --scrollbar-thumb-hover: rgba(102, 102, 102, 0.50);
}

html[data-theme="light"] body.partners-dash {
  background: var(--darker);
  color: var(--main-text);
}

html[data-theme="light"] {
  --card: #ffffff;
  --text: var(--main-text);
  --muted: var(--sub-text);
}

html[data-theme="light"] .pds-side {
  background: var(--side-bg);
  border-right: 1px solid var(--border);
}

html[data-theme="light"] .pds-topbar,
html[data-theme="light"] .pds-page,
html[data-theme="light"] .pds-cardlink,
html[data-theme="light"] .pds-tablewrap,
html[data-theme="light"] .pds-addr {
  background: var(--darker);
  border-color: var(--border);
}

html[data-theme="light"] .pds-topbar__crumb,
html[data-theme="light"] .pds-subtitle,
html[data-theme="light"] .pds-help,
html[data-theme="light"] .pds-label,
html[data-theme="light"] .pds-cardlink__desc {
  color: var(--sub-text);
}

html[data-theme="light"] .pds-topbar__h1,
html[data-theme="light"] .pds-title,
html[data-theme="light"] .pds-side__title,
html[data-theme="light"] .pds-snav__head,
html[data-theme="light"] .pds-cardlink {
  color: var(--main-text);
}

html[data-theme="light"] .pds-shell.is-collapsed .pds-snav__head:hover {
  background: var(--side-hover);
}

html[data-theme="light"] .pds-topicon,
html[data-theme="light"] .pds-account {
  border-color: #f6f5ff;
  color: var(--main-text);
}

html[data-theme="light"] .pds-topicon:hover,
html[data-theme="light"] .pds-account:hover {
  background: var(--side-hover);
}

html[data-theme="light"] .pds-notify__panel {
  background: var(--darker);
  box-shadow: none;
}


html[data-theme="light"] .pds-btn {
  color: var(--darker);
}

html[data-theme="light"] .pds-btn--ghost:hover {
  background: var(--main-text);
  border-color: #f6f5ff;
}

html[data-theme="light"] .pds-chip--sub {
  color: var(--darker);
}

html[data-theme="light"] .pds-btn--primary {}

html[data-theme="light"] .pds-btn--primary:hover {}

html[data-theme="light"] .pds-input,
html[data-theme="light"] .pds-select {
  background: var(--darker);
  border-color: var(--border);
  color: var(--main-text);
}

html[data-theme="light"] .pds-input::placeholder,
html[data-theme="light"] .pds-select::placeholder {
  color: var(--sub-text);
}

html[data-theme="light"] .pds-input:focus,
html[data-theme="light"] .pds-select:focus {
  border-color: var(--accept-button-color);
}

html[data-theme="light"] .pds-readonly {
  background: var(--darker);
  border-color: var(--border);
  color: var(--main-text);
}

html[data-theme="light"] .pds-shell.is-collapsed .pds-snav__head.is-active,
html[data-theme="light"] .pds-snav__head.is-active {
  background: var(--side-hover);
  color: var(--accept-button-color);
}

html[data-theme="light"] .pds-shell.is-collapsed .pds-snav__head:hover,
html[data-theme="light"] .pds-snav__head:hover {
  background: var(--side-hover);
}

html[data-theme="light"] .pds-btn--ghost {
  color: var(--main-text);
  background: #f5f5f5;
}

html[data-theme="light"] .pds-btn--ghost:hover {
  background: #ebebeb;
}

html[data-theme="light"] .pds-svcrow__del:hover {
  background: var(--gray-50);
}


html[data-theme="light"] .pds-table {
  background: var(--darker);
}

html[data-theme="light"] .pds-table th,
html[data-theme="light"] .pds-table td {
  border-bottom-color: var(--border);
  color: var(--main-text);
}

html[data-theme="light"] .pds-table th {
  background: var(--darker);
  color: var(--sub-text);
}

html[data-theme="light"] .pds-questions-dropdown {
  background: var(--darker);
  box-shadow: 0 4px 12px #56a2ff50;
}

html[data-theme="light"] .pds-questions-dropdown__item {
  background: var(--gray-50);
}

html[data-theme="light"] .pds-questions-dropdown__pagination-item--active {
  color: var(--accept-button-color);
  background: var(--side-hover);
}

html[data-theme="light"] .pds-questions-dropdown__pagination-item:hover {
  background: var(--side-hover);
}

/* collapsed(icon-only) light tweaks */
html[data-theme="light"] .pds-shell.is-collapsed .pds-snav__head:hover .pds-snav__ico {
  background: var(--darker);
  border-color: #f6f5ff;
}

html[data-theme="light"] .pds-shell.is-collapsed .pds-snav__head.is-active .pds-snav__ico {
  background: var(--darker);
  border-color: #f6f5ff;
}

html[data-theme="light"] .pds-home__hero,
html[data-theme="light"] .pds-sec,
html[data-theme="light"] .pds-sec--plain {
  border-bottom-color: var(--border);
}

html[data-theme="light"] .pds-sec__count,
html[data-theme="light"] .pds-ncard__tag {
  border-color: var(--border);
  background: #f8f9fa;
  color: var(--main-text);
}

html[data-theme="light"] .pds-drag-drop {
  background: var(--side-bg);
}

html[data-theme="light"] .pds-ncard,
html[data-theme="light"] .pds-bcard,
html[data-theme="light"] .pds-pcard {
  border-color: var(--border);
  background: var(--gray-50);
}

html[data-theme="light"] .pds-ncard__t,
html[data-theme="light"] .pds-bcard__title,
html[data-theme="light"] .pds-bcard__name,
html[data-theme="light"] .pds-pcard__branch,
html[data-theme="light"] .pds-pcard__title {
  color: var(--main-text);
}

html[data-theme="light"] .pds-ncard__desc,
html[data-theme="light"] .pds-bcard__meta,
html[data-theme="light"] .pds-pcard__meta,
html[data-theme="light"] .pds-sec__toggle {
  color: var(--sub-text);
}

html[data-theme="light"] .pds-qcard {
  background: var(--gray-50);
}

html[data-theme="light"] .pds-qcard:hover {
  background: var(--side-hover);
}

html[data-theme="light"] .pds-qfilter__btn:hover {
  border-color: var(--main-text);
}

html[data-theme="light"] .pds-mini-link {
  border-color: var(--main-text);
  background: var(--main-text);
  color: var(--white-color);
}

html[data-theme="light"] .pds-home__greet {
  color: var(--main-text);
}


html[data-theme="light"] .pds-home__metatxt {
  color: var(--sub-text);
}

html[data-theme="light"] .pds-sec__title {
  color: var(--main-text);
}

html[data-theme="light"] .pds-reject-tooltip {
  background: var(--main-text);
  color: var(--darker);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Light theme support */
html[data-theme="light"] .pds-drow--head {
  background: var(--sub-text);
}

html[data-theme="light"] .pds-dcell {
  border-bottom-color: #f8f9fa;
  color: var(--main-text);
}

html[data-theme="light"] .pds-drow--head .pds-dcell {
  color: var(--white-color);
}

html[data-theme="light"] .pds-branchacc {
  border-bottom-color: var(--border);
}

html[data-theme="light"] .pds-branchacc:hover {
  background: var(--side-hover);
}

html[data-theme="light"] .pds-acc__panel--branch {
  border-color: var(--border);
}

html[data-theme="light"] .pds-acc__panel--branch:hover {
  background: var(--side-hover);
}

html[data-theme="light"] .pds-accinfo__k {
  color: var(--sub-text);
}

html[data-theme="light"] .pds-accinfo__v {
  color: var(--main-text);
}

html[data-theme="light"] .pds-iconbtn {
  border-color: #f8f9fa;
  background: #f6f5ff;
  color: var(--main-text);
}

html[data-theme="light"] .pds-selector-btn {
  background: var(--darker);
  border-color: var(--border);
  color: var(--main-text);
}

html[data-theme="light"] .pds-selector-btn:hover {
  border-color: rgba(70, 44, 197, 0.55);
  background: #f6f5ff;
}

html[data-theme="light"] .pds-selector-btn.selected {
  border-color: var(--accept-button-color);
  background: var(--side-hover);
}

html[data-theme="light"] .pds-qfilter__btn--active {
  background: var(--main-text);
  border-color: var(--main-text);
  color: var(--white-color);
}

html[data-theme="light"] .pds-selector-menu {
  background: #fff;
  border-color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .pds-selector-menu-item {
  border-bottom-color: var(--border);
  color: var(--main-text);
}

html[data-theme="light"] .pds-selector-menu-item:hover:not(:disabled) {
  color: var(--accept-button-color);
}

html[data-theme="light"] .pds-selector-menu-item--disabled,
html[data-theme="light"] .pds-selector-menu-item:disabled {
  color: var(--main-text);
}

html[data-theme="light"] .pds-selector-disabled-text {
  color: var(--main-text);
}

html[data-theme="light"] .pds-ckeditor-wrap .ck.ck-editor__main>.ck-editor__editable {
  background: var(--darker) !important;
  color: var(--main-text) !important;
}

html[data-theme="light"] .pds-toggle__slider {
  background-color: var(--gray-100);
}

.pds-topbar__crumb {
  font-size: 12px;
  color: var(--sub-text);
}

.pds-topbar__h1 {
  font-size: 18px;
  font-weight: 400;
  color: var(--main-text);
  margin-top: 3px;
}

.pds-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  /* Firefox */
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* WebKit scrollbar (Chromium/Safari) - main content vertical scroll */
.pds-content::-webkit-scrollbar {
  width: 10px;
}

.pds-content::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.pds-content::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 3px solid var(--scrollbar-track);
}

.pds-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

.pds-page {
  padding: 16px;
}

.pds-home {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  gap: 18px;
  padding: 8px 6px 18px;
}

.pds-home__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 10px 0 16px;
}

.pds-home__greet {
  font-size: 24px;
  font-weight: 400;
  color: var(--main-text);
}

.pds-home__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pds-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
}

.pds-chip--owner {
  border-color: rgba(255, 158, 34, 0.45);
  background: var(--owner-personal-color);
  color: #fff;
}

.pds-chip--sub {
  border-color: rgba(36, 214, 60, 0.45);
  background: var(--sub-account-personal-color);
  color: #fff;
}

.pds-home__metatxt {
  font-size: 12px;
  color: var(--sub-text);
  font-weight: 400;
}


.pds-sec {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-top: 0;
}

.pds-sec+.pds-sec {
  margin-top: 24px;
}

.pds-sec--plain {
  border-bottom: 1px solid var(--border);
}

.pds-sec__head {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.pds-sec__head::-webkit-details-marker {
  display: none;
}

.pds-sec__head--static {
  cursor: default;
}

.pds-sec__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pds-sec__ico {
  opacity: 0.9;
}

.pds-sec__title {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-text);
}



.pds-sec__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
}

.pds-sec__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.pds-sec__toggle {
  font-size: 12px;
  font-weight: 400;
  color: var(--sub-text);
}

.pds-sec__chev {
  opacity: 0.8;
  transition: transform 160ms ease;
}

details.pds-sec[open] .pds-sec__chev {
  transform: rotate(180deg);
}

details.pds-sec:not([open]) .pds-sec__toggle::before {
  content: '펼치기';
}

details.pds-sec[open] .pds-sec__toggle::before {
  content: '접어두기';
}

details.pds-sec .pds-sec__toggle {
  font-size: 0;
}

details.pds-sec .pds-sec__toggle::before {
  font-size: 12px;
  font-weight: 400;
  color: var(--sub-text);
}

.pds-sec__body {
  padding-top: 8px;
}

.pds-cardlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pds-cardlist__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 4px;
}

.pds-ncard {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #1e1e1f;
  padding: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pds-ncard:hover {
  background: rgba(255, 255, 255, 0.06);
}


.pds-ncard__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pds-ncard__tag {
  font-size: 11px;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
  flex: 0 0 auto;
}

.pds-ncard__t {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pds-ncard__desc {
  font-size: 14px;
  color: var(--sub-text);
  line-height: 1.4;
  overflow: hidden;
  max-height: 40px;
  /* 대략 3줄 (12px * 1.4 * 3 + 여유) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.pds-ncard__desc p {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.pds-ncard__desc * {
  max-width: 100%;
}

.pds-ncard__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
  color: var(--sub-text);
}


.pds-grid3 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 12px;
}

.pds-bcard,
.pds-pcard {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #1e1e1f;
  padding: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* 한 줄에 3개 고정 넓이 (gap 12px * 2 = 24px) */
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
  box-sizing: border-box;
}

/* 링크로 사용되는 카드 스타일 */
a.pds-pcard {
  text-decoration: none;
  color: inherit;
}

.pds-bcard:hover,
.pds-pcard:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pds-bcard__top,
.pds-pcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pds-bcard__grade {
  position: absolute;
  top: -12px;
  left: 8px;
  z-index: 5;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.pds-bcard__grade img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pds-bcard__title {
  font-weight: 400;
  color: var(--main-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pds-pcard__branch {
  font-weight: 400;
  color: var(--main-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pds-bcard__name {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pds-bcard__meta,
.pds-pcard__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--sub-text);
  margin-top: 20px;
}

.pds-bcard__meta strong,
.pds-pcard__meta strong {
  font-size: 14px;
  color: var(--card);
}

.pds-pcard__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--main-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.pds-dot {
  width: 2px;
  height: 12px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
}

.pds-mini-link {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
  font-size: 12px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.pds-mini-link:hover {
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 980px) {

  .pds-bcard,
  .pds-pcard {
    flex: 0 0 calc((100% - 12px) / 2);
  }
}

@media (max-width: 640px) {

  .pds-bcard,
  .pds-pcard {
    flex: 0 0 100%;
  }
}

.pds-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pds-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--main-text);
}

.pds-title__stats {
  font-size: 14px;
  color: var(--muted);
}

.pds-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.pds-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* pds-actions 대체(지점 리스트 헤더 등) */
.pds-hactions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Branch list: account accordion */
.pds-acc {
  display: inline-block;
  text-align: left;
}

.pds-acc__sum {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  color: var(--main-text);
}

.pds-acc__sum::-webkit-details-marker {
  display: none;
}

.pds-acc__sumleft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 12px;
}

.pds-acc__ico {
  opacity: 0.85;
}

.pds-acc__chev {
  opacity: 0.75;
  transition: transform 160ms ease;
}

.pds-acc[open] .pds-acc__chev {
  transform: rotate(180deg);
}

.pds-acc-row {
  background: rgba(255, 255, 255, 0.02);
}

.pds-acc-row__cell {
  padding: 12px !important;
  border-top: none !important;
}

.pds-acc__panel {
  padding: 12px;
  border-radius: 12px;
  width: 25%;
}

/* Div-based table (modern layout) */
.pds-dtable {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pds-drow {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.pds-drow--head {
  background: transparent;
}

.pds-dcell {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--card);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 0;
  text-align: center;
}

.pds-drow--head .pds-dcell {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

/* Column widths for different table types 
.pds-dtable--posts .col-id { flex: 0 0 80px; }
.pds-dtable--posts .col-branch { flex: 0 0 140px; }
.pds-dtable--posts .col-title { flex: 1 1 0; min-width: 200px; }
.pds-dtable--posts .col-status { flex: 0 0 90px; }
.pds-dtable--posts .col-date { flex: 0 0 120px; }
.pds-dtable--posts .col-action { flex: 0 0 200px; justify-content: flex-end; }
*/


.pds-dtable--posts .col-status,
.pds-dtable--posts .col-complaint,
.pds-dtable--posts .col-hits,
.pds-dtable--posts .col-id {
  flex: 0 0 60px;
}


.pds-dtable--posts .col-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Edit link (icon + text with underline) */
.pds-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--main-text);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}

.pds-edit-link:hover {
  opacity: 0.8;
}

.pds-edit-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.pds-edit-link span {
  text-decoration: underline;
}

/* Status toggle (clickable badge) */
.pds-status-toggle {
  cursor: pointer;
  user-select: none;
}

.pds-status-toggle:hover {
  opacity: 0.8;
}

.pds-status-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 반려 배지 툴팁 */
.pds-reject-badge {
  cursor: help;
}

.pds-reject-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.85);
  color: var(--main-text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  z-index: 1000;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Branch list widths */
.pds-dtable--branches .col-name {
  flex: 1 1 300px;
  text-align: left;
}

.pds-dtable--branches .col-grade {
  flex: 1 0 50px;
}

.pds-dtable--branches .col-manager {
  flex: 1 0 100px;
}

.pds-dtable--branches .col-phone {
  flex: 1 0 130px;
}

.pds-dtable--branches .col-date {
  flex: 1 0 100px;
}

.pds-dtable--branches .col-status {
  flex: 1 0 70px;
}

.pds-dtable--branches .col-action {
  flex: 1 0 80px;
}

/* Sub account list widths */
.pds-dtable--subs .col-branch {
  flex: 1 1 200px;
  text-align: left;
}

.pds-dtable--subs .col-id {
  flex: 1 0 120px;
}

.pds-dtable--subs .col-bm-name {
  flex: 1 0 80px;
}

.pds-dtable--subs .col-bm-phone {
  flex: 1 0 120px;
}

.pds-dtable--subs .col-bm-email {
  flex: 1 0 160px;
}

.pds-dtable--subs .col-status {
  flex: 1 0 70px;
}

.pds-dtable--subs .col-action {
  flex: 1 0 80px;
}


/* Branch row accordion (full-width panel like attached UI) */
.pds-branchacc {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  cursor: pointer;
}

.pds-branchacc:hover {
  background: var(--side-menu-hover-color);
}

.pds-branchacc--pending {
  cursor: default;
}

.pds-branchacc>summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.pds-branchacc>summary::-webkit-details-marker {
  display: none;
}

.pds-branchacc>.pds-drow .pds-dcell,
.pds-branchacc>summary.pds-drow .pds-dcell,
.pds-branchacc--pending>.pds-drow .pds-dcell {
  border-bottom: none;
}

.pds-branchacc[open]>summary {
  background: transparent;
}

.pds-branchacc .col-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pds-branchacc[open] .pds-acc__chev {
  transform: rotate(180deg);
}

/* Branch list: row click -> detail, only action opens account */
.pds-branchitem .pds-drow--body {
  cursor: pointer;
}

.pds-branchitem .col-action {
  cursor: default;
}

.pds-dtable--branches .col-grade {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pds-dtable--branches .col-consult {
  flex: 0 0 120px;
  text-align: center;
}

.pds-grade-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.pds-branchitem details.pds-acc--cell {
  display: inline-block;
}

.pds-acc__panel--branch {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin: 0 10px 12px;
}

.pds-accinfo {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.pds-accinfo__col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pds-accinfo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pds-accinfo__k {
  font-size: 16px;
  color: var(--sub-text);
  font-weight: 400;
  flex: 0 0 90px;
}

.pds-accinfo__v {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--main-text);
  font-weight: 400;
  min-width: 0;
  text-align: right;
  flex: 1 1 auto;
}

.pds-accinfo__v--addr {
  white-space: normal;
  word-break: break-word;
}

.pds-mini-btn {
  border: 1px solid var(--green);
  background: rgba(55, 203, 114, 0.1);
  color: var(--green);
  font-weight: 400;
  font-size: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.pds-mini-btn:hover {
  background: var(--green);
  color: var(--darker);
}

.pds-iconbtn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
  cursor: pointer;
  flex: 0 0 auto;
}

.pds-iconbtn:hover {
  background: rgba(255, 255, 255, 0.10);
}

.pds-btn--sm {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 10px;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Empty state actions (avoid inline style) */
.pds-empty__actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive: show card-like rows with labels */
@media (max-width: 860px) {
  .pds-drow--head {
    display: none;
  }

  .pds-drow--body,
  .pds-branchacc>summary.pds-drow {
    flex-wrap: wrap;
    padding: 8px 10px;
  }

  .pds-drow--body .pds-dcell,
  .pds-branchacc>summary.pds-drow .pds-dcell {
    padding: 6px 0;
    border-bottom: none;
    white-space: normal;
    flex: 0 0 50%;
  }

  .pds-drow--body .pds-dcell::before,
  .pds-branchacc>summary.pds-drow .pds-dcell::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--sub-text);
    margin-bottom: 2px;
    font-weight: 400;
  }

  .pds-drow--body .pds-dcell[data-label=""]::before,
  .pds-branchacc>summary.pds-drow .pds-dcell[data-label=""]::before {
    display: none;
  }

  .pds-dtable--branches .col-action,
  .pds-dtable--subs .col-perm,
  .pds-dtable--subs .col-action,
  .pds-dtable--posts .col-action {
    flex: 0 0 100%;
  }

  .pds-accinfo {
    flex-direction: column;
    gap: 12px;
  }

  .pds-accinfo__k {
    flex: 0 0 64px;
  }
}

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

.pds-acc__item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.pds-acc__k {
  font-size: 12px;
  color: var(--sub-text);
  font-weight: 400;
}

.pds-acc__v {
  font-size: 13px;
  color: var(--main-text);
  font-weight: 400;
  text-align: right;
}

.pds-acc__empty {
  font-size: 12px;
  color: var(--sub-text);
  margin-bottom: 10px;
}

.pds-acc__actions {
  display: flex;
  justify-content: flex-start;
}

/* Sidebar bottom logout item */
.pds-snav__section--logout {
  margin-top: 8px;
}

.pds-snav__head--logout {
  cursor: pointer;
}

.pds-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  color: var(--main-text);
  background: rgba(255, 255, 255, 0.06);
  width: 160px;
  text-align: center;
  text-decoration: none;
}

.pds-btn--full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
}

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

.pds-btn--primary:hover {
  background: #2fb362;
  border-color: #2fb362;
}

.owner-button {
  background: var(--owner-personal-color);
  color: var(--text);
}

.owner-button:hover {
  background: #e28b19;
}

.pds-btn--danger {
  background: rgba(239, 68, 68, 0.92);
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--main-text);
}

.pds-btn--danger:hover {
  background: rgba(220, 38, 38, 0.95);
}

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

.pds-cardlink {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  text-decoration: none;
  display: grid;
  gap: 6px;
  color: var(--main-text);
}

.pds-cardlink:hover {
  background: rgba(255, 255, 255, 0.07);
}

.pds-cardlink--disabled {
  opacity: 0.55;
}

.pds-cardlink__title {
  font-weight: 400;
}

.pds-cardlink__desc {
  font-size: 12px;
  color: var(--sub-text);
}

.pds-tablewrap {
  overflow: hidden;
}

.pds-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
}

.pds-table th,
.pds-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--main-text);
}

.pds-table th {
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--sub-text);
  text-align: left;
}

.pds-ta-right {
  text-align: right;
}

.pds-empty {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--sub-text);
  font-size: 13px;
}

.pds-form {
  display: grid;
  gap: 40px;
  margin: 24px 0;
}

.pds-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pds-field {
  display: grid;
  gap: 6px;
}

.pds-label {
  font-size: 14px;
  color: var(--sub-text);
  font-weight: 400;
}

.pds-label-required {
  color: var(--green);
  font-weight: 400;
  margin-left: 2px;
}

.pds-input,
.pds-select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
  outline: none;
  font-size: 16px;
}

.pds-input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}

.pds-input[type="file"]::-webkit-file-upload-button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--main-text);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  margin-right: 10px;
}

textarea.pds-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* 숫자 입력 필드 - 스핀 버튼 숨김 */
.pds-input--number {
  -moz-appearance: textfield;
  appearance: textfield;
}

.pds-input--number::-webkit-outer-spin-button,
.pds-input--number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.pds-input:focus,
.pds-select:focus {
  border-color: var(--accept-button-color);
}


.pds-select option {
  color: var(--darker);
}

.pds-select option:disabled,
.pds-select option.pds-option-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 커스텀 셀렉터 (inquiry-type-menu 스타일) */
.pds-selector {
  position: relative;
  width: 100%;
}

.pds-selector-btn {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  color: var(--main-text);
  cursor: pointer;
  display: flex;
}

.pds-selector-btn--small {
  padding: 8px 10px;
  font-size: 14px;
  min-width: 100px;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  text-align: left;
}

.pds-selector-btn:hover {
  border-color: var(--green);
}

.pds-selector-btn--disabled,
.pds-selector-btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.pds-selector-btn--disabled:hover,
.pds-selector-btn:disabled:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.pds-selector-name {
  flex: 1;
  text-align: left;
  color: var(--sub-text);
}

.pds-selector-btn.selected .pds-selector-name {
  color: var(--main-text);
  font-weight: 400;
}

.pds-selector-btn svg {
  color: var(--sub-text);
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}

.pds-selector-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}

.pds-selector-menu-item {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--main-text);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
  font-weight: 400;
}

.pds-selector-menu-item:last-child {
  border-bottom: none;
}

.pds-selector-menu-item:hover:not(:disabled) {
  /*background: rgba(79, 70, 229, 0.1);
  color: var(--primary);*/
}

.pds-selector-menu-item--disabled,
.pds-selector-menu-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pds-selector-disabled-text {
  font-weight: 400;
}

.pds-help {
  font-size: 12px;
  color: var(--sub-text);
}

.pds-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pds-imgu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pds-imgu__preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--border);
  background: var(--darker);
  border-radius: 12px;
  padding: 10px;
}

.pds-imgu__img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.pds-input--file {
  padding: 10px 12px;
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pds-drag-drop {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--darker);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pds-drag-drop:hover {
  border-color: var(--green);
  background: rgba(55, 203, 114, 0.05);
}

.pds-drag-drop--active {
  border-color: var(--green);
  background: rgba(55, 203, 114, 0.1);
}

.pds-drag-drop__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pds-drag-drop__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pds-drag-drop__text strong {
  font-size: 14px;
  font-weight: 400;
  color: var(--main-text);
}

.pds-drag-drop__text span {
  font-size: 12px;
  color: var(--sub-text);
}

.pds-image-error {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 400;
  animation: slideDown 0.3s ease-out;
}

.pds-icon-preview-item {
  position: relative;
  cursor: grab;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  user-select: none;
}

.pds-icon-preview-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pds-icon-preview-item:active {
  cursor: grabbing;
}

.pds-icon-preview-item.dragging {
  opacity: 0.5;
  transform: scale(0.95);
  cursor: grabbing;
}

.pds-icon-preview-item.drag-over {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--green);
}

.pds-icon-preview-item .pds-drag-handle {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0 0 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.pds-icon-preview-item .pds-drag-handle svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0.8;
}

.pds-icon-preview-order {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.pds-icon-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: 2px solid var(--darker);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  z-index: 10;
  transition: all 0.2s;
}

.pds-icon-preview-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* 첨부파일 아이콘 (PDF/문서) */
.pds-attachment-icon {
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pds-attachment-filename {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.pds-svclist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pds-svcrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pds-svcrow .pds-selector {
  flex: 0 0 140px;
  min-width: 100px;
  max-width: 140px;
}

.pds-svcrow .pds-input[name="service_name[]"] {
  flex: 2 1 0;
  min-width: 150px;
}

.pds-svcrow .pds-input[name="service_price[]"] {
  flex: 1 1 0;
  min-width: 100px;
  max-width: 150px;
}

.pds-svcrow__del {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--darker);
  color: var(--reject-button-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 24px;
}

.pds-svcrow__del:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Toggle Switch */
.pds-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.pds-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pds-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
}

.pds-toggle__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--main-text);
  transition: 0.3s;
  border-radius: 50%;
}

.pds-toggle input:checked+.pds-toggle__slider {
  background-color: var(--green);
}

.pds-toggle input:checked+.pds-toggle__slider:before {
  transform: translateX(20px);
}

/* No Addservice Message */
.pds-noaddservice-msg {
  font-size: 12px;
  color: var(--green);
  padding: 6px 10px;
  border-radius: 6px;
  animation: fadeIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pds-noaddservice-msg img {
  width: 60px;
  height: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pds-form__actions {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.pds-readonly {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.20);
  color: var(--main-text);
  opacity: 0.6;
}

.pds-readonly a {
  color: var(--main-text);
}

.pds-readonly--clickable {
  cursor: pointer;
  transition: background-color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pds-readonly--clickable:hover {
  background: rgba(0, 0, 0, 0.30);
  font-weight: 400;
}

/* 면죄부 UI */
.pds-immunity-default {
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--main-text);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 400;
}

.pds-immunity-default--disabled {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.20);
  cursor: not-allowed;
  opacity: 0.5;
}

.pds-immunity-default--disabled:hover {
  background: rgba(0, 0, 0, 0.20);
}

.pds-immunity-custom-wrap {
  margin-top: 12px;
}

.pds-immunity-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.pds-btn-immunity-add {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--green);
  background: rgba(55, 203, 114, 0.1);
  color: var(--green);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  padding: 12px;
}

.pds-btn-immunity-add:hover {
  background: var(--green);
  color: var(--white-color);
}

.pds-help {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pds-help.preview {
  justify-content: end;
}

.pds-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pds-btn-preview:hover {
  opacity: 0.8;
}

/*
.pds-btn--save {
  background: #37CB72;
  border-color: #37CB72;
  color: #fff;
}

.pds-btn--save:hover {
  background: #2fb362;
  border-color: #2fb362;
}*/

.pds-checkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pds-check {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--darker);
  color: var(--main-text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.pds-check:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pds-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--darker);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.pds-check input[type="checkbox"]:hover {
  border-color: var(--green);
  background: rgba(55, 203, 114, 0.1);
}

.pds-check input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}

.pds-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pds-check__id {
  margin-left: auto;
  font-size: 11px;
  color: var(--sub-text);
}

.pds-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--darker);
  color: var(--main-text);
  justify-content: center;
  width: 50px;
}

.pds-badge--ok {
  border-color: var(--accept-button-color);
  color: var(--accept-button-color);
}

.pds-badge--warning {
  border-color: var(--warning-button-color);
  color: var(--warning-button-color);
}

.pds-badge--danger {
  border-color: var(--reject-button-color);
  color: var(--reject-button-color);
}

.pds-badge--muted {
  border-color: var(--sub-text);
}

.pds-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.pds-small {
  font-size: 12px;
}

.pds-toast {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--main-text);
}

.pds-toast--error {
  border-color: rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.10);
}

.pds-toastwrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.pds-toastwrap .pds-toast {
  width: min(520px, 100%);
}

.pds-notify {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.pds-notify__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.pds-notify__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--side-menu-hover-color);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 16px;
  color: var(--main-text);
}

.pds-notify__title {
  font-weight: 400;
  margin-bottom: 8px;
}

.pds-notify__msg {
  font-size: 14px;
  color: var(--main-text);
}

.pds-notify__actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

/* Questions Dropdown (문의 내역 드롭다운) */
.pds-questions-icon-wrapper {
  position: relative;
}

.pds-questions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 400px;
  max-width: min(90vw, 520px);
  max-height: calc(100vh - 120px);
  background: var(--pop-darker);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--main-text);
  overflow: hidden;
}

.pds-questions-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pds-questions-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.pds-questions-dropdown__header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.pds-questions-dropdown__title {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  color: var(--main-text);
}

.pds-questions-dropdown__close {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--sub-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 4px;
  width: 24px;
  height: 24px;
}

.pds-questions-dropdown__close:hover {
  color: var(--main-text);
  background: rgba(255, 255, 255, 0.1);
}

.pds-questions-dropdown__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 0;
  max-height: 400px;
}

.pds-questions-dropdown__loading,
.pds-questions-dropdown__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--sub-text);
  font-size: 14px;
}

.pds-questions-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pds-questions-dropdown__item {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #1e1e1f;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.pds-questions-dropdown__item--accordion .pds-questions-dropdown__item-main {
  cursor: pointer;
  user-select: none;
}

.pds-questions-dropdown__item--accordion .pds-questions-dropdown__item-main:hover {
  opacity: 0.8;
}

.pds-questions-dropdown__item--accordion.is-open {
  background: rgba(255, 255, 255, 0.06);
}

.pds-questions-dropdown__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pds-questions-dropdown__item-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.pds-questions-dropdown__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sub-text);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.pds-questions-dropdown__arrow.is-open {
  transform: rotate(180deg);
}

.pds-questions-dropdown__arrow svg {
  width: 20px;
  height: 20px;
}

.pds-questions-dropdown__status {
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  background: var(--darker);
}

.pds-questions-dropdown__item--answered .pds-questions-dropdown__status {
  color: var(--accept-button-color);
  border: 1px solid var(--accept-button-color);
}

.pds-questions-dropdown__item--waiting .pds-questions-dropdown__status {
  border: 1px solid var(--border);
  color: var(--main-text);
  opacity: 0.7;
}

.pds-questions-dropdown__date {
  font-size: 12px;
  color: var(--sub-text);
}

.pds-questions-dropdown__content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--main-text);
  word-break: break-word;
}

.pds-questions-dropdown__answer {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
  }
}

.pds-questions-dropdown__answer-header {
  margin-bottom: 10px;
}

.pds-questions-dropdown__answer-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pds-questions-dropdown__answer-line {
  width: 2px;
  height: 14px;
  background: var(--primary);
  border-radius: 1px;
}

.pds-questions-dropdown__answer-title span {
  font-size: 14px;
  font-weight: 400;
  color: var(--main-text);
}

.pds-questions-dropdown__answer-content {
  padding-left: 10px;
}

.pds-questions-dropdown__answer-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--main-text);
  margin-bottom: 6px;
  word-break: break-word;
}

.pds-questions-dropdown__answer-date {
  font-size: 11px;
  color: var(--sub-text);
}

.pds-questions-dropdown__pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.pds-questions-dropdown__pagination-item {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--sub-text);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pds-questions-dropdown__pagination-item:hover {
  background: #2b2b2b;
  color: var(--main-text);
  border-color: var(--primary);
}

.pds-questions-dropdown__pagination-item--active {
  background: #1e1e1f;
  color: var(--main-text);
}

.pds-questions-dropdown__pagination-item--active:hover {
  background: #2b2b2b;
}

.pds-questions-dropdown__view-all-btn {
  min-width: auto;
  height: 32px;
  background: transparent;
  border-radius: 6px;
  color: var(--sub-text);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.pds-questions-dropdown__view-all-btn:hover {
  background: #2b2b2b;
  color: var(--main-text);
  border-color: var(--primary);
}

html[data-theme="light"] .pds-questions-dropdown__view-all-btn {
  border-color: var(--border-gray);
}

html[data-theme="light"] .pds-questions-dropdown__view-all-btn:hover {
  background: var(--side-hover);
  border-color: var(--accept-button-color);
}

.pds-questions-dropdown__footer {
  padding: 16px 20px;
  display: flex;
  justify-content: center;
}

.pds-questions-dropdown__create-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
}

/* Questions Dropdown Scrollbar */
.pds-questions-dropdown__body::-webkit-scrollbar {
  width: 6px;
}

.pds-questions-dropdown__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.pds-questions-dropdown__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.pds-questions-dropdown__body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Notifications Dropdown (알림 센터) */
.pds-notifications-icon-wrapper {
  position: relative;
}

.pds-notifications-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0px;
  background: var(--reject-button-color);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.pds-notice-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--reject-button-color);
  border-radius: 50%;
  z-index: 1;
}

.pds-notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 400px;
  max-width: min(90vw, 520px);
  max-height: calc(100vh - 120px);
  background: var(--pop-darker);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--main-text);
  overflow: hidden;
}

.pds-notifications-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pds-notifications-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.pds-notifications-dropdown__header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.pds-notifications-dropdown__title {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  color: var(--main-text);
}

.pds-notifications-dropdown__close {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--sub-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 4px;
  width: 24px;
  height: 24px;
}

.pds-notifications-dropdown__close:hover {
  color: var(--main-text);
  background: rgba(255, 255, 255, 0.1);
}

.pds-notifications-dropdown__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 0;
  max-height: 400px;
}

.pds-notifications-dropdown__loading,
.pds-notifications-dropdown__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--sub-text);
  font-size: 14px;
}

.pds-notifications-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pds-notifications-dropdown__item {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #1e1e1f;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pds-notifications-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/*.pds-notifications-dropdown__item--unread {
  background: rgba(70, 44, 197, 0.1);
  border-color: rgba(70, 44, 197, 0.3);
}*/

.pds-notifications-dropdown__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pds-notifications-dropdown__item-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.pds-notifications-dropdown__type {
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  color: var(--accept-button-color);
  border: 1px solid var(--accept-button-color);
}

.pds-notifications-dropdown__date,
.pds-notifications-dropdown__time-ago {
  font-size: 12px;
  color: var(--sub-text);
}

.pds-notifications-dropdown__unread-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  flex-shrink: 0;
}

.pds-notifications-dropdown__link-icon {
  color: var(--sub-text);
  flex-shrink: 0;
}

.pds-notifications-dropdown__content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--main-text);
  word-break: break-word;
}

.pds-notifications-dropdown__pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.pds-notifications-dropdown__pagination-item {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--sub-text);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pds-notifications-dropdown__pagination-item:hover {
  background: #2b2b2b;
  color: var(--main-text);
}

.pds-notifications-dropdown__pagination-item--active {
  background: #1e1e1f;
  color: var(--main-text);
}

.pds-notifications-dropdown__pagination-item--active:hover {
  background: #2b2b2b;
}

.pds-notifications-dropdown__view-all-btn {
  min-width: auto;
  height: 32px;
  background: transparent;
  border-radius: 6px;
  color: var(--sub-text);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.pds-notifications-dropdown__view-all-btn:hover {
  background: #2b2b2b;
  color: var(--main-text);
}

.pds-notifications-dropdown__footer {
  padding: 16px 20px;
  display: flex;
  justify-content: center;
}

.pds-notifications-dropdown__read-all-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
}

/* Notifications Dropdown Scrollbar */
.pds-notifications-dropdown__body::-webkit-scrollbar {
  width: 6px;
}

.pds-notifications-dropdown__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.pds-notifications-dropdown__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.pds-notifications-dropdown__body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

html[data-theme="light"] .pds-notifications-dropdown {
  background: var(--darker);
}

html[data-theme="light"] .pds-notifications-dropdown__item {
  background: var(--gray-50);
}

html[data-theme="light"] .pds-notifications-dropdown__pagination-item--active {
  background: var(--background-gray);
}

html[data-theme="light"] .pds-notifications-dropdown__pagination-item:hover {
  background: var(--side-hover);
}

html[data-theme="light"] .pds-notifications-dropdown__view-all-btn {
  border-color: var(--border-gray);
}

html[data-theme="light"] .pds-notifications-dropdown__view-all-btn:hover {
  background: var(--side-hover);
}

/* Questions (문의 센터) */
.pds-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pds-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--sub-text);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pds-tab:hover {
  color: var(--main-text);
}

.pds-tab--active {
  color: var(--main-text);
  border-bottom-color: var(--primary);
}

.pds-questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 문의 필터 버튼 */
.pds-qfilter {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.pds-qfilter__btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--sub-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pds-qfilter__btn:hover {
  color: var(--main-text);
  border-color: var(--sub-text);
}

.pds-qfilter__btn--active {
  background: rgba(86, 162, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.pds-qfilter__btn--active:hover {
  border-color: var(--primary);
}

/* 문의 카드 래퍼 */
.pds-questions-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pds-qcard {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #1e1e1f;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.2s ease;
}

.pds-qcard__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.pds-qcard:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pds-qcard__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pds-qcard__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pds-qcard__badge {
  font-size: 11px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.pds-qcard__badge--waiting {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--sub-text);
}

.pds-qcard__badge--answered {
  background: rgba(86, 162, 255, 0.15);
  border: 1px solid rgba(86, 162, 255, 0.3);
  color: var(--primary);
}

.pds-qcard__date-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.pds-notice-unread-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  flex-shrink: 0;
}

.pds-qcard__date {
  font-size: 12px;
  color: var(--sub-text);
}

.pds-qcard__title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pds-qcard__title {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-text);
  line-height: 1.4;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 60px);
}

.pds-notice-important-badge {
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--reject-button-color);
  color: var(--reject-button-color);
  flex-shrink: 0;
}

.pds-qcard__category {
  color: var(--sub-text);
  font-weight: 400;
}

.pds-qcard__preview {
  font-size: 14px;
  color: var(--sub-text);
  line-height: 1.5;
  white-space: pre-line;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.pds-qcard__right {
  flex-shrink: 0;
  cursor: pointer;
}

.pds-btn--small {
  padding: 8px 16px;
  font-size: 13px;
}

.pds-question-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pds-question-detail__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pds-question-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pds-question-detail__date {
  font-size: 13px;
  color: var(--sub-text);
}

.pds-question-detail__category {
  font-size: 13px;
  color: var(--sub-text);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: inline-block;
  width: fit-content;
}

.pds-question-detail__title {
  font-size: 20px;
  font-weight: 400;
  color: var(--main-text);
  line-height: 1.4;
}

.pds-question-detail__content,
.pds-question-detail__answer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pds-question-detail__label {
  font-size: 14px;
  font-weight: 400;
  color: var(--main-text);
}

.pds-question-detail__text {
  font-size: 14px;
  color: var(--main-text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.pds-question-detail__attachment {
  margin-top: 8px;
}

.pds-question-detail__answer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pds-question-detail__answer-date {
  font-size: 12px;
  color: var(--sub-text);
  margin-top: 8px;
}

/* 문의 카드 상세 섹션 (펼친 상태) */
.pds-qcard__detail {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.3s ease-out;
}

/* 내 문의 전체 표시 */
.pds-qcard__question-full {
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.pds-qcard__question-header {
  margin-bottom: 12px;
}

.pds-qcard__question-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--main-text);
}

.pds-qcard__question-line {
  width: 3px;
  height: 16px;
  background: var(--sub-text);
  border-radius: 2px;
}

.pds-qcard__question-content {
  padding-left: 13px;
}

.pds-qcard__question-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--main-text);
  white-space: pre-line;
}

/* 문의 첨부파일 */
.pds-qcard__attachments {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.pds-qcard__attachments-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sub-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pds-qcard__attachments-label i {
  color: var(--primary);
}

.pds-qcard__attachments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pds-qcard__attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
  max-width: fit-content;
  word-break: break-all;
}

.pds-qcard__attachment-link:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
}

.pds-qcard__attachment-link i {
  flex-shrink: 0;
}

/* 문의 카드 아코디언 답변 섹션 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pds-qcard__answer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pds-qcard__answer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pds-qcard__answer-line {
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.pds-qcard__answer-title span {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-text);
}

.pds-qcard__answer-content {
  padding-left: 16px;
}

.pds-qcard__answer-text {
  font-size: 14px;
  color: var(--main-text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 12px;
}

.pds-qcard__answer-date {
  font-size: 12px;
  color: var(--sub-text);
  margin-top: 12px;
}

.pds-qcard--open {
  background: rgba(255, 255, 255, 0.06);
}

.pds-qcard--clickable {
  cursor: pointer;
}

/* 문의 카드 아코디언 답변 섹션 */
.pds-qcard__answer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pds-qcard__answer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pds-qcard__answer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pds-qcard__answer-line {
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.pds-qcard__answer-title span {
  font-size: 16px;
  font-weight: 400;
  color: var(--accept-button-color);
}

.pds-qcard__answer-content {
  padding-left: 16px;
}

.pds-qcard__answer-text {
  font-size: 14px;
  color: var(--main-text);
  line-height: 1.2;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 12px;
}

.pds-qcard__answer-date {
  font-size: 12px;
  color: var(--sub-text);
  margin-top: 12px;
}

.pds-qcard--open {
  background: rgba(255, 255, 255, 0.06);
}

.pds-addr {
  padding: 12px 0;
  display: grid;
  gap: 10px;
}

.pds-addr--toggle .pds-addr__view {
  display: block;
}

.pds-addr--toggle .pds-addr__edit {
  display: none;
}

.pds-addr--toggle.is-editing .pds-addr__view {
  display: none;
}

.pds-addr--toggle.is-editing .pds-addr__edit {
  display: grid;
  gap: 10px;
}

.pds-addr__viewrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pds-addr__viewrow .pds-input {
  flex: 1 1 auto;
  min-width: 0;
}

.pds-addr__editactions {
  display: flex;
  justify-content: flex-end;
}

.pds-addr__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.pds-addr__btn {
  border: 1px solid var(--sub-text);
  background: var(--sub-text);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.pds-mt12 {
  margin-top: 12px;
}

.pds-link {
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 400;
}

.pds-link:hover {
  text-decoration: underline;
}

.pds-muted {
  color: var(--sub-text);
}

.pds-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pds-doc {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #1e1e1f;
  padding: 14px;
}

.pds-doc__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pds-doc__title {
  font-weight: 400;
  color: var(--main-text);
}

.pds-doc__meta {
  font-size: 12px;
}

.pds-doc__form {
  display: grid;
  gap: 10px;
}

.pds-doc__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pds-docs-wrap {
  position: relative;
}

.pds-apply-wrap {
  position: relative;
}

.pds-posts-wrap {
  position: relative;
}

.pds-loading {
  position: fixed;
  inset: 0;
  border-radius: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  z-index: 3;
}

/* HTMX indicator */
.htmx-indicator.htmx-request {
  display: flex;
}

.pds-loading__inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-weight: 400;
}

.pds-loading__text {
  font-size: 12px;
  font-weight: 400;
  color: var(--main-text);
}

.pds-file-upload {
  position: relative;
}

.pds-file-loading {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 8px;
  backdrop-filter: blur(4px);
}

.pds-file-loading.htmx-request {
  display: flex;
}

.pds-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.92);
  animation: pds-spin 0.9s linear infinite;
}

@keyframes pds-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.pds-doc__form.htmx-request {
  opacity: 0.65;
  pointer-events: none;
}

.pds-nav__icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--main-text);
  font-size: 12px;
  font-weight: 400;
  flex: 0 0 auto;
}

.pds-nav__text {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 920px) {
  .pds-shell {
    grid-template-columns: 1fr;
  }

  .pds-side {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .pds-grid {
    grid-template-columns: 1fr;
  }

  .pds-grid2 {
    grid-template-columns: 1fr;
  }

  .pds-checkgrid {
    grid-template-columns: 1fr;
  }

  .pds-docs {
    grid-template-columns: 1fr;
  }
}

/* 게시물 등록/수정 완료 모달 스타일 */
.consult-success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 40px;
  text-align: center;
  min-height: 240px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(55, 203, 114, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--green);
  font-weight: bold;
  animation: successPulse 0.6s ease-out;
  margin-bottom: 24px;
}

.success-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--main-text);
  font-weight: 400;
}

.success-text strong {
  font-size: 24px;
  color: var(--green);
  line-height: 1.8;
  display: block;
  margin-bottom: 12px;
}

.success-text-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--main-text);
  line-height: 1.6;
}

.success-text-number {
  color: var(--green);
}

.success-text-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--sub-text);
}

@keyframes successPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 문의 폼 로딩 스타일 */
.questions-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.questions-loading-spinner {
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.pds-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================
   비밀번호 변경 모달 (최초 로그인)
   ========================================== */

.pds-pw-change-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.pds-pw-change-modal {
  width: 100%;
  max-width: 440px;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.pds-pw-change-modal__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(86, 162, 255, 0.08) 0%, transparent 100%);
}

.pds-pw-change-modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--main-text);
  margin: 0 0 8px 0;
}

.pds-pw-change-modal__title svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.pds-pw-change-modal__desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.pds-pw-change-modal__form {
  padding: 24px;
}

.pds-pw-change-modal__field {
  margin-bottom: 20px;
}

.pds-pw-change-modal__field:last-of-type {
  margin-bottom: 16px;
}

.pds-pw-change-modal__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--main-text);
  margin-bottom: 8px;
}

.pds-pw-change-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--main-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pds-pw-change-modal__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(86, 162, 255, 0.15);
}

.pds-pw-change-modal__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.pds-pw-change-modal__strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.pds-pw-change-modal__strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.pds-pw-change-modal__strength-fill.is-weak {
  background: #ef4444;
}

.pds-pw-change-modal__strength-fill.is-medium {
  background: #f59e0b;
}

.pds-pw-change-modal__strength-fill.is-strong {
  background: var(--green);
}

.pds-pw-change-modal__strength-list {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.pds-pw-change-modal__strength-list li {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pds-pw-change-modal__strength-list li .pw-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 12px;
}

.pds-pw-change-modal__strength-list li.is-valid {
  color: var(--green);
}

.pds-pw-change-modal__strength-list li.is-valid .pw-check-icon {
  color: var(--green);
}

.pds-pw-change-modal__match {
  margin-top: 8px;
  margin-left: 3px;
  font-size: 12px;
  min-height: 18px;
}

.pds-pw-change-modal__match.is-match {
  color: var(--green);
}

.pds-pw-change-modal__match.is-mismatch {
  color: #ef4444;
}

.pds-pw-change-modal__error {
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 16px;
}

.pds-pw-change-modal__actions {
  padding-top: 8px;
  display: flex;
  gap: 8px;
}

.pds-pw-change-modal__submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
}

.pds-pw-change-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}




.no-cursor {
  cursor: default;
}

/* Password toggle button (show/hide) */
.input-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-pw-wrap .input {
  flex: 1;
  padding-right: 44px;
}

.pw-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--sub-text, #677687);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pw-toggle-btn:hover {
  opacity: 1;
}

.pw-toggle-btn:focus {
  outline: none;
}

.pw-eye-icon {
  width: 20px;
  height: 20px;
}

/* Password modal field toggle */
.pds-pw-change-modal__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pds-pw-change-modal__input-wrap .pds-pw-change-modal__input {
  flex: 1;
  padding-right: 44px;
}

.pds-pw-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--sub-text, #677687);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pds-pw-toggle-btn:hover {
  opacity: 1;
}

.pds-pw-toggle-btn:focus {
  outline: none;
}

/* Same password warning */
.pds-pw-change-modal__same-warning {
  color: #ef4444;
  margin-top: 8px;
  font-size: 12px;
}

/* Caps Lock warning */
.pds-pw-change-modal__capslock-warning {
  color: #f59e0b;
  margin-top: -30px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Password validation area */
.pds-pw-validation-area {
  margin-top: -30px;
}