/**
 * [한글 주석] 스킨케어 고객관리 시스템 전용 독립 스타일입니다.
 * - 두피 CSS와도, 공용 uc-system.css와도 직접 공유하지 않는 독립 파일입니다.
 * - 필요한 관리자 프레임/폼/상단바 규칙을 자체 포함합니다.
 * 위치: /plugin/assets/css/skincare-care.css
 */

/* ── 독립 공통 변수/프레임 ── */
.zyss-system-shell.uc-admin {
  --uc-primary: #ffffff;
  --uc-surface: rgba(255, 255, 255, 0.03);
  --uc-surface-strong: rgba(255, 255, 255, 0.06);
  --uc-border: rgba(255, 255, 255, 0.08);
  --uc-border-strong: rgba(255, 255, 255, 0.15);
  --uc-text: rgba(255, 255, 255, 0.95);
  --uc-muted: rgba(255, 255, 255, 0.58);
  --uc-radius: 12px;
  --uc-radius-sm: 8px;
  background: #000000;
  color: var(--uc-text);
  font-family: "Pretendard", sans-serif;
  line-height: 1.5;

  --sk-accent:        #ffffff;
  --sk-accent-soft:   rgba(255, 255, 255, 0.1);
  --sk-accent-rgb:    255, 255, 255;
}

.zyss-system-shell .uc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  white-space: nowrap;
  text-transform: uppercase;
}

.zyss-system-shell .uc-brand__panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.zyss-system-shell .uc-brand__mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  font-size: 0.88rem;
}

.zyss-system-shell .uc-brand__mark--home {
  font-size: 1.25rem;
  line-height: 1;
}

.zyss-system-shell .uc-brand__mark--home-link {
  text-decoration: none;
}

.zyss-system-shell .uc-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface);
  color: var(--uc-text);
}

.zyss-system-shell .uc-icon-button:hover {
  border-color: var(--uc-primary);
  color: var(--uc-primary);
}

.zyss-system-shell [data-sidebar-toggle] {
  transition: transform 0.22s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  font-size: 1.1rem;
  font-weight: 700;
}

.zyss-system-shell [data-sidebar-toggle][aria-expanded="false"] {
  transform: scaleX(-1);
}

.zyss-system-shell .uc-field {
  display: grid;
  gap: 0.35rem;
}

.zyss-system-shell .uc-field__label {
  color: var(--uc-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.zyss-system-shell .uc-field__control {
  width: 100%;
  min-height: 38px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface);
  color: var(--uc-text);
}

.zyss-system-shell textarea.uc-field__control {
  min-height: 90px;
  resize: vertical;
}

.zyss-system-shell select.uc-field__control,
.zyss-system-shell input.uc-field__control {
  accent-color: var(--uc-primary);
}

.zyss-system-shell.uc-admin .uc-admin__topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--uc-border);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}

.zyss-system-shell.uc-admin .uc-admin__brand-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zyss-system-shell.uc-admin .uc-admin__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

.zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__layout {
  grid-template-columns: minmax(0, 1fr);
}

.zyss-system-shell.uc-admin .uc-admin__sidebar {
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--uc-border);
  background: var(--uc-surface);
}

.zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__sidebar {
  display: none;
}

.zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed .uc-admin__sidebar {
  border-right: 0;
}

.zyss-system-shell.uc-admin .uc-admin-menu {
  position: sticky;
  top: 56px;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.zyss-system-shell.uc-admin .uc-admin-menu__item {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--uc-muted);
  text-align: left;
}

.zyss-system-shell.uc-admin .uc-admin-menu__item:hover,
.zyss-system-shell.uc-admin .uc-admin-menu__item.is-active {
  border-color: var(--uc-border);
  background: var(--uc-surface-strong);
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-admin__main {
  min-width: 0;
  padding: 1.25rem;
}

.zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__main {
  width: 100%;
}

.zyss-system-shell.uc-admin.zyss-system-shell--skincare .uc-admin__layout {
  grid-template-columns: minmax(0, 1fr);
}

.zyss-system-shell.uc-admin.zyss-system-shell--skincare .uc-admin__sidebar {
  display: none;
}

.zyss-system-shell.uc-admin .uc-admin-panel {
  display: none;
}

.zyss-system-shell.uc-admin .uc-admin-panel.is-active {
  display: block;
}

@media (max-width: 900px) {
  .zyss-system-shell.uc-admin .uc-admin__layout {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-admin__sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--uc-border);
  }

  .zyss-system-shell.uc-admin .uc-admin-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .zyss-system-shell.uc-admin .uc-admin-menu {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-admin__main {
    padding: 0.75rem;
  }
}

/* ── 패널 래퍼 ── */
.zyss-system-shell.uc-admin .sc-panel {
  padding: 0 !important;
  overflow: hidden;
}

/* ── 2단 레이아웃 ── */
.zyss-system-shell.uc-admin .sc-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 620px;
  height: 100%;
  transition: grid-template-columns 0.22s ease;
}

