:root{
  --bg0:#07070a;
  --bg1:#0b0b10;

  --line:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.88);
  --muted:rgba(255,255,255,.56);

  --gold:#e9bc6f;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --r:18px;
  --r2:24px;
}

/* =====================
   Layout
===================== */

.wrap{
  margin: 0 auto;
  padding: 16px 14px);
}

.area_desc{
  margin: 6px 2px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align:center;
}

/* =====================
   Card
===================== */

.card{
  border-radius: var(--r2);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cardBody{
  padding: 12px 14px 14px;
  background: transparent;
}


/* 섹션 헤더 (대상설정 / 지역설정 공통) */
.sectionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:4px 16px 0;
}

.sectionTitle{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  font-size:15px;
  font-weight:800;
  letter-spacing:-0.2px;
}

.sectionTitle i{
  color:var(--gold);
  font-size:14px;
  width:16px;
  text-align:center;
}

.sectionSub{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}



/* =====================
   대상설정 List (체크형)
===================== */

.target_list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.target_list .item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  min-height:56px;

  border-radius:var(--r);
  border:2px solid var(--line);
  background:transparent;

  cursor:pointer;
  user-select:none;

  transition:
    border-color .14s ease,
    background .14s ease,
    transform .14s ease;
}

@media (hover:hover){
  .target_list .item:hover{
    transform:translateY(-1px);
    border-color:rgba(233,188,111,.35);
    background:rgba(233,188,111,.04);
  }
}

.target_list .item.is-checked,
.target_list .item:has(.chk:checked){
  border-color:rgba(233,188,111,.35);
  background:rgba(233,188,111,.04);
}

.target_list .item:focus,
.target_list .item:focus-within{
  outline:none;
}

.target_list .name{
  font-weight:820;
  letter-spacing:-0.2px;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  color:var(--text);
}

/* 대상설정 체크박스도 지역설정과 동일 */
.target_list .chk{
  width:20px;
  height:20px;
  border-radius:7px;
  border:2px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  appearance:none;
  outline:none;
  cursor:pointer;
  position:relative;
  flex:0 0 auto;
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}

.target_list .chk:focus{
  outline:none;
  box-shadow:none;
}

.target_list .chk:checked{
  border-color:rgba(233,188,111,.75);
  background:rgba(233,188,111,.18);
  box-shadow:
    0 0 18px rgba(233,188,111,.24),
    0 10px 26px rgba(0,0,0,.35);
}

.target_list .chk:checked::after{
  content:"";
  position:absolute;
  left:6px;
  top:3px;
  width:6px;
  height:10px;
  border-right:2px solid rgba(255,255,255,.92);
  border-bottom:2px solid rgba(255,255,255,.92);
  transform:rotate(40deg);
}


/* =====================
   Area List
===================== */

.area_list{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* =====================
   Area Item
===================== */

.area_list .item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 20px;
  min-height: 56px;

  border-radius: var(--r);
  border: 2px solid var(--line);
  background: transparent;

  cursor:pointer;
  user-select:none;

  transition:
    border-color .14s ease,
    background .14s ease,
    transform .14s ease;
}

/* hover */
@media (hover:hover){
  .area_list .item:hover{
    transform: translateY(-1px);
    border-color: rgba(233,188,111,.35);
    background: rgba(233,188,111,.04);
  }
}

/* checked = hover 유지 */
.area_list .item:has(.chk:checked){
  border-color: rgba(233,188,111,.35);
  background: rgba(233,188,111,.04);
}

/* focus 방지 */
.area_list .item:focus,
.area_list .item:focus-within{
  outline:none;
}

/* =====================
   Text
===================== */

.area_list .name{
  font-weight: 820;
  letter-spacing: -0.2px;
  font-size: 14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

/* =====================
   Checkbox
===================== */

.area_list .chk{
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  appearance: none;
  outline: none;
  cursor:pointer;
  position:relative;
  flex: 0 0 auto;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.area_list .chk:focus{
  outline:none;
  box-shadow:none;
}

.area_list .chk:checked{
  border-color: rgba(233,188,111,.75);
  background: rgba(233,188,111,.18);
  box-shadow:
    0 0 18px rgba(233,188,111,.24),
    0 10px 26px rgba(0,0,0,.35);
}

.area_list .chk:checked::after{
  content:"";
  position:absolute;
  left:6px;
  top:3px;
  width:6px;
  height:10px;
  border-right:2px solid rgba(255,255,255,.92);
  border-bottom:2px solid rgba(255,255,255,.92);
  transform:rotate(40deg);
}

/* =========================================
   1. 상단 헤더 (뒤로가기 & 타이틀) - 기존 유지
   ========================================= */
.page-header {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.xet-btn.back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

.page-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    z-index: 1;
}

/* =========================================
   2. 하단 플로팅 버튼 (PC/모바일 동일 디자인)
   ========================================= */

.btnRow {
    /* 위치 고정 */
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 70px !important;

    /* [핵심] 내용물 크기에 딱 맞게 조절 (알약 모양 유지) */
    width: fit-content !important;
    max-width: 95%; /* 화면 밖으로 나감 방지 */
    height: 50px;

    /* 배경 디자인 */
    background-color: #e8bd70 !important;
    border-radius: 40px !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28) !important;

    /* 내부 정렬: 무조건 중앙 정렬 (흩어지기 금지) */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* 여백 설정 */
    padding: 0 10px !important; 
    gap: 0 !important; /* 버튼 자체 패딩으로 간격 조절 */
    
    z-index: 9999;
    white-space: nowrap !important; /* 줄바꿈 절대 금지 */
}

/* =========================================
   수정된 버튼 스타일 (모바일 두께 보정 포함)
   ========================================= */

.btnRow .area_btn {
    flex: 0 0 auto !important;
    height: 100%;
    
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    
    /* [핵심 1] PC에서도 확실하게 두껍게 (700 -> 800) */
    color: #111111 !important;
    font-size: 15px !important;
    font-weight: 800 !important; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px !important;
    cursor: pointer;
}

/* 아이콘도 굵기 맞춰주기 */
.btnRow .area_btn i {
    font-size: 16px;
    margin-bottom: 2px;
}

/* =========================================
   모바일 전용 보정 (작은 화면 대응)
   ========================================= */
@media (max-width: 420px) {
    .btnRow {
        height: 44px;
        padding: 0 5px !important;
        bottom: 70px !important;
    }

    .btnRow .area_btn {
        font-size: 14px !important; /* 모바일 폰트 크기 */
        padding: 0 8px !important;
        gap: 4px;
   
    .btnRow .area_btn i {
        font-size: 14px;
    }
}