/*
  system-color.css
  ───────────────────────────────────────────────────────────
  RAL / 먼셀 컬러 시스템 전용 사이트 맞춤 스타일입니다.
  - 실제 색상칩/팔레트 배경색은 유지합니다.
  - 주변 카드/문구/모달/컨트롤만 zyss 사이트 톤에 맞춥니다.
*/

.zyss-system-shell.uc-admin #ral-color-picker-app .container,
.zyss-system-shell.uc-admin #munsell-color-picker-app .container {
  max-width: none;
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

.zyss-system-shell.uc-admin #ral-color-picker-app,
.zyss-system-shell.uc-admin #munsell-color-picker-app {
  font-family: var(--zyss-font-family-base, inherit);
  letter-spacing: -0.01em;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .header,
.zyss-system-shell.uc-admin #munsell-color-picker-app .container > h1,
.zyss-system-shell.uc-admin #munsell-color-picker-app .container > .subtitle {
  text-align: left;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .header {
  padding: 24px 28px 20px;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .container > h1 {
  padding: 24px 28px 0;
  margin: 0;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .container > .subtitle {
  padding: 6px 28px 0;
  margin: 0;
}

.zyss-system-shell.uc-admin #ral-color-picker-app h1,
.zyss-system-shell.uc-admin #munsell-color-picker-app h1 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .subtitle,
.zyss-system-shell.uc-admin #munsell-color-picker-app .subtitle {
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.6) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .warning,
.zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-notice {
  margin: 18px 20px 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.75;
  letter-spacing: -0.005em;
}

.zyss-system-shell.uc-admin .uc-color-notice__title,
.zyss-system-shell.uc-admin #ral-color-picker-app .warning-title {
  display: block;
  margin-left: 0;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.zyss-system-shell.uc-admin .uc-color-notice__list {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.85;
  letter-spacing: -0.005em;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .warning li,
.zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-notice__list li {
  margin: 0.22rem 0;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .section {
  padding-left: 20px;
  padding-right: 20px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .content {
  padding-top: 22px;
  padding-bottom: 24px;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .section {
  margin-bottom: 26px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .section-title,
.zyss-system-shell.uc-admin #munsell-color-picker-app .section-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  border-bottom-width: 1px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-grid,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-container,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-container,
.zyss-system-shell.uc-admin #munsell-color-picker-app .controls,
.zyss-system-shell.uc-admin #munsell-color-picker-app .preview-section,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-grid,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-grid {
  gap: 12px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-button,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button {
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-button {
  border-width: 1px;
  min-height: 92px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--uc-surface-strong, #161616) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-button > div,
.zyss-system-shell.uc-admin #ral-color-picker-app .color-button-code {
  color: rgba(255, 255, 255, 0.9) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-button:hover,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button:hover,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button:hover,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-item:hover,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-item:hover {
  transform: translateY(-1px);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-button.selected,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button.active,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button.active {
  border: 2px solid #a2ff00 !important;
  box-shadow: 0 0 0 2px rgba(162, 255, 0, 0.24), 0 10px 24px rgba(0, 0, 0, 0.3);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-button.selected {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    #202020 !important;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button > div,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button > div {
  color: rgba(255, 255, 255, 0.9) !important;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button.active,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button.active {
  border-color: #a2ff00 !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .main-display,
.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group,
.zyss-system-shell.uc-admin #munsell-color-picker-app .color-info,
.zyss-system-shell.uc-admin #ral-color-picker-app .color-info,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-item,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-item,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-content {
  border-radius: 16px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .main-display {
  padding: 18px;
  gap: 18px;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-preview,
.zyss-system-shell.uc-admin #munsell-color-picker-app .color-preview {
  border-radius: 16px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-preview-label,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-color-label {
  font-size: 1.65rem;
}

.zyss-system-shell.uc-admin .uc-color-preview-code,
.zyss-system-shell.uc-admin #munsell-color-picker-app #munsellNotation {
  font-size: 1rem;
  font-weight: 600;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .info-row,
.zyss-system-shell.uc-admin #munsell-color-picker-app .info-row,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-row,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-row {
  grid-template-columns: 132px minmax(0, 1fr);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .info-label,
.zyss-system-shell.uc-admin #munsell-color-picker-app .info-label,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-label,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-label {
  font-size: 0.82rem;
  font-weight: 500;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .info-value,
.zyss-system-shell.uc-admin #munsell-color-picker-app .info-value,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-value,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-value,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-name,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-hex,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-code {
  font-size: 0.83rem;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .palette-item,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* [한글 주석] 먼셀 우측 정보 패널은 흰색 pill 박스를 제거하고 텍스트형 정보 행으로 정리합니다. */
.zyss-system-shell.uc-admin #munsell-color-picker-app .color-info {
  padding: 18px 20px;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .info-row,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-row {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .info-label,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-label {
  padding: 0;
  height: auto;
  min-height: 0;
  background: transparent !important;
  border-right: 0 !important;
  box-shadow: none;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .info-value,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  max-width: 100%;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  text-align: right;
  word-break: break-word;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .palette-info,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-info {
  padding: 10px 12px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .palette-item,
.zyss-system-shell.uc-admin #ral-color-picker-app .color-info,
.zyss-system-shell.uc-admin #ral-color-picker-app .main-display {
  background: var(--uc-surface-strong, #161616) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-info {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .color-preview {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .info-row {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .info-label {
  border-right-color: rgba(255, 255, 255, 0.08) !important;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group,
.zyss-system-shell.uc-admin #munsell-color-picker-app .color-info,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-item {
  background: var(--uc-surface-strong, #161616) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .palette-info {
  background: rgba(18, 18, 18, 0.96) !important;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-info {
  background: rgba(18, 18, 18, 0.96) !important;
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-munsell,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-ral {
  font-size: 0.76rem;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .modal-content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-content {
  max-width: 860px;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .modal-close,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-close {
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
}

@media (max-width: 900px) {
  .zyss-system-shell.uc-admin #ral-color-picker-app .header,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .container > h1,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .container > .subtitle,
  .zyss-system-shell.uc-admin #ral-color-picker-app .content,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .content,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .warning,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-notice {
    margin-left: 16px;
    margin-right: 16px;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .main-display,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .preview-section {
    gap: 14px;
  }
}

/* [한글 주석] 모바일 반응형 보강: RAL / 먼셀 색상 시스템 전용 */
@media (max-width: 640px) {
  .zyss-system-shell.uc-admin #ral-color-picker-app,
  .zyss-system-shell.uc-admin #munsell-color-picker-app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app *,
  .zyss-system-shell.uc-admin #munsell-color-picker-app * {
    box-sizing: border-box;
    min-width: 0;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .container,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .container {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .header,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .container > h1,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .container > .subtitle,
  .zyss-system-shell.uc-admin #ral-color-picker-app .content,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .content,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .section {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app h1,
  .zyss-system-shell.uc-admin #munsell-color-picker-app h1 {
    font-size: 1.08rem;
    line-height: 1.35;
    word-break: keep-all;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .subtitle,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .subtitle,
  .zyss-system-shell.uc-admin #ral-color-picker-app .warning,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-notice {
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .warning,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-notice {
    margin-right: 12px !important;
    margin-left: 12px !important;
    padding: 12px;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .color-grid,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-container,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-container,
  .zyss-system-shell.uc-admin #ral-color-picker-app .palette-grid,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .zyss-system-shell.uc-admin #munsell-color-picker-app .controls,
  .zyss-system-shell.uc-admin #ral-color-picker-app .main-display,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .preview-section {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .color-button,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button {
    min-height: 58px;
    padding: 9px;
    font-size: 0.78rem;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .color-preview,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .color-preview {
    min-height: 180px;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .color-preview-label {
    font-size: 1.22rem;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .info-row,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .info-row,
  .zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-row,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px;
    padding: 10px 0;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .info-label,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .info-label,
  .zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-label,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-label,
  .zyss-system-shell.uc-admin #ral-color-picker-app .info-value,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .info-value,
  .zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-value,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-value {
    justify-self: stretch;
    text-align: left;
    justify-content: flex-start;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .modal-content,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .modal-content {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    padding: 18px 14px;
    border-radius: 16px;
  }

  .zyss-system-shell.uc-admin #ral-color-picker-app .modal-close,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 360px) {
  .zyss-system-shell.uc-admin #ral-color-picker-app .color-grid,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-container,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-container,
  .zyss-system-shell.uc-admin #ral-color-picker-app .palette-grid,
  .zyss-system-shell.uc-admin #munsell-color-picker-app .palette-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