/* ── 좌측 내비 ── */
.zyss-system-shell.uc-admin .sc-nav {
  background: var(--uc-surface);
  border-right: 1px solid var(--uc-border);
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.18s ease, padding 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.zyss-system-shell.uc-admin .sc-main {
  min-width: 0;
}

.zyss-system-shell.uc-admin .sc-layout.is-nav-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.zyss-system-shell.uc-admin .sc-layout.is-nav-collapsed .sc-nav {
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border-right-color: transparent;
  transform: translateX(-12px);
}

.zyss-system-shell.uc-admin .sc-nav__brand {
  padding: 20px 16px 18px;
  border-bottom: 1px solid var(--uc-border);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zyss-system-shell.uc-admin .sc-nav__brand-icon {
  font-size: 1.1rem;
  filter: grayscale(0.2) brightness(1.2);
}

.zyss-system-shell.uc-admin .sc-nav__brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-nav__item {
  display: block;
  width: calc(100% - 16px);
  margin: 0 8px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--uc-radius-sm);
  background: transparent;
  color: var(--uc-muted);
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.zyss-system-shell.uc-admin .sc-nav__item:hover {
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  border-color: var(--uc-border);
}

.zyss-system-shell.uc-admin .sc-nav__item.sc-active {
  background: #111111;
  color: var(--uc-text);
  border-color: var(--uc-border-strong);
  font-weight: 600;
}

.zyss-system-shell.uc-admin .sc-nav__group {
  margin: 0 8px;
}

.zyss-system-shell.uc-admin .sc-nav__item--toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
}

.zyss-system-shell.uc-admin .sc-nav__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.9rem;
  color: var(--uc-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.zyss-system-shell.uc-admin .sc-nav__group.is-open > .sc-nav__item--toggle .sc-nav__caret {
  transform: rotate(90deg);
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-nav__submenu {
  display: grid;
  gap: 4px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 10px;
  transition: max-height 0.24s ease, opacity 0.18s ease, margin-top 0.18s ease;
}

.zyss-system-shell.uc-admin .sc-nav__group.is-open > .sc-nav__submenu {
  max-height: 180px;
  margin-top: 6px;
  opacity: 1;
}

.zyss-system-shell.uc-admin .sc-nav__subitem {
  display: block;
  width: calc(100% - 8px);
  margin: 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--uc-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--uc-muted);
  font-size: 0.83rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.zyss-system-shell.uc-admin .sc-nav__subitem:hover {
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  border-color: var(--uc-border);
}

.zyss-system-shell.uc-admin .sc-nav__subitem.sc-active {
  background: #111111;
  color: var(--uc-text);
  border-color: var(--uc-border-strong);
  font-weight: 600;
}

/* ── 우측 메인 ── */
.zyss-system-shell.uc-admin .sc-main {
  padding: 1.25rem;
  min-width: 0;
  overflow-y: auto;
}

/* ── 섹션 표시 제어 ── */
.zyss-system-shell.uc-admin .sc-section {
  display: none;
}

.zyss-system-shell.uc-admin .sc-section.sc-active {
  display: block;
}

/* ── 섹션 헤더 ── */
.zyss-system-shell.uc-admin .sc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.zyss-system-shell.uc-admin .sc-section-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--uc-text);
}

/* ── 스탯 카드 그리드 ── */
.zyss-system-shell.uc-admin .sc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.zyss-system-shell.uc-admin .sc-stat-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-sm);
}

.zyss-system-shell.uc-admin .sc-stat-card__label {
  font-size: 0.82rem;
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-stat-card__value--vip {
  color: var(--sk-accent);
}

/* ── 카드 ── */
.zyss-system-shell.uc-admin .sc-card {
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  padding: 1rem;
  box-shadow: var(--uc-shadow-sm);
}

.zyss-system-shell.uc-admin .sc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.zyss-system-shell.uc-admin .sc-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--uc-text);
}

