*{box-sizing:border-box}
:root{
  /* Theme (auto/preset) */
  --accent1:#1E3A8A;
  --accent2:#60A5FA;
  --accentRGB:30,58,138;
  --accentText:#fff;
  --accentOn:#ffffff;

  /* Glass intensity */
  --glassA:.84;
  --glassStrongA:.94;
  --glassSoftA:.26;
  --glassBorder:rgba(255,255,255,.06);

  /* Backward-compat */
  --gold: var(--accent1);
  --gold2: var(--accent2);

  /* follow global theme tokens (casino-style unified) */
  --panel2: var(--panel-2);
  /* keep tool-specific chip surface but theme-aware */
  --chip: color-mix(in srgb, var(--panel-2) 92%, transparent);

  --ok:#b7ffcf;
  --warn:#ffcf99;
  --bad:#ffb3b3;
  /* --chip moved above */
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;
  background: var(--bg);
  color:var(--text);
}

/* ===== 사칭주의 배너 (1일 1회) ===== */
.scam-popup{
  position:sticky;
  top:10px;
  z-index:9999;
  display:none;
  justify-content:center;
  padding:0 14px;
  margin:10px auto 0;
}
.scam-box{
  width:min(980px, 100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:999px;
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 14px 44px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .scam-box{
  border-color: rgba(255,255,255,.10);
  box-shadow:0 16px 56px rgba(0,0,0,.55);
}
.scam-left{display:flex;align-items:center;gap:10px;min-width:0}
.scam-ic{
  width:26px;height:26px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#111;font-weight:1000;flex:0 0 auto;
  box-shadow:0 10px 24px rgba(var(--accentRGB),.18);
}
.scam-msg{
  font-size:12px;
  font-weight:900;
  letter-spacing:-.2px;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.scam-msg b{font-weight:1000}
.scam-box .btn{
  margin:0;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.10);
  color:inherit;
  font-weight:950;
  cursor:pointer;
  user-select:none;
  box-shadow:none;
}
html[data-theme="dark"] .scam-box .btn{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
@media(max-width:520px){
  .scam-popup{top:6px}
  .scam-box{border-radius:18px}
  .scam-msg{white-space:normal}
}


/* 상단 */
.header{ text-align:center; padding:14px 0 10px; }
.logo-link{display:inline-block;text-decoration:none}
.logo-img{
  display:block; margin:0 auto 6px;
  width:180px; max-width:72%; height:auto;
  filter:drop-shadow(0 0 10px rgba(var(--accentRGB),.25));
}
@media(max-width:480px){ .logo-img{width:150px;max-width:82%} }
.sub{ font-size:12px; color:#9a9a9a; }

/* 레이아웃 */
.wrap{ max-width:980px; margin:0 auto; padding:10px 14px 34px; }
.card{
  background:rgba(18,18,18,.86);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px; padding:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.45);
  margin-bottom:14px;
  backdrop-filter: blur(10px);
}
.title{ font-weight:900; color:var(--gold2); margin-bottom:10px; font-size:14px; display:flex; align-items:center; gap:8px; }
.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  color:#000;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
}
.note{ color:#bdbdbd; font-size:12px; line-height:1.5; margin-top:8px; }
.small-hint{ font-size:11px; color:#8f8f8f; margin-top:6px; line-height:1.4; }

/* 컨트롤 */
.controls{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media(max-width:560px){ .controls{ grid-template-columns:1fr; } }
.select, .textinput{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:var(--panel2);
  color:var(--text);
  outline:none;
  font-weight:800;
}
.textinput{ font-weight:700; }
.row2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
@media(max-width:560px){ .row2{ grid-template-columns:1fr; } }

/* 입력 */
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
@media(max-width:560px){ .grid{grid-template-columns:1fr} }
.field label{ display:block; font-size:12px; color:#bbb; margin:2px 0 6px; }
.field input{
  width:100%; padding:12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:var(--panel2); color:var(--text); outline:none;
}
.field input::placeholder{color:#555}

/* 섹션 박스 */
.box{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}
.box-title{ font-weight:900; margin:0 0 8px; color:var(--gold2); font-size:13px; }
.box-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.toggle{
  appearance:none; -webkit-appearance:none;
  cursor:pointer; font-size:12px; color:#cfcfcf;
  user-select:none; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.25);
  appearance:none; -webkit-appearance:none; font: inherit;
}

/* 액션 */
.actions{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.btn{
  flex:1; min-width:160px;
  border:none; border-radius:14px; padding:12px;
  font-weight:900; cursor:pointer;
}
.primary{ background:linear-gradient(135deg,#1da1f2,#78d6ff); color:#00121a; }
.secondary{ background:var(--chip); color:var(--text); border:1px solid rgba(255,255,255,.06); }
.gold{ background:linear-gradient(135deg,var(--gold),var(--gold2)); color:#111; }

/* 결과 */
.result{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:12px;
  margin-top:12px;
}

/* v2.1: 결과 카드/탭 구조 컴포넌트 */
.st-result{ display:block; }
.st-r-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.20);
  margin-bottom:10px;
}
.st-r-tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:8px 11px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  cursor:pointer;
  transition:transform .13s cubic-bezier(.2,.9,.2,1), filter .13s ease, border-color .13s ease, background .13s ease;
}
.st-r-tab:hover{ transform:translateY(-1px); filter:brightness(1.06); border-color:rgba(var(--accentRGB),.22); }
.st-r-tab:active{ transform:translateY(0) scale(.99); }
.st-r-tab.on{ background:rgba(var(--accentRGB),.16); border-color:rgba(var(--accentRGB),.30); }
.st-r-tab:focus-visible{ outline:2px solid rgba(var(--accentRGB),.55); outline-offset:2px; }
.st-r-meta{ margin-left:auto; font-size:11px; font-weight:900; color:var(--muted); }

.st-r-panel{ display:block; }
.st-r-panel[hidden]{ display:none; }

/* 결과 요약 카드(첫 화면 강조) */
.resultHero{
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(90,160,255,.10), transparent 55%),
    radial-gradient(600px 200px at 100% 0%, rgba(var(--accentRGB),.10), transparent 55%),
    rgba(255,255,255,.03);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  margin-bottom:10px;
  animation:popIn .22s ease-out;
}
@keyframes popIn{ from{ transform:translateY(6px); opacity:0;} to{transform:none; opacity:1;} }
.heroTop{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.heroText{ min-width:240px; }
.heroTitle{ font-weight:1000; font-size:15px; color:var(--text); letter-spacing:-.2px; }
.heroSub{ margin-top:3px; font-size:12px; color:#bdbdbd; line-height:1.35; }
.heroBadges{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end; }

.heroRight{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.heroConclusion{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  max-width:340px;
}
.heroConclusion .cIcon{ font-size:16px; line-height:1; }
.heroConclusion .cText{ font-size:13px; font-weight:900; letter-spacing:-.2px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.heroConclusion.good{ border-color: rgba(48,209,88,.35); background: rgba(48,209,88,.12); }
.heroConclusion.warn{ border-color: rgba(255,193,7,.35); background: rgba(255,193,7,.12); }
.heroConclusion.bad{ border-color: rgba(255,59,48,.35); background: rgba(255,59,48,.12); }
@media (max-width:520px){
  .heroRight{ width:100%; align-items:flex-start; }
  .heroBadges{ justify-content:flex-start; }
  .heroConclusion{ max-width:100%; width:100%; }
  .heroConclusion .cText{ white-space:normal; }
}
.chip.big{ padding:8px 12px; font-size:13px; }
.heroStats{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
.statCard{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.22);
  border-radius:14px;
  padding:10px 10px;
}
.statK{ font-size:11px; color:#bdbdbd; }
.statV{ margin-top:4px; font-size:16px; font-weight:1000; color:var(--text); letter-spacing:-.2px; }
.statS{ margin-top:2px; font-size:11px; color:#9a9a9a; }
.detailHead{
  margin:10px 0 4px;
  font-weight:900;
  font-size:13px;
  color:var(--text);
  display:flex; align-items:center; gap:8px;
}
.detailHead:before{
  content:"";
  width:8px; height:8px; border-radius:99px;
  background:rgba(var(--accentRGB),.9);
  box-shadow:0 0 0 4px rgba(var(--accentRGB),.12);
}
@media (max-width:520px){
  .heroStats{ grid-template-columns: 1fr; }
  .heroText{ min-width: 0; }
  .heroBadges{ justify-content:flex-start; }
}

.kv{
  display:flex; justify-content:space-between; gap:10px;
  padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06);
  font-size:13px;
}
.kv:last-child{border-bottom:none}
.k{color:#cfcfcf}
.v{font-weight:900}
.warn{color:var(--bad)}
.good{color:var(--ok)}
.mid{color:var(--warn)}

hr.sep{ border:none; height:1px; background:rgba(255,255,255,.06); margin:12px 0; }

.footer-links{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.linkbtn{
  flex:1; min-width:160px;
  display:block; text-align:center; padding:12px;
  border-radius:14px; text-decoration:none; font-weight:900;
  background:var(--chip); color:var(--text);
  border:1px solid rgba(255,255,255,.06);
}

/* 체크리스트 */
.checklist{
  color:#cfcfcf;
  font-size:13px;
  line-height:1.55;
}
.checklist strong{ color:var(--text); }

/* 마진 대시보드 */
.m-grid{
  display:grid; gap:10px;
  grid-template-columns:1fr 1fr 1fr;
}
@media(max-width:800px){ .m-grid{ grid-template-columns:1fr; } }
.m-card{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.25);
  border-radius:16px;
  padding:12px;
}
.m-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.m-name{ font-weight:900; color:var(--text); font-size:13px; }
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
}
.chip.ok{ color:var(--ok); }
.chip.mid{ color:var(--warn); }
.chip.bad{ color:var(--bad); }
.m-lines{ margin-top:10px; font-size:12px; color:rgba(255,255,255,.86); line-height:1.45; }
.m-lines b{ color:var(--text); }

/* 히스토리 */
.history-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.history-toolbar .btn{ min-width:0; flex:1; }

.history-toolbar .btn.danger{
  border-color:rgba(255,80,80,.35);
  color:#ffd1d1;
}
.history-toolbar .btn.danger:hover{
  border-color:rgba(255,80,80,.55);
  background:rgba(255,80,80,.08);
}
.history-filters{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.history-filters .seg{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#ddd;
  font-weight:900;
  cursor:pointer;
}
.history-filters .seg.on{
  background:linear-gradient(135deg, rgba(255,203,66,.22), rgba(255,176,60,.12));
  border-color:rgba(255,203,66,.35);
  color:var(--text);
}
.pick-ind{
  margin-left:auto;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#cfcfcf;
  font-size:12px;
  font-weight:800;
}
.pick-ind b{ color:var(--text); }
@media (max-width:420px){
  .pick-ind{ margin-left:0; }
}

.h-list{ margin-top:10px; display:grid; gap:10px; }
.h-item{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.25);
  border-radius:16px;
  padding:10px 12px;
  cursor:pointer;
  transition:transform .13s cubic-bezier(.2,.9,.2,1), border-color .13s ease, filter .13s ease;
}
.h-item:hover{ transform:translateY(-1px); border-color:rgba(var(--accentRGB),.16); filter:brightness(1.03); }
.h-item:active{ transform:translateY(0) scale(.995); }
.h-item:focus-visible{ outline:2px solid rgba(var(--accentRGB),.55); outline-offset:3px; }
.h-top{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.h-title{
  font-weight:900; font-size:13px;
}
.h-sub{
  margin-top:4px;
  font-size:12px; color:#cfcfcf; line-height:1.4;
}
.h-actions{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}
.h-actions button{
  border-radius:12px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--text);
  font-weight:900;
  cursor:pointer;
  font-size:12px;
}
.h-actions button.primary2{
  background:linear-gradient(135deg,#1da1f2,#78d6ff);
  color:#00121a;
  border:none;
}
.h-actions .pick{
  display:flex; align-items:center; gap:6px; font-size:12px; color:#cfcfcf;
}
.h-actions input[type="checkbox"]{ transform:scale(1.15); }

/* 비교 모달 */
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  z-index:3200;
  padding:16px;
  background:rgba(0,0,0,.75);
}
.modal-box{
  width:100%;
  max-width:980px;
  background:rgba(17,17,17,.95);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 18px 60px rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  padding:14px;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom:10px;
}
.modal-head .t{ font-weight:900; color:var(--gold2); }
.modal-close{
  cursor:pointer; user-select:none;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  font-weight:900;
}
.compare-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media(max-width:760px){ .compare-grid{ grid-template-columns:1fr; } }
.compare-col{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.25);
  border-radius:16px;
  padding:12px;
}
.compare-col .ct{ font-weight:900; margin-bottom:8px; }
.compare-col .line{ display:flex; justify-content:space-between; gap:10px; font-size:12px; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.compare-col .line:last-child{ border-bottom:none; }
.compare-col .line .k{ color:#cfcfcf; }
.compare-col .line .v{ font-weight:900; }
.compare-col .mini-actions{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.compare-col .mini-actions button{
  flex:1; min-width:120px;
  border:none; border-radius:12px; padding:10px;
  font-weight:900; cursor:pointer;
}
.compare-col .mini-actions .restore{ background:linear-gradient(135deg,#1da1f2,#78d6ff); color:#00121a; }
.compare-col .mini-actions .close{ background:#1f1f1f; color:var(--text); border:1px solid rgba(255,255,255,.06); }

/* 토스트 */
#toast88{
  position:fixed; left:50%; bottom:22px; transform:translateX(-50%);
  background:rgba(0,0,0,.85); color:var(--text);
  padding:10px 12px; border-radius:12px; font-size:12px;
  z-index:4000; border:1px solid rgba(255,255,255,.08);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}

/* ===== 분석기 진입 광고 팝업 (A안: 1일 1회, 2개 노출) ===== */
.ad-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2600;
  padding:18px;
}
.ad-box{
  width:100%;
  max-width:420px;
  background:rgba(17,17,17,.95);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 60px rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
}
.ad-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.ad-title{
  font-weight:900;
  color:var(--gold2);
  font-size:14px;
}
.ad-close{
  cursor:pointer;
  user-select:none;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.28);
  color:var(--text);
}
.ad-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media(max-width:360px){
  .ad-grid{ grid-template-columns:1fr; }
}
.ad-item{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.25);
  border-radius:14px;
  padding:12px;
  cursor:pointer;
}
.ad-item .name{ font-weight:900; font-size:13px; }
.ad-item .sub{ font-size:11px; color:#bdbdbd; margin-top:4px; line-height:1.4; }
.ad-item .badge{
  display:inline-block;
  margin-top:8px;
  font-size:11px;
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#111;
}
.ad-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.ad-actions .btnx{
  flex:1;
  text-align:center;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.08);
  background:#1f1f1f;
  color:var(--text);
  text-decoration:none;
}
.ad-actions .btnx.primary{
  background:linear-gradient(135deg,#1da1f2,#78d6ff);
  color:#00121a;
  border:none;
}
.ad-note{
  margin-top:10px;
  font-size:11px;
  color:#9a9a9a;
  line-height:1.4;
}

/* ===== UX Add-ons (non-breaking) ===== */
.save-badge{
  margin-left:auto;
  font-size:11px;
  font-weight:900;
  color:var(--text-2);
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.save-badge .dot{
  width:8px; height:8px; border-radius:999px;
  background:rgba(255,255,255,.55);
  box-shadow:0 0 0 3px rgba(255,255,255,.08);
}
.quick-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.quick-nav .chip{
  border:1px solid rgba(var(--accentRGB),.28);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease;
}
.quick-nav .chip:hover{ transform:translateY(-1px); background:rgba(255,255,255,.09); }

/* v2.1: 섹션 탭(HTML 컴포넌트화) */
.st-tabbar{
  position:sticky;
  top:calc(var(--shell-h, 62px) + 10px);
  z-index:1100;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.st-tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:9px 12px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  cursor:pointer;
  transition:transform .13s cubic-bezier(.2,.9,.2,1), filter .13s ease, border-color .13s ease, background .13s ease;
}
.st-tab:hover{ transform:translateY(-1px); filter:brightness(1.06); border-color:rgba(var(--accentRGB),.22); }
.st-tab:active{ transform:translateY(0) scale(.99); }
.st-tab.on{
  background:linear-gradient(135deg, rgba(var(--accentRGB),.22), rgba(90,160,255,.10));
  border-color:rgba(var(--accentRGB),.30);
}
.st-tab:focus-visible{ outline:2px solid rgba(var(--accentRGB),.55); outline-offset:2px; }

@media (max-width:520px){
  .st-tabbar{ padding:8px; }
  .st-tab{ padding:8px 10px; }
}

.mini-guide{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  overflow:hidden;
}
.mini-guide .head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  user-select:none;
  font-weight:900;
}
.mini-guide .head .pill{
  appearance:none; -webkit-appearance:none;
  font-size:11px;
  font-weight:900;
  color:var(--text);
  background:rgba(var(--accentRGB),.18);
  border:1px solid rgba(var(--accentRGB),.28);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
}
.mini-guide .body{
  display:none;
  padding:10px 12px 12px;
  color:#d7d7d7;
  font-size:12px;
  line-height:1.5;
}
.mini-guide .body b{ color:var(--text); }
.is-invalid{
  outline:2px solid rgba(255,90,90,.75) !important;
  box-shadow:0 0 0 6px rgba(255,90,90,.12) !important;
  border-color:rgba(255,90,90,.6) !important;
}
.modal-box.share{
  max-width:560px;
  max-height:92vh;
  overflow:auto;
}
.share-canvas-wrap{
  margin-top:12px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:10px;
}
.share-canvas{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
}

/* ===== 묶음 공유(오늘 수집) ===== */
.bundle-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  color:var(--text-2);
  font-size:12px;
}
.bundle-meta b{ color:var(--text); }
.bundle-ta{
  width:100%;
  min-height:160px;
  margin-top:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.28);
  color:var(--text);
  font-size:12px;
  line-height:1.5;
  resize:vertical;
}
.bundle-ta:focus{ outline:2px solid rgba(var(--accentRGB),.26); box-shadow:0 0 0 8px rgba(var(--accentRGB),.10); }
.bundle-mini{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.bundle-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(var(--accentRGB),.28);
  background:rgba(var(--accentRGB),.14);
  color:var(--text);
  font-weight:900;
  font-size:11px;
}

.bundle-promo{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.10);
}
.bundle-promo-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.bundle-promo-title{
  font-weight:900;
  font-size:13px;
  color:var(--text);
}
.bundle-promo-ctrl{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.inp.mini{
  padding:8px 10px;
  font-size:12px;
  border-radius:12px;
}
.bundle-ta--promo{
  min-height:140px;
}

.bundle-switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  border-radius:999px;
  font-size:12px;
  color:var(--text);
  cursor:pointer;
  user-select:none;
}
.bundle-switch input{
  width:14px; height:14px;
  accent-color:#1E3A8A;
}
.bundle-switch span{ font-weight:900; }

.bundle-promo-adv{
  margin-top:10px;
  padding:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:16px;
}
.bundle-adv-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.bundle-adv-label{
  font-weight:900;
  font-size:12px;
  color:var(--text);
  min-width:140px;
}
.bundle-adv-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex:1;
}
.bundle-range{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  border-radius:14px;
  color:var(--text);
  font-size:12px;
  font-weight:900;
}
.bundle-range input[type="range"]{
  width:180px;
  max-width:40vw;
}
#bundlePresetHint{
  border-color: rgba(var(--accentRGB), .35);
  background: rgba(var(--accentRGB), .12);
}

@media (max-width:560px){
  body{ padding-bottom: calc(env(safe-area-inset-bottom) + 72px); }
  .mobile-dock{
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:1700;
    display:flex;
    gap:10px;
    padding:10px 12px calc(env(safe-area-inset-bottom) + 12px);
    background:linear-gradient(180deg, rgba(10,10,12,0), rgba(10,10,12,.72) 30%, rgba(10,10,12,.94));
    backdrop-filter: blur(10px);
  }
  .mobile-dock .dock-btn{
    flex:1;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.06);
    color:var(--text);
    border-radius:14px;
    padding:12px 10px;
    font-weight:1000;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
  }
  .mobile-dock .dock-btn.primary{
    background:linear-gradient(135deg, var(--gold), var(--gold2));
    color:#000;
    border-color:rgba(0,0,0,.08);
  }
}
@media (min-width:561px){
  .mobile-dock{ display:none; }
}

/* ===== Empty History Demo ===== */
.demo-empty{
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);
  padding:14px;
  border-radius:14px;
}
.demo-title{ font-weight:900; font-size:14px; margin-bottom:6px; }
.demo-desc{ font-size:12px; color:#cfcfcf; line-height:1.5; }
.demo-btns{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.demo-btns .btn{ flex:1; min-width:170px; }
.demo-note{ margin-top:10px; font-size:11px; color:#9aa0a6; line-height:1.45; }

/* ===== First-Visit Onboarding ===== */
.onb-highlight{
  position:relative;
  z-index:9998 !important;
  border-radius:16px !important;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.68), 0 0 0 2px rgba(255,255,255,.18) !important;
}
#onbPopover{
  position:fixed;
  z-index:9999;
  max-width:340px;
  width:calc(100vw - 36px);
  background:rgba(14,16,20,.96);
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding:14px;
  display:none;
}
#onbPopover .onb-hd{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
#onbPopover .onb-title{
  font-weight:900; font-size:14px;
}
#onbPopover .onb-step{
  font-size:11px; color:#9aa0a6;
}
#onbPopover .onb-body{
  margin-top:8px;
  font-size:12px; color:#cfcfcf; line-height:1.55;
}
#onbPopover .onb-actions{
  display:flex; gap:8px; margin-top:12px; justify-content:flex-end; flex-wrap:wrap;
}
#onbPopover .onb-actions .btn{ min-width:0; }
#onbPopover .onb-skip{
  margin-right:auto;
  font-size:12px;
  background:transparent;
  border:1px solid rgba(255,255,255,.16);
  color:#cfcfcf;
}

/* ===== 입력 검증 ===== */
.invalid{
  border-color: rgba(255,90,90,.95) !important;
  box-shadow: 0 0 0 3px rgba(255,90,90,.18) !important;
}
.input-warn{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,90,90,.10);
  border:1px solid rgba(255,90,90,.25);
  color:#ffd1d1;
  font-size:12px;
  line-height:1.45;
  display:none;
}
.input-warn b{ color:var(--text); }

/* ===== 최근 입력 스냅샷 ===== */
.snap-wrap{
  margin-top:12px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
}
.snap-head{
  font-size:12px;
  color:#cfcfcf;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.snap-list{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.snap-chip{
  cursor:pointer;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:800;
}
.snap-chip:hover{
  transform: translateY(-1px);
  border-color:var(--muted-2);
}
.snap-meta{ color:#cfcfcf; font-weight:700; margin-left:6px; font-size:11px; }

/* ===== 내 통계(성과) ===== */
.perf-box{
  margin-top:12px;
  border-radius:16px;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
}
.perf-title{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-weight:900; font-size:13px;
}
.perf-sub{
  margin-top:6px;
  font-size:12px; color:#cfcfcf; line-height:1.45;
}
.perf-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.perf-tile{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  border-radius:14px;
  padding:10px;
}
.perf-k{ font-size:12px; color:#cfcfcf; font-weight:800; }
.perf-v{ margin-top:4px; font-size:16px; font-weight:900; }
.perf-n{ margin-top:4px; font-size:11px; color:#bfbfbf; font-weight:700; }

.outTag{
  display:inline-flex; align-items:center; gap:6px;
  border-radius:999px;
  padding:4px 10px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
}
.outTag.win{ border-color: rgba(67,226,164,.40); background: rgba(67,226,164,.12); }
.outTag.lose{ border-color: rgba(255,90,90,.40); background: rgba(255,90,90,.12); }
.outTag.void{ border-color: rgba(255,208,72,.40); background: rgba(255,208,72,.10); }
.outTag.none{ border-color:var(--muted-2); background: rgba(255,255,255,.06); color:#cfcfcf; }

.outBtns{
  margin-top:8px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.oBtn{
  cursor:pointer;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
}
.oBtn:hover{ transform: translateY(-1px); border-color:var(--muted-2); }
.oBtn.on{ border-color:var(--muted-2); background:rgba(255,255,255,.12); }

.h-outcome{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,.12);
}
.h-outcome .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.h-outcome .row .label{ font-size:12px; color:#cfcfcf; font-weight:800; }

/* ===== 결과 상단 기록/신뢰 ===== */
.trustLine{
  margin-top:10px;
  font-size:12px;
  color:#cfcfcf;
  line-height:1.45;
}
.trustLine b{ color:var(--text); }

.heroReason{
  margin-top:8px;
  font-size:12px;
  color:#d9d9d9;
  line-height:1.45;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}

.outcomeBar{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.outcomeBar .oBtn{ border-radius:999px; padding:8px 12px; }

/* ===== Settings spotlight (calcCard) ===== */
#calcCard{
  border:1px solid rgba(var(--accentRGB),.24) !important;
  background:
    radial-gradient(110% 160% at 12% 0%, rgba(var(--accentRGB),.16), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 18px 45px rgba(0,0,0,.62), 0 0 0 1px rgba(var(--accentRGB),.08) inset;
  position:relative;
  overflow:hidden;
}
#calcCard:before{
  content:"";
  position:absolute; inset:-2px;
  background:linear-gradient(90deg, rgba(var(--accentRGB),.30), rgba(255,255,255,0), rgba(var(--accentRGB),.12));
  opacity:.25;
  pointer-events:none;
  transform:skewX(-14deg) translateX(-40%);
  filter:blur(0px);
}
#calcCard .title{
  font-size:18px !important;
  letter-spacing:.2px;
}
#calcCard .pill-need{
  font-size:11px;
  font-weight:950;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(var(--accentRGB),.30);
  color:var(--text);
  background:rgba(var(--accentRGB),.10);
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  margin-left:6px;
}
#calcCard .controls-settings{
  margin-top:12px;
}
#calcCard .selectWrap{
  position:relative;
}
#calcCard .fieldLabel{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 6px 6px;
  font-size:12px;
  font-weight:900;
  color:var(--text-2);
}
#calcCard .stepBubble{
  width:18px; height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:950;
  color:#111;
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow:0 8px 18px rgba(var(--accentRGB),.18);
}
#calcCard .select{
  border:1px solid rgba(var(--accentRGB),.30) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important;
  padding:14px 12px !important;
  font-weight:900 !important;
}
#calcCard .select:focus{
  box-shadow:0 0 0 3px rgba(var(--accentRGB),.18);
}
#calcCard .settingsHint{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  font-size:12px;
  color:var(--text-2);
}
#calcCard .row2{
  margin-top:12px !important;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}
