/* 테마 편집기 하단「스타일 편집」모달과 동일 톤 — publish_starter/studio layout-preview-l1-sidebar.html 기준 */

.asol_theme_modal .modal-dialog {
  max-width: min(560px, calc(100vw - 2rem));
  margin: 1rem auto;
}

.asol_theme_modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.asol_theme_modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #262626;
  color: #e5e5e5;
  padding: 0.75rem 1rem;
}

.asol_theme_modal .modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fafafa;
}

.asol_theme_modal .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.asol_theme_modal .modal-body {
  background: #2e2e2e;
  color: #e5e5e5;
  padding: 0.75rem 1rem 0.85rem;
}

@media (max-width: 991.98px) {
  .asol_theme_modal .modal-dialog {
    max-width: min(560px, calc(100vw - 0.35rem));
    margin: 0.35rem auto;
  }

  .asol_theme_modal .modal-header {
    padding: 0.75rem 0.5rem;
  }

  .asol_theme_modal .modal-body {
    padding: 0.75rem 0.5rem 0.85rem;
  }
}

.asol_theme_modal code.text-info {
  color: #d4d4d4 !important;
}

.asol_theme_modal .l1pv2_chrome_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.asol_theme_modal .l1pv2_chrome_row a {
  color: #d4d4d4;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.asol_theme_modal .l1pv2_chrome_row a:hover {
  color: #fafafa;
}

.asol_theme_modal .l1pv2_chrome_row .asol_theme_modal__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a3a3a3;
}

.asol_theme_modal .l1pv2_step_desc {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #a3a3a3;
}

.asol_theme_modal .l1pv2_theme_custom_placeholder {
  margin: 0;
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #a3a3a3;
  text-align: center;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.asol_theme_modal .l1pv2_theme_subtitle {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fafafa;
  margin: 0.5rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.asol_theme_modal .l1pv2_theme_desc {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #a3a3a3;
}

.asol_theme_modal .l1pv2_theme_preset_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.asol_theme_modal .l1pv2_theme_preset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  border: 2px solid color-mix(in srgb, var(--publish_starter_point) 42%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, var(--publish_starter_point) 14%, #262626);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.asol_theme_modal .l1pv2_theme_preset:hover {
  border-color: color-mix(in srgb, var(--publish_starter_point) 78%, #fff);
  background: color-mix(in srgb, var(--publish_starter_point) 22%, #262626);
}

.asol_theme_modal .l1pv2_theme_preset.is-active {
  border-color: var(--publish_starter_point);
  background: color-mix(in srgb, var(--publish_starter_point) 28%, #1f1f1f);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--publish_starter_point) 55%, transparent),
    0 10px 26px color-mix(in srgb, var(--publish_starter_point) 22%, transparent);
}

.asol_theme_modal .l1pv2_theme_preset_sw {
  display: flex;
  height: 7px;
  border-radius: 3px;
  overflow: hidden;
}

.asol_theme_modal .l1pv2_theme_preset_sw span {
  flex: 1;
  min-width: 0;
}

.asol_theme_modal .l1pv2_theme_preset_label {
  font-size: 0.75rem;
  font-weight: 800;
  color: color-mix(in srgb, #f5f5f5 82%, var(--publish_starter_point));
}

.asol_theme_modal .l1pv2_theme_preview {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
  margin-top: 0.15rem;
}

.asol_theme_modal .l1pv2_theme_preview span {
  flex: 1;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.asol_theme_modal .l1pv2_theme_hint {
  text-align: center;
  font-size: 0.68rem;
  color: #737373;
  margin: 0.55rem 0 0;
  line-height: 1.45;
}

/* 언어팩 (국기 + 라벨) */
.asol_lang_pack_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}

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

.asol_lang_pack__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e5e5e5;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.asol_lang_pack__item:hover {
  border-color: color-mix(in srgb, var(--publish_starter_point) 55%, rgba(255, 255, 255, 0.35));
  background: rgba(255, 255, 255, 0.08);
}

.asol_lang_pack__item.is-active {
  border-color: var(--publish_starter_point);
  background: color-mix(in srgb, var(--publish_starter_point) 22%, #262626);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--publish_starter_point) 45%, transparent);
}

.asol_lang_pack__flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.asol_lang_pack__flag img {
  display: block;
  width: 28px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.asol_lang_pack__label {
  display: block;
  max-width: 100%;
  word-break: keep-all;
}

/* 기준통화 (KRW / USD / USDT) */
.asol_theme_currency_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}

.asol_theme_currency__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e5e5e5;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.asol_theme_currency__item:hover:not(.is-disabled) {
  border-color: color-mix(in srgb, var(--publish_starter_point) 55%, rgba(255, 255, 255, 0.35));
  background: rgba(255, 255, 255, 0.08);
}

.asol_theme_currency__item.is-active {
  border-color: var(--publish_starter_point);
  background: color-mix(in srgb, var(--publish_starter_point) 22%, #262626);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--publish_starter_point) 45%, transparent);
}

.asol_theme_currency__item.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