/* ── 버튼 ── */
.zyss-system-shell.uc-admin .sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.zyss-system-shell.uc-admin .sc-btn--primary {
  background: #111111;
  border-color: var(--uc-border-strong);
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-btn--primary:hover {
  background: #000000;
  border-color: var(--sk-accent);
}

.zyss-system-shell.uc-admin .sc-btn--secondary {
  background: var(--uc-surface-strong);
  border-color: var(--uc-border);
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-btn--secondary:hover {
  border-color: var(--uc-border-strong);
}

.zyss-system-shell.uc-admin .sc-btn--danger {
  background: #111111;
  border-color: var(--uc-border-strong);
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-btn--danger:hover {
  background: #000000;
  border-color: var(--uc-border-strong);
}

.zyss-system-shell.uc-admin .sc-btn--sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.zyss-system-shell.uc-admin .sc-inline-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── 폼 필드 ── */
.zyss-system-shell.uc-admin .sc-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s;
}

.zyss-system-shell.uc-admin .sc-field:focus {
  outline: none;
  border-color: var(--sk-accent);
}

.zyss-system-shell.uc-admin .sc-field--sm {
  width: auto;
  min-width: 120px;
}

.zyss-system-shell.uc-admin .sc-field[rows] {
  resize: vertical;
}

/* ── 라벨 ── */
.zyss-system-shell.uc-admin .sc-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-label--wide {
  grid-column: 1 / -1;
}

.zyss-system-shell.uc-admin .sc-field--file {
  padding: 0.45rem 0.6rem;
  line-height: 1.4;
}

.zyss-system-shell.uc-admin .sc-upload-help {
  margin: 0;
  font-size: 0.78rem;
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.zyss-system-shell.uc-admin .sc-upload-preview[hidden] {
  display: none !important;
}

.zyss-system-shell.uc-admin .sc-upload-preview__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.zyss-system-shell.uc-admin .sc-upload-preview__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.zyss-system-shell.uc-admin .sc-upload-preview__item figcaption {
  overflow: hidden;
  padding: 6px 8px;
  color: var(--uc-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 폼 그리드 ── */
.zyss-system-shell.uc-admin .sc-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.zyss-system-shell.uc-admin .sc-form-grid--row {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  align-items: end;
}

/* ── 검색 바 ── */
.zyss-system-shell.uc-admin .sc-search-bar {
  margin-bottom: 1rem;
}

.zyss-system-shell.uc-admin .sc-search-bar .sc-field {
  max-width: 380px;
}

/* ── 고객 카드 그리드 ── */
.zyss-system-shell.uc-admin .sc-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.zyss-system-shell.uc-admin .sc-customer-card {
  padding: 1rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.zyss-system-shell.uc-admin .sc-customer-card:hover {
  border-color: var(--sk-accent);
  background: var(--uc-surface-strong);
}

.zyss-system-shell.uc-admin .sc-customer-card__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-customer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.82rem;
  color: var(--uc-muted);
  margin-bottom: 8px;
}

.zyss-system-shell.uc-admin .sc-customer-card__grade {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--uc-border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-customer-card__grade--vip {
  border-color: var(--sk-accent);
  color: var(--sk-accent);
  background: var(--sk-accent-soft);
  font-weight: 700;
}

/* ── 고객 상세 요약 ── */
.zyss-system-shell.uc-admin .sc-detail-summary {
  margin-bottom: 1rem;
}

.zyss-system-shell.uc-admin .sc-detail-grid {
  display: grid;
  grid-template-columns: 120px 1fr 120px 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}

.zyss-system-shell.uc-admin .sc-detail-grid dt {
  font-size: 0.8rem;
  color: var(--uc-muted);
  align-self: center;
}

.zyss-system-shell.uc-admin .sc-detail-grid dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--uc-text);
  align-self: center;
  word-break: break-all;
}

/* ── 탭 네비 ── */
.zyss-system-shell.uc-admin .sc-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--uc-border);
  padding-bottom: 0.65rem;
}

.zyss-system-shell.uc-admin .sc-tab-btn {
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--uc-radius-sm);
  background: transparent;
  color: var(--uc-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.zyss-system-shell.uc-admin .sc-tab-btn:hover {
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  border-color: var(--uc-border);
}

.zyss-system-shell.uc-admin .sc-tab-btn.sc-active {
  background: #111111;
  color: var(--uc-text);
  border-color: var(--sk-accent);
  font-weight: 600;
}

/* ── 탭 패널 ── */
.zyss-system-shell.uc-admin .sc-tab-panel {
  display: none;
}

.zyss-system-shell.uc-admin .sc-tab-panel.sc-active {
  display: block;
}

/* ── 테이블 ── */
.zyss-system-shell.uc-admin .sc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
}

.zyss-system-shell.uc-admin .sc-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.zyss-system-shell.uc-admin .sc-table th,
.zyss-system-shell.uc-admin .sc-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--uc-border);
  text-align: left;
  font-size: 0.875rem;
}