@keyframes calcGlow{
  0%,100%{ box-shadow: 0 18px 45px rgba(0,0,0,.62), 0 0 0 1px rgba(var(--accentRGB),.08) inset; }
  50%{ box-shadow: 0 22px 55px rgba(0,0,0,.68), 0 0 0 1px rgba(var(--accentRGB),.14) inset, 0 0 26px rgba(var(--accentRGB),.08); }
}
#calcCard{ animation:calcGlow 4.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){
  #calcCard{ animation:none; }
  #calcCard:before{ display:none; }
}

/* 88 logo spotlight */
.logoImg, .logo-img{
  width:min(170px,52vw) !important;
  height:auto;
  display:block;
  padding:10px;
  border-radius:20px;
  background:rgba(20,20,24,var(--glassSoftA));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 0 0 1px rgba(255,255,255,.06), 0 14px 40px rgba(0,0,0,.42), 0 0 26px rgba(var(--accentRGB), .22);
}
@media(max-width:480px){
  .logoImg, .logo-img{ width:min(150px,72vw) !important; padding:9px; }
}

/* ===== v14: 섹션 타이틀 정리 + 분석기 UX/UI 업그레이드 ===== */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* 카드: 분석기(최상단) 강조 */
.card--hero{
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(202,152,66,.16), transparent 58%),
    radial-gradient(700px 240px at 100% 0%, rgba(90,160,255,.10), transparent 60%),
    rgba(18,18,18,.86);
}

