.cg-lcs{
  --cg-bg:#0f1115;
  --cg-card:#151a22;
  --cg-line:rgba(255,255,255,.08);
  --cg-text:rgba(255,255,255,.92);
  --cg-muted:rgba(255,255,255,.65);
  --cg-pass:rgba(0,255,128,.22);
  --cg-fail:rgba(255,80,80,.22);
  --cg-unk:rgba(255,215,0,.18);
  --cg-radius:14px;
  --cg-pad:16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color:var(--cg-text);
  background:#ffffff;
  border:0;
  border-radius:var(--cg-radius);
  padding:0;
  box-shadow:none;
}

.cg-lcs *{ box-sizing:border-box; }

.cg-lcs__noscript{
  padding:12px 14px;
  background:rgba(255,80,80,.15);
  border:1px solid rgba(255,80,80,.25);
  border-radius:12px;
  margin-bottom:12px;
}

.cg-lcs__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.cg-lcs__headerBtns{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.cg-lcs__title{
  font-size:18px;
  font-weight:800;
  letter-spacing:-.2px;
}

.cg-lcs__btn{
  appearance:none;
  /* 더 두꺼운 검은 테두리 */
  border:3px solid #000;
  /* 입체감(3D) */
  background:linear-gradient(#ffffff, #f2f2f2);
  box-shadow:0 4px 0 #000, 0 10px 16px rgba(0,0,0,.12);
  color:#000;
  padding:10px 12px;
  /* 버튼 라운드 처리 금지 */
  border-radius:0;
  font-weight:700;
  cursor:pointer;
  transition:transform .05s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cg-lcs__btn:hover{
  background:linear-gradient(#ffffff, #eaeaea);
  border-color:#000;
  /* 후버 시 글자 색상 고정 (흰색으로 바뀌는 현상 방지) */
  color:#000 !important;
  box-shadow:0 5px 0 #000, 0 12px 18px rgba(0,0,0,.14);
  transform:translateY(-1px);
}

/* 선택/포커스/활성 상태에서도 글자색이 흰색으로 바뀌지 않도록 고정 */
.cg-lcs__btn:focus,
.cg-lcs__btn:focus-visible,
.cg-lcs__btn:active,
.cg-lcs__btn.is-active,
.cg-lcs__btn[aria-pressed="true"],
.cg-lcs__btn[aria-selected="true"]{
  color:#000 !important;
  background:linear-gradient(#ffffff, #f2f2f2);
  border-color:#000;
  box-shadow:0 4px 0 #000, 0 10px 16px rgba(0,0,0,.12);
}

.cg-lcs__btn:active{
  transform:translateY(2px);
  background:linear-gradient(#f6f6f6, #e9e9e9);
  box-shadow:0 2px 0 #000, 0 6px 12px rgba(0,0,0,.12);
}

.cg-lcs__btn--ghost{
  background:linear-gradient(#ffffff, #f2f2f2);
}

.cg-lcs__hint{
  padding:10px 12px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:12px;
  color:rgba(255,255,255,.75);
  font-size:13px;
  margin-bottom:12px;
}

.cg-lcs__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media (max-width: 860px){
  .cg-lcs__grid{ grid-template-columns:1fr; }
}

.cg-lcs__card{
  background:var(--cg-card);
  border:1px solid var(--cg-line);
  border-radius:var(--cg-radius);
  padding:14px;
}

.cg-lcs__cardTitle{
  font-weight:800;
  margin-bottom:10px;
  color:rgba(255,255,255,.9);
}

.cg-lcs__kv{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.cg-lcs__kv:last-child{ border-bottom:0; }

.cg-lcs__k{
  color:var(--cg-muted);
  font-weight:700;
}

.cg-lcs__v{
  color:rgba(255,255,255,.92);
  word-break:break-word;
}

.cg-lcs__verdictBox{
  padding:10px 0 12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.cg-lcs__verdictBox:last-child{ border-bottom:0; }

.cg-lcs__sectionTitle{
  margin:4px 0 6px 0;
  font-weight:900;
  font-size:13px;
  color:rgba(255,255,255,.72);
  letter-spacing:-.1px;
}

.cg-lcs__sectionTitle--mt{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

.cg-lcs__verdictTitle{
  font-weight:800;
  margin-bottom:8px;
}

.cg-lcs__verdict{
  display:inline-block;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  font-weight:900;
  letter-spacing:-.2px;
}

.cg-lcs__verdict.is-pass{
  background:var(--cg-pass);
  border-color:rgba(0,255,128,.28);
}

.cg-lcs__verdict.is-fail{
  background:var(--cg-fail);
  border-color:rgba(255,80,80,.28);
}

.cg-lcs__verdict.is-unknown{
  background:var(--cg-unk);
  border-color:rgba(255,215,0,.25);
}

.cg-lcs__fail{
  margin-top:8px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,80,80,.10);
  border:1px solid rgba(255,80,80,.18);
  color:rgba(255,255,255,.85);
  font-weight:800;
  font-size:13px;
}

.cg-lcs__reco{
  margin-top:8px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.86);
  font-size:13px;
  line-height:1.45;
  word-break:break-word;
  white-space:normal;
}

.cg-lcs__req{
  margin-top:8px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.45;
}

.cg-lcs__subnote{
  margin-top:10px;
  color:rgba(255,255,255,.7);
  font-size:13px;
  line-height:1.45;
}

.cg-lcs__manual{
  margin-top:12px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--cg-radius);
  padding:10px 12px;
}

.cg-lcs__manual > summary{
  cursor:pointer;
  font-weight:800;
  color:rgba(255,255,255,.88);
}

.cg-lcs__manualGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

@media (max-width: 680px){
  .cg-lcs__manualGrid{ grid-template-columns:1fr; }
}

.cg-lcs__label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:700;
  color:rgba(255,255,255,.85);
}

.cg-lcs__label span{
  font-size:13px;
  color:rgba(255,255,255,.75);
  font-weight:800;
}

.cg-lcs__label input,
.cg-lcs__label select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  color:rgba(255,255,255,.92);
  outline:none;
}

.cg-lcs__label--picker input{
  padding-right:10px;
}

.cg-lcs__picker{
  position:relative;
}

.cg-lcs__pickerList{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:50;
  background:#0b0e14;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  overflow:hidden;
  max-height:240px;
  overflow-y:auto;
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}

.cg-lcs__pickerItem{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  color:rgba(255,255,255,.9);
  font-weight:700;
  font-size:13px;
}

.cg-lcs__pickerItem:last-child{ border-bottom:0; }

.cg-lcs__pickerItem:hover{
  background:rgba(255,255,255,.06);
}

.cg-lcs__pickerHint{
  font-size:12px;
  color:rgba(255,255,255,.62);
  line-height:1.35;
}

.cg-lcs__manualActions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.cg-lcs__privacy{
  margin-top:12px;
  font-size:12.5px;
  color:rgba(255,255,255,.65);
}

/* --- Mobile UI: one item per row (label above input/value) --- */
@media (max-width: 680px){
  /* Header + section buttons: full-width stack */
  .cg-lcs__header{
    flex-direction:column;
    align-items:flex-start;
  }

  .cg-lcs__headerBtns,
  .cg-lcs__sectionBtns{
    width:100%;
  }

  .cg-lcs__headerBtns .cg-lcs__btn,
  .cg-lcs__sectionBtns .cg-lcs__btn{
    width:100%;
  }

  /* Tables become stacked blocks so th(label) is above td(value/input) */
  .cg-lcs__table,
  .cg-lcs__table tbody,
  .cg-lcs__table tr,
  .cg-lcs__table th,
  .cg-lcs__table td{
    display:block !important;
    width:100% !important;
  }

  .cg-lcs__table tr{
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
  }

  .cg-lcs__table tr:last-child{
    border-bottom:0;
  }

  .cg-lcs__table th,
  .cg-lcs__table td{
    padding:0 !important;
    border-bottom:0 !important;
  }

  .cg-lcs__table th{
    margin:0 0 8px 0;
  }

  /* Divider rows keep their own styling */
  .cg-lcs__tableDivider{
    padding:0;
    border-bottom:0;
  }
  .cg-lcs__tableDivider th{
    padding:14px 10px 10px 10px;
    margin:0;
  }

  /* Unmet / recommendation blocks: full width */
  .cg-lcs__fail,
  .cg-lcs__reco{
    width:100%;
  }

  /* Remove the CPU/GPU “auto estimate” hint text on mobile */
  .cg-lcs__cellHint{
    display:none;
  }
}


/* --- v1.1.3: Auto/Manual tables split + structured recommendations --- */

.cg-lcs__section{
  margin-top:12px;
  background:var(--cg-card);
  border:1px solid var(--cg-line);
  border-radius:var(--cg-radius);
  padding:14px;
}

.cg-lcs__sectionHead{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.cg-lcs__sectionTitleMain{
  font-size:20px;
  margin-bottom:8px;
  font-weight:900;
  color:rgba(255,255,255,.92);
  letter-spacing:-.2px;
}

/* Manual section title: centered */
.cg-lcs__section--manual .cg-lcs__sectionTitleMain{
  text-align:center;
}

.cg-lcs__manualMsg{
  display:none;
  margin:10px 0 12px 0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,80,80,.18);
  background:rgba(255,80,80,.10);
  color:rgba(255,255,255,.88);
  font-weight:900;
  font-size:13px;
  line-height:1.45;
}

.cg-lcs__sectionBtns{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.cg-lcs__preAutoNote{
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.82);
  font-size:13.5px;
  line-height:1.45;
  margin-bottom:12px;
}

.cg-lcs__table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
}

.cg-lcs__table th,
.cg-lcs__table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
}

.cg-lcs__table tr:last-child th,
.cg-lcs__table tr:last-child td{
  border-bottom:0;
}

.cg-lcs__table th{
  width:170px;
  text-align:left;
  color:var(--cg-muted);
  font-weight:900;
}

@media (max-width: 680px){
  .cg-lcs__table th{ width:140px; }
}

.cg-lcs__tableDivider th{
  width:auto;
  padding:14px 10px 10px 10px;
  font-size:13px;
  color:rgba(255,255,255,.75);
  background:rgba(255,255,255,.03);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.cg-lcs__table input,
.cg-lcs__table select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  color:rgba(255,255,255,.92);
  outline:none;
}

.cg-lcs__cellHint{
  margin-top:6px;
  font-size:12px;
  color:rgba(255,255,255,.62);
  line-height:1.35;
}

.cg-lcs__notice{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.82);
  font-weight:800;
  font-size:13px;
  line-height:1.45;
}

/* Structured recommendation blocks */
.cg-lcs__recoGroup{
  margin-top:10px;
}

.cg-lcs__recoGroupTitle{
  font-weight:900;
  margin-bottom:8px;
  color:rgba(255,255,255,.92);
}

.cg-lcs__recoGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

@media (max-width: 680px){
  .cg-lcs__recoGrid{ grid-template-columns:1fr; }
}

.cg-lcs__recoCol{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px 10px;
  background:rgba(0,0,0,.12);
}

.cg-lcs__recoColTitle{
  font-weight:900;
  font-size:12.5px;
  color:rgba(255,255,255,.75);
  margin-bottom:8px;
}

.cg-lcs__recoLine{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.cg-lcs__recoLine:last-child{
  border-bottom:0;
}

.cg-lcs__recoName{
  font-weight:800;
  color:rgba(255,255,255,.90);
  word-break:break-word;
}

.cg-lcs__recoPrice{
  font-weight:900;
  color:rgba(255,255,255,.82);
  white-space:nowrap;
}

.cg-lcs__recoActions{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px 10px;
  background:rgba(0,0,0,.12);
}

.cg-lcs__recoAction{
  font-weight:800;
  color:rgba(255,255,255,.86);
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.cg-lcs__recoAction:last-child{ border-bottom:0; }

.cg-lcs__recoEmpty{
  color:rgba(255,255,255,.65);
  font-weight:800;
  padding:6px 0;
}


/* Mobile: move manual buttons under GPU input */
.cg-lcs__mobileManualBtns{
  display:none;
  margin-top:10px;
}

/* Ensure the widget can be full-bleed in narrow layouts */
@media (max-width: 640px){
  .cg-lcs__mobileManualBtns{ display:block; }
  .cg-lcs__mobileManualBtns .cg-lcs__sectionBtns{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  .cg-lcs__mobileManualBtns .cg-lcs__btn{ width:100%; }

  .cg-lcs{ border-radius:0; }
  .cg-lcs__section{ border-radius:12px; }
}


/* Toast (auto measurement result) */
#cg-lcs-toast.cg-lcs__toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-sizing: border-box;
}
#cg-lcs-toast.cg-lcs__toast.is-show{
  opacity: 1;
}


/* Center alert modal */
#cg-lcs-center-alert.cg-lcs__modalOverlay{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
#cg-lcs-center-alert.cg-lcs__modalOverlay.is-show{
  opacity: 1;
  pointer-events: auto;
}
#cg-lcs-center-alert .cg-lcs__modal{
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 18px 16px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
#cg-lcs-center-alert .cg-lcs__modalMsg{
  font-size: 15px;
  line-height: 1.45;
  word-break: keep-all;
}
#cg-lcs-center-alert .cg-lcs__modalBtn{
  margin-top: 14px;
  width: 100%;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 12px 14px;
  /* 버튼 라운드 처리 금지 */
  border-radius: 0;
  font-size: 14px;
  cursor: pointer;
}

#cg-lcs-center-alert .cg-lcs__modalBtn:hover,
#cg-lcs-center-alert .cg-lcs__modalBtn:focus,
#cg-lcs-center-alert .cg-lcs__modalBtn:focus-visible,
#cg-lcs-center-alert .cg-lcs__modalBtn:active{
  color:#000 !important;
  background:#fff;
  border-color:#000;
}