.zyss-system-shell.uc-admin .sc-table th {
  background: var(--uc-surface-strong);
  color: var(--uc-muted);
  font-weight: 600;
}

.zyss-system-shell.uc-admin .sc-table td {
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-table tr:last-child th,
.zyss-system-shell.uc-admin .sc-table tr:last-child td {
  border-bottom: none;
}

/* ── 예약 카드 ── */
.zyss-system-shell.uc-admin .sc-appt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.zyss-system-shell.uc-admin .sc-appt-card {
  padding: 1rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}

.zyss-system-shell.uc-admin .sc-appt-card:hover {
  border-color: var(--sk-accent);
  background: var(--uc-surface-strong);
}

.zyss-system-shell.uc-admin .sc-appt-card__date {
  font-weight: 700;
  font-size: 1rem;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-appt-card__name {
  font-size: 0.9rem;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-appt-card__meta {
  font-size: 0.82rem;
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-appt-status {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.78rem;
  border: 1px solid var(--uc-border);
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-appt-status--scheduled {
  border-color: var(--sk-accent);
  color: var(--sk-accent);
  background: var(--sk-accent-soft);
}

.zyss-system-shell.uc-admin .sc-appt-status--done {
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-appt-status--cancel {
  border-color: var(--uc-border);
  color: var(--uc-muted);
  background: rgba(255,255,255,0.04);
}

/* ── 정보 행 dl ── */
.zyss-system-shell.uc-admin .sc-info-rows {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 1rem;
  margin: 0;
}

.zyss-system-shell.uc-admin .sc-info-rows dt {
  font-size: 0.8rem;
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .sc-info-rows dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--uc-text);
}

/* ── 빈 상태 ── */
.zyss-system-shell.uc-admin .sc-empty {
  padding: 2rem;
  text-align: center;
  color: var(--uc-muted);
  font-size: 0.9rem;
}

/* ── stub ── */
.zyss-system-shell.uc-admin .sc-stub .sc-empty {
  padding: 3rem;
  border: 1px dashed var(--uc-border);
  border-radius: var(--uc-radius);
}

/* ── 퀵 폼 래퍼 ── */
.zyss-system-shell.uc-admin .sc-quick-form {
  padding: 1rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  margin-bottom: 1rem;
}

/* ── 재고 통계 행 ── */
.zyss-system-shell.uc-admin .sc-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ── 사이드바 그룹 메뉴 및 토글 ── */
.sc-menu-group {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
}

.sc-menu-group__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 4px;
}

.sc-menu-group__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--uc-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sc-menu-group__toggle {
  background: none;
  border: none;
  color: var(--uc-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  line-height: 1;
}

.sc-menu-group.is-collapsed .sc-menu-group__toggle {
  transform: rotate(90deg);
}

.sc-menu-group__body {
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 500px;
  opacity: 1;
}

.sc-menu-group.is-collapsed .sc-menu-group__body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── 토스트 알럿 ── */
.sc-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--uc-surface-strong, #161616);
  border: 1px solid var(--sk-accent, #ffffff);
  color: var(--uc-text, #ffffff);
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sc-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 예약 관리 레이아웃 ── */
.zyss-system-shell.uc-admin .sc-appt-layout {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* ── 달력 ── */
.zyss-system-shell.uc-admin .sc-cal {
  background: var(--uc-surface);
  border: 1px solid var(--uc-border);
  border-radius: 12px;
  padding: 16px;
  flex: 1;
  min-width: 300px;
}

.zyss-system-shell.uc-admin .sc-cal__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.zyss-system-shell.uc-admin .sc-cal__month {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.zyss-system-shell.uc-admin .sc-cal__day-head {
  text-align: center;
  font-size: 0.75rem;
  color: var(--uc-muted);
  padding: 8px 0;
}

.zyss-system-shell.uc-admin .sc-cal__day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--uc-text);
  position: relative;
  transition: background 0.2s;
}

.zyss-system-shell.uc-admin .sc-cal__day:hover {
  background: rgba(255,255,255,0.06);
}

.zyss-system-shell.uc-admin .sc-cal__day.sk-today {
  color: var(--sk-accent);
  font-weight: 700;
  border: 1px solid var(--sk-accent);
}

.zyss-system-shell.uc-admin .sc-cal__day.sk-selected {
  background: #a2ff00;
  color: #111;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(162, 255, 0, 0.35);
}

.zyss-system-shell.uc-admin .sc-cal__day.sk-other-month {
  opacity: 0.3;
  pointer-events: none;
}

.zyss-system-shell.uc-admin .sc-cal__dot {
  width: 4px;
  height: 4px;
  background: var(--sk-accent);
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
}

/* ── 선택된 날짜 패널 ── */
.zyss-system-shell.uc-admin .sc-appt-day {
  flex: 1;
  background: var(--uc-surface);
  border: 1px solid var(--uc-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 280px;
}

.zyss-system-shell.uc-admin .sc-appt-day__head {
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--uc-border);
  font-weight: 600;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .sc-appt-day__body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

/* ── 타임 슬롯 ── */
.zyss-system-shell.uc-admin .sc-time-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.zyss-system-shell.uc-admin .sc-time-group__title {
  font-size: 0.75rem;
  color: var(--uc-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zyss-system-shell.uc-admin .sc-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.zyss-system-shell.uc-admin .sc-time-slot {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zyss-system-shell.uc-admin .sc-time-slot--empty {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.zyss-system-shell.uc-admin .sc-time-slot--empty:hover {
  border-color: var(--sk-accent);
  background: var(--sk-accent-soft);
  transform: translateY(-1px);
}

.zyss-system-shell.uc-admin .sc-time-slot.is-booked {
  border-left: 3px solid var(--sk-accent);
  background: var(--sk-accent-soft);
}

.zyss-system-shell.uc-admin .sc-time-slot__time { font-weight: 700; font-size: 0.95rem; color: var(--uc-text); }
.zyss-system-shell.uc-admin .sc-time-slot__name { font-size: 0.85rem; color: var(--uc-text); }
.zyss-system-shell.uc-admin .sc-time-slot__item { font-size: 0.75rem; color: var(--uc-muted); }

/* ── 예약 인라인 폼 ── */
.zyss-system-shell.uc-admin .sc-appt-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--uc-border);
}

.zyss-system-shell.uc-admin .sc-appt-inline__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--uc-text);
  font-size: 0.9rem;
}

.zyss-system-shell.uc-admin .sc-appt-inline__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.zyss-system-shell.uc-admin .sc-appt-inline__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* ── 예약 모달 ── */
.sk-appt-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sk-appt-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.sk-appt-modal__backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
}

.sk-appt-modal__content {
  position: relative;
  width: 480px;
  max-width: 90%;
  background: var(--uc-surface, #1e1e1e);
  border: 1px solid var(--sk-accent);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sk-appt-modal.is-active .sk-appt-modal__content {
  transform: translateY(0) scale(1);
}

.sk-appt-modal__head {
  padding: 24px;
  border-bottom: 1px solid var(--uc-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sk-appt-modal__title { font-weight: 700; font-size: 1.1rem; color: var(--uc-text); }
.sk-appt-modal__close { background: none; border: none; color: var(--uc-muted); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.sk-appt-modal__body { padding: 24px; }

.sk-appt-modal__foot {
  padding: 16px 24px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--uc-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.sk-appt-info-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.sk-appt-info-label { color: var(--uc-muted); font-size: 0.85rem; }
.sk-appt-info-value { font-weight: 500; color: var(--uc-text); }

/* ── 피부 지표 캔버스 ── */
.zyss-system-shell.uc-admin .sk-skin-chart {
  width: 100%;
  max-width: 320px;
  height: 120px;
  background: var(--uc-surface-strong);
  border-radius: 8px;
  display: block;
}

/* ── 피부 진단 지표 그리드 ── */
.zyss-system-shell.uc-admin .sk-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.zyss-system-shell.uc-admin .sk-metric-card {
  background: var(--uc-surface-strong);
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.zyss-system-shell.uc-admin .sk-metric-card__label {
  font-size: 0.72rem;
  color: var(--uc-muted);
  margin-bottom: 4px;
}

.zyss-system-shell.uc-admin .sk-metric-card__value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--uc-text);
}

/* ── 알레르기 태그 ── */
.zyss-system-shell.uc-admin .sk-allergy-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(255, 100, 100, 0.12);
  color: #ff8080;
  border: 1px solid rgba(255, 100, 100, 0.25);
  margin: 2px;
}

/* ── 홈케어 사이클 뱃지 ── */
.zyss-system-shell.uc-admin .sk-cycle-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: var(--sk-accent-soft);
  color: var(--sk-accent);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── 재고 부족 경고 ── */
.zyss-system-shell.uc-admin .sk-stock-low {
  color: #ffaa00;
}

/* ── 피부 변화 사진 타임라인 ── */
.zyss-system-shell.uc-admin .sk-photo-timeline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.zyss-system-shell.uc-admin .sk-photo-timeline__item {
  flex: 0 0 80px;
  text-align: center;
}

.zyss-system-shell.uc-admin .sk-photo-timeline__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--sk-accent);
}

.zyss-system-shell.uc-admin .sk-photo-timeline__date {
  font-size: 0.7rem;
  color: var(--uc-muted);
  margin-top: 4px;
}

/* ── 예약 상세 모달 ── */
.sk-appt-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sk-appt-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.sk-appt-modal__backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.sk-appt-modal__content {
  position: relative;
  width: 480px;
  max-width: 90%;
  background: var(--uc-surface, #1e1e1e);
  border: 1px solid var(--sk-accent);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(192,132,252,0.08);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sk-appt-modal.is-active .sk-appt-modal__content {
  transform: translateY(0) scale(1);
}

.sk-appt-modal__head {
  padding: 24px;
  border-bottom: 1px solid var(--uc-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sk-appt-modal__title { font-weight: 700; font-size: 1.25rem; }

.sk-appt-modal__close {
  background: none; border: none; color: #888; cursor: pointer; font-size: 1.5rem;
}

.sk-appt-modal__body { padding: 24px; }

.sk-appt-modal__foot {
  padding: 20px 24px;
  background: rgba(192,132,252,0.03);
  border-top: 1px solid var(--uc-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── 반응형 ── */
@media (max-width: 900px) {
  .zyss-system-shell.uc-admin .sc-layout {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .sc-nav {
    border-right: none;
    border-bottom: 1px solid var(--uc-border);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 6px 6px 8px;
    gap: 4px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--uc-surface);
  }

  .zyss-system-shell.uc-admin .sc-nav__brand {
    display: none;
  }

  .zyss-system-shell.uc-admin .sc-nav__item {
    width: auto;
    margin: 0;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.82rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .zyss-system-shell.uc-admin .sc-nav__group {
    margin: 0;
  }

  .zyss-system-shell.uc-admin .sc-nav__submenu {
    width: 100%;
    padding-left: 0;
  }

  .zyss-system-shell.uc-admin .sc-nav__subitem {
    width: auto;
    min-height: 36px;
    padding: 7px 12px;
  }

  .zyss-system-shell.uc-admin .sc-main {
    padding: 1rem 0.75rem;
  }

  .zyss-system-shell.uc-admin .sc-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zyss-system-shell.uc-admin .sc-detail-grid {
    grid-template-columns: 90px 1fr;
  }

  .zyss-system-shell.uc-admin .sc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zyss-system-shell.uc-admin .sc-form-grid--row {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .sc-customer-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .zyss-system-shell.uc-admin .sc-appt-grid {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .sc-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sk-appt-layout { flex-direction: column; }
}
\n
.zyss-system-shell.uc-admin .sc-card,
.zyss-system-shell.uc-admin .sc-stat-card,
.zyss-system-shell.uc-admin .sc-table-wrap,
.zyss-system-shell.uc-admin .sc-quick-form {
  background: rgba(20, 20, 20, 0.6) !important;
  backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

.zyss-system-shell.uc-admin .sc-main {
  background: #000000 !important; /* 순수 블랙 배경 */
}
\n
.zyss-system-shell.uc-admin .sc-btn {
  height: 40px !important;
  padding: 0 20px !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

.zyss-system-shell.uc-admin .sc-btn--primary {
  background: #111111 !important;
  color: #ffffff !important;
}

/* ── 스킨케어 예약관리 전용 보정 ── */
.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-appt-layout {
  align-items: stretch;
  gap: 24px;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal,
.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-appt-day {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(25px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__nav {
  margin-bottom: 18px;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__month {
  color: var(--uc-text);
  letter-spacing: 0.01em;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__day-head {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__day {
  color: rgba(255, 255, 255, 0.82);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__day:hover {
  background: rgba(255, 255, 255, 0.07);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__day.sc-today {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__day.sc-selected {
  background: #a2ff00 !important;
  color: #111111 !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(162, 255, 0, 0.24);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-cal__dot {
  background: rgba(255, 255, 255, 0.92);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-appt-day__head {
  background: rgba(255, 255, 255, 0.05);
  color: var(--uc-text);
  font-size: 0.92rem;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-group__title {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-grid {
  gap: 10px;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-slot {
  min-height: 78px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-slot--empty:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-slot.is-booked {
  border-left-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-slot__time {
  color: #ffffff;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-slot__name {
  color: rgba(255, 255, 255, 0.92);
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-slot__item {
  color: rgba(255, 255, 255, 0.56);
}

.zyss-system-shell.uc-admin .sc-appt-modal {
  backdrop-filter: blur(0);
}

.zyss-system-shell.uc-admin .sc-appt-modal__content {
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: blur(28px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.zyss-system-shell.uc-admin .sc-appt-modal__head,
.zyss-system-shell.uc-admin .sc-appt-modal__foot {
  background: rgba(255, 255, 255, 0.03);
}

.zyss-system-shell.uc-admin .sc-appt-modal__title,
.zyss-system-shell.uc-admin .sc-appt-info-value {
  color: #ffffff;
}

.zyss-system-shell.uc-admin .sc-appt-info-label {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-appt-layout {
    gap: 16px;
  }

  .zyss-system-shell.uc-admin .sc-section[data-skincare-section="appointments"] .sc-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 모바일 호환성 보정 ───────────────────────────── */
.zyss-system-shell.uc-admin .sc-section[data-skincare-section="inventory"] .sc-table {
  min-width: 1240px;
}

@media (max-width: 768px) {
  .zyss-system-shell.uc-admin {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .zyss-system-shell.uc-admin .uc-admin__topbar {
    min-width: 0;
    padding: 0 0.65rem;
    gap: 0.5rem;
  }

  .zyss-system-shell.uc-admin .uc-brand,
  .zyss-system-shell.uc-admin .uc-brand__text {
    min-width: 0;
    max-width: calc(100vw - 116px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .zyss-system-shell.uc-admin .uc-admin__main,
  .zyss-system-shell.uc-admin .sc-main {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.5rem;
  }

  .zyss-system-shell.uc-admin .sc-layout {
    display: block;
    min-height: auto;
  }

  .zyss-system-shell.uc-admin .sc-nav {
    position: sticky;
    top: 56px;
    z-index: 20;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--uc-border);
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin .sc-nav__item,
  .zyss-system-shell.uc-admin .sc-nav__subitem {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .zyss-system-shell.uc-admin .sc-nav__submenu {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    width: auto;
    max-width: 100vw;
    padding: 0;
  }

  .zyss-system-shell.uc-admin .sc-nav__submenu[hidden] {
    display: none !important;
  }

  .zyss-system-shell.uc-admin .sc-section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .zyss-system-shell.uc-admin .sc-stats-grid,
  .zyss-system-shell.uc-admin .sc-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
  }

  .zyss-system-shell.uc-admin .sc-card,
  .zyss-system-shell.uc-admin .sc-stat-card {
    padding: 0.85rem;
  }

  .zyss-system-shell.uc-admin .sc-form-grid,
  .zyss-system-shell.uc-admin .sc-form-grid--row {
    grid-template-columns: 1fr !important;
  }

  .zyss-system-shell.uc-admin .sc-field,
  .zyss-system-shell.uc-admin .uc-field__control,
  .zyss-system-shell.uc-admin textarea,
  .zyss-system-shell.uc-admin select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .zyss-system-shell.uc-admin .sc-search-bar .sc-field {
    max-width: none;
  }

  .zyss-system-shell.uc-admin .sc-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin .sc-table {
    min-width: 820px;
  }

  .zyss-system-shell.uc-admin .sc-section[data-skincare-section="inventory"] .sc-table {
    min-width: 1240px;
  }

  .zyss-system-shell.uc-admin .sc-inline-actions,
  .zyss-system-shell.uc-admin .sc-form-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .zyss-system-shell.uc-admin .sc-stats-grid,
  .zyss-system-shell.uc-admin .sc-stat-row {
    grid-template-columns: 1fr !important;
  }

  .zyss-system-shell.uc-admin .sc-btn {
    width: 100%;
  }
}

/* 기초등록에서는 재고/입고/출고 입력 및 카드 숨김 */
.zyss-system-shell.uc-admin .sc-section[data-skincare-section="inventory"][data-sk-inventory-mode="base"] [data-sk-inventory-mode-field] {
  display: none !important;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="inventory"]:not([data-sk-inventory-mode="base"]) [data-sk-inventory-base-field] {
  display: none !important;
}

.zyss-system-shell.uc-admin .sc-section[data-skincare-section="inventory"]:not([data-sk-inventory-mode="purchase"]):not([data-sk-inventory-mode="sale"]) [data-sk-inventory-action-field] {
  display: none !important;
}

/* [한글 주석] 모바일 반응형 보강: 스킨케어 고객관리시스템 독립 처리 */
@media (max-width: 640px) {
  .zyss-system-shell.uc-admin {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .zyss-system-shell.uc-admin * {
    box-sizing: border-box;
    min-width: 0;
  }

  .zyss-system-shell.uc-admin .uc-admin__topbar {
    padding: 8px 10px;
  }

  .zyss-system-shell.uc-admin .uc-brand__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .zyss-system-shell.uc-admin .sc-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .zyss-system-shell.uc-admin .sc-main,
  .zyss-system-shell.uc-admin .sc-section,
  .zyss-system-shell.uc-admin .sc-card,
  .zyss-system-shell.uc-admin .sc-panel {
    width: 100%;
    max-width: 100%;
  }

  .zyss-system-shell.uc-admin .sc-grid,
  .zyss-system-shell.uc-admin .sc-form-grid,
  .zyss-system-shell.uc-admin .sc-kpi-grid,
  .zyss-system-shell.uc-admin .sc-profile-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .zyss-system-shell.uc-admin .sc-actions,
  .zyss-system-shell.uc-admin .sc-toolbar,
  .zyss-system-shell.uc-admin .sc-filter-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .zyss-system-shell.uc-admin .sc-btn,
  .zyss-system-shell.uc-admin input,
  .zyss-system-shell.uc-admin select,
  .zyss-system-shell.uc-admin textarea {
    width: 100%;
    max-width: 100%;
  }

  .zyss-system-shell.uc-admin .sc-table-wrap,
  .zyss-system-shell.uc-admin .sc-list-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin table {
    min-width: 680px;
  }
}

/* [한글 주석] 모바일 패널 버튼: 스킨케어 좌측 메뉴를 가로 스크롤 메뉴로 열고 닫습니다. */
@media (max-width: 640px) {
  .zyss-system-shell.uc-admin .sc-layout,
  .zyss-system-shell.uc-admin .sc-layout.is-nav-collapsed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .zyss-system-shell.uc-admin .sc-layout.is-nav-collapsed .sc-nav {
    display: none !important;
  }

  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border-right: 0;
    border-bottom: 1px solid var(--uc-border);
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav__brand {
    display: none !important;
  }

  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav__group,
  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav__submenu {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
    width: auto;
    overflow: visible;
  }

  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav__submenu[hidden] {
    display: none !important;
  }

  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav__group.is-open > .sc-nav__submenu {
    max-height: none;
    margin-top: 0;
    padding-left: 0;
    overflow: visible;
    opacity: 1;
  }

  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav__item,
  .zyss-system-shell.uc-admin .sc-layout:not(.is-nav-collapsed) .sc-nav__subitem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 78px;
    max-width: 72vw;
    min-height: 38px;
    padding: 8px 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* [한글 주석] 라이트모드: 스킨케어 독립 팔레트 */
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare {
  --uc-primary: #162033;
  --uc-surface: #ffffff;
  --uc-surface-strong: #f8fafc;
  --uc-border: rgba(20, 28, 45, 0.12);
  --uc-border-strong: rgba(20, 28, 45, 0.22);
  --uc-text: #162033;
  --uc-muted: #5e687a;
  --sk-accent: #162033;
  --sk-accent-soft: rgba(20, 28, 45, 0.08);
  --sk-accent-rgb: 22, 32, 51;
  background: #f4f6fb;
  color: var(--uc-text);
}

:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .uc-admin__topbar,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-nav,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-card,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-panel,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-table-wrap,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-list-wrap {
  background: #ffffff;
  color: #162033;
  border-color: rgba(20, 28, 45, 0.12);
}

:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare input,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare select,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare textarea {
  background: #ffffff;
  color: #162033;
  border-color: rgba(20, 28, 45, 0.16);
}

/* [한글 주석] 라이트모드 보강: 스킨케어 뒤쪽 다크 고정값을 최종 보정합니다. */
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .uc-brand,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .uc-icon-button,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-nav__item,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-nav__subitem,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-btn:not(.sc-btn--primary),
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-table,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-empty,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-upload {
  background: #f8fafc !important;
  color: #162033 !important;
  border-color: rgba(20, 28, 45, 0.14) !important;
}

:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-section-title,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-card__title,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-field label {
  color: #162033 !important;
}

:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-muted,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-help,
:root[data-zyss-color-mode="light"] .zyss-system-shell--skincare .sc-empty {
  color: #5e687a !important;
}