/* 상단 히어로 */
.calc-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
@media(max-width:560px){
  .calc-hero{ flex-direction:column; }
}
.calc-kicker{ font-size:12px; color:#bdbdbd; letter-spacing:.2px; }
.calc-headline{
  margin-top:4px;
  font-size:16px;
  font-weight:1000;
  color:var(--text);
  line-height:1.25;
}
.calc-headline .accent{ color:var(--gold2); }
.calc-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.tag{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:var(--text);
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}
.calc-hero-right{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
  min-width:170px;
}
@media(max-width:560px){
  .calc-hero-right{
    width:100%;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }
}
.autosave{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}
.autosave-label{ font-size:12px; color:#cfcfcf; font-weight:900; }
.calc-divider{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:12px 0 10px;
}

/* 버튼: 고급/세련/눈에 띄게 */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:950;
  letter-spacing:.2px;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 12px 22px rgba(0,0,0,.40); }
.btn:active{ transform:translateY(0); box-shadow:0 8px 16px rgba(0,0,0,.28); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }

.btn.primary{
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  color:#0a0a0a;
  border-color:rgba(0,0,0,.10);
  box-shadow:0 14px 26px rgba(0,0,0,.45);
}
.btn.primary:hover{
  box-shadow:0 18px 32px rgba(0,0,0,.55), 0 0 18px rgba(202,152,66,.22);
}
.btn.secondary{
  background:rgba(0,0,0,.22);
  border-color:var(--muted-2);
}
.btn.gold{
  background:rgba(0,0,0,.12);
  border-color:rgba(202,152,66,.35);
  color:var(--gold2);
}
.btn.danger{
  border-color:rgba(255,90,90,.45);
  color:#ffd0d0;
}
.btn.mini{ padding:10px 12px; border-radius:12px; font-size:12px; }

/* 액션 영역: 첫 방문자도 바로 쓰기 좋게 */
.actions{ gap:10px; }
.actions .btn.primary{ flex:2; min-width:220px; }
.actions .btn{ min-width:140px; }

/* TOP3 + 기준/예시 반반 레이아웃 */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:start;
}
@media(max-width:860px){ .split{ grid-template-columns:1fr; } }
.split-col{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.06);
}
.subhead{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-weight:1000;
  color:var(--text);
  font-size:13px;
}
.mini-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:1000;
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  color:#111;
  border:1px solid rgba(0,0,0,.10);
}

/* Result action dock */
.result-dock{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.result-dock .btn{ flex:1; min-width:150px; }
@media(max-width:560px){ .result-dock .btn{ min-width:0; } }


/* === v13.1 look unify (from main index) === */
:root{
  /* unify accent (blue) */
  --accent1:#1E3A8A;
  --accent2:#60A5FA;
  --accentRGB:30,58,138;  /* for rgba(var(--accentRGB), .xx) */
  --accentText:#00121a;
  --accentOn:#ffffff;

  /* unify tokens */
  --bg:#ffffff;
  --panel:rgba(255,255,255,.92);
  --glassA:.72;
  --glassStrongA:.86;
  --glassSoftA:.18;
  --glassBorder:rgba(18,20,28,.10);

  /* backward compat */
  --gold: var(--accent1);
  --gold2: var(--accent2);
}

/* premium midnight background */
body{
  background:
    radial-gradient(1200px 620px at 50% -10%, rgba(var(--accentRGB),.18), transparent 58%),
    radial-gradient(900px 540px at 15% 25%, rgba(120,170,255,.10), transparent 55%),
    radial-gradient(900px 640px at 85% 35%, rgba(80,140,255,.08), transparent 55%),
    linear-gradient(180deg, #05060b 0%, #060612 60%, #040408 100%) !important;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,system-ui;
}

/* remove small label badges (TODAY/MAIN/NEW...) */
.title .badge,
.section-title .badge,
h1 .badge,
h2 .badge,
h3 .badge{ display:none !important; }

/* panel unification (safe selectors) */
.section, .panel, .box, .card, .wrap, .container, .hero, header{
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* inputs */
input, select, textarea{
  background: rgba(0,0,0,.28) !important;
  border:1px solid rgba(15,23,42,.12) !important;
  color:var(--text) !important;
  border-radius:14px !important;
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(var(--accentRGB), .38) !important;
  box-shadow: 0 0 0 3px rgba(var(--accentRGB), .12) !important;
}

/* buttons: less-blue, premium glass */
.btn, button, a.btn{
  background: rgba(255,255,255,.06) !important;
  border:1px solid rgba(15,23,42,.12) !important;
  color:var(--text) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.38) !important;
}
.btn:hover, button:hover, a.btn:hover{ filter: brightness(1.06); }
.btn.primary, .btn.go{
  border-color: rgba(var(--accentRGB), .22) !important;
  background: rgba(255,255,255,.08) !important;
}
.btn.secondary, .btn.ghost{
  background: rgba(0,0,0,.18) !important;
}

/* links */
a{ color:inherit; }

/* line compare */
.lc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px;}
@media(max-width:820px){.lc-grid{grid-template-columns:1fr;}}
.lc-col{border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:12px;background:rgba(0,0,0,.18);}
.lc-head{font-weight:900;font-size:13px;color:rgba(30,58,138,.92);margin-bottom:8px;}
.lc-fields .field{margin-top:0;}
.lc-out{margin-top:10px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);padding:12px;line-height:1.55;font-size:13px;}
.lc-out .k{color:var(--muted);font-weight:900;}
.lc-out .v{color:var(--text);}

/* ===== 텍스트 붙여넣기(자동 입력) ===== */
.paste-area{display:flex;flex-direction:column;gap:10px}
.paste-ta{width:100%;min-height:96px;resize:vertical;padding:12px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);color:var(--text);font-size:13px;line-height:1.45;outline:none}
.paste-ta:focus{border-color:rgba(var(--accentRGB),.35);box-shadow:0 0 0 3px rgba(var(--accentRGB),.12)}
.paste-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.paste-badge{font-size:12px;color:var(--text-2);padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.paste-badge.good{border-color:rgba(183,255,207,.25);color:rgba(183,255,207,.92)}
.paste-badge.warn{border-color:rgba(255,207,153,.25);color:rgba(255,207,153,.92)}
.paste-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.paste-inline .chk{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--text-2)}
.paste-inline input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent1)}

/* multi paste list */
.paste-list-wrap{margin-top:10px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);overflow:hidden}
.paste-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
.paste-list-head .k{font-weight:950;color:rgba(30,58,138,.95)}
.paste-list-head .m{font-size:12px;color:var(--muted)}
.paste-list{display:flex;flex-direction:column}
.paste-item{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06)}
.paste-item:last-child{border-bottom:none}
.paste-item .left{min-width:0}
.paste-item .t{font-weight:950;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.paste-item .s{margin-top:4px;font-size:12px;color:var(--muted);line-height:1.35}
.paste-item .chips{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px}
.paste-chip{font-size:11px;padding:4px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);color:var(--text-2)}
.paste-chip.ok{border-color:rgba(183,255,207,.22);color:rgba(183,255,207,.90)}
.paste-chip.warn{border-color:rgba(255,207,153,.22);color:rgba(255,207,153,.90)}
.paste-item .right{display:flex;flex-direction:column;gap:8px;align-items:flex-end;flex:0 0 auto}
.paste-item .btns{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.paste-item .mini{padding:8px 10px;border-radius:12px;font-size:12px}
.paste-raw{margin-top:8px;font-size:12px;white-space:pre-wrap;line-height:1.45;color:var(--muted);border-top:1px dashed rgba(255,255,255,.12);padding-top:8px;display:none}
.paste-item.is-open .paste-raw{display:block}

/* paste list tools + chain save */
.paste-select{height:30px;border-radius:10px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);color:var(--text);font-size:12px;padding:0 10px;outline:none}
.paste-select:focus{border-color:rgba(var(--accentRGB),.35);box-shadow:0 0 0 3px rgba(var(--accentRGB),.10)}
.paste-list-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.paste-mini-label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.paste-num{width:64px;height:30px;border-radius:10px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);color:var(--text);font-size:12px;padding:0 10px;outline:none}
.paste-num:focus{border-color:rgba(var(--accentRGB),.35);box-shadow:0 0 0 3px rgba(var(--accentRGB),.10)}
.paste-item .left{cursor:pointer}
.paste-item.is-saved{background:rgba(183,255,207,.05)}
.paste-item.is-saved .t{color:rgba(183,255,207,.92)}
.paste-stat{font-size:12px;color:var(--muted);line-height:1.35;text-align:right}
.paste-stat b{color:var(--text)}

/* KPI HERO */
.kpiHero{padding:14px 14px 12px;border-radius:16px;background:rgba(0,0,0,.03);border:1px solid rgba(0,0,0,.06);margin:8px 0 4px}
html[data-theme="dark"] .kpiHero{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10)}
.kpiGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:780px){.kpiGrid{grid-template-columns:repeat(4,minmax(0,1fr));}}
.kpiItem{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06)}
html[data-theme="dark"] .kpiItem{background:rgba(0,0,0,.18);border-color:rgba(255,255,255,.10)}
.kpiLabel{font-size:11px;opacity:.7;font-weight:800;letter-spacing:-.2px}
.kpiValue{font-size:16px;font-weight:1000;margin-top:2px;letter-spacing:-.3px}
.kpiNote{margin-top:10px;font-size:12px;opacity:.78;line-height:1.4}

/* Meta toggle */
#metaToggleBtn{margin-top:6px;padding:10px 12px;border-radius:14px}
#metaFields{margin-top:8px}
.simple #metaFields{display:none}
.simple #metaToggleBtn{display:inline-flex}
body:not(.simple) #metaToggleBtn{display:none}

.simple .kpiHero{position:sticky;top:72px;z-index:30}

/* ===== 데스크탑 2패널(중급/고급) ===== */
.app-layout{display:block;}
.app-left{min-width:0;}
.app-right{min-width:0;}
@media (min-width:1024px){
  body.mid .app-layout.is-two,
  body.adv .app-layout.is-two{display:flex;gap:16px;align-items:flex-start;}
  body.mid .app-left,
  body.adv .app-left{flex:1;min-width:620px;}
  body.mid .app-right,
  body.adv .app-right{width:380px;position:sticky;top:88px;}
  body.mid .app-right .result,
  body.adv .app-right .result{max-height:calc(100vh - 120px);overflow:auto;}
}

/* ===== 붙여넣기: 간단 레벨에서 원터치 중심 ===== */
body.simple #pasteBox{border-width:2px;}
body.simple #pasteBox .box-title{font-size:16px;font-weight:1000;}
body.simple .paste-actions .paste-adv{display:none !important;}
body.simple .paste-inline .chk:not(.simple-only){display:none !important;}
.rel-links{max-width:1080px;margin:26px auto 34px;padding:14px 14px 16px;border-radius:18px;
    border:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
    box-shadow:0 14px 40px rgba(0,0,0,.35);}
  .rel-links h2{margin:0 0 10px;font-size:13px;letter-spacing:.02em;color:rgba(30,58,138,.92);font-weight:900;}
  .rel-grid{display:flex;flex-wrap:wrap;gap:8px;}
  .rel-grid a{text-decoration:none;color:var(--text-2);font-size:12px;padding:8px 10px;border-radius:999px;
    border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);}
  .rel-grid a:hover{border-color:rgba(30,58,138,.25);color:rgba(30,58,138,.92);}
