:root{--sim-b:#e5e7eb}
.sim-wrap{display:grid;grid-template-columns:360px 1fr;gap:16px;max-width:1200px;margin:0 auto;padding:16px}
.sim-card{background:#1118270a;border:1px solid var(--sim-b);border-radius:14px;padding:16px}
.sim-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.sim-badge{font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid var(--sim-b);background:#fff}
.sim-card h2{margin:0 0 12px}
.sim-card h3{margin:12px 0 8px}
.sim-sub{font-size:14px;color:#111827;margin:0 0 8px}
.sim-label{display:block;margin-top:10px;font-weight:700}
.sim-input,.sim-select{width:100%;padding:10px;border-radius:10px;border:1px solid var(--sim-b);background:#fff}
.sim-row{display:flex;align-items:center;gap:10px;margin-top:12px;font-weight:700}
.sim-check{width:18px;height:18px;accent-color:#111827;cursor:pointer}
.sim-btn{margin-top:14px;width:100%;padding:12px;border-radius:12px;border:0;background:#111827;color:#fff;font-weight:800;cursor:pointer}
.sim-btn:disabled{opacity:.6;cursor:not-allowed}
.sim-btn-secondary{margin-top:10px;width:100%;padding:12px;border-radius:12px;border:1px solid var(--sim-b);background:#fff;color:#111827;font-weight:800;cursor:pointer}
.sim-hr{border:0;border-top:1px solid var(--sim-b);margin:14px 0}
.sim-muted{color:#475569;margin:10px 0;line-height:1.4}
.sim-right{display:grid;gap:16px}
.sim-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sim-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sim-stat{border:1px solid var(--sim-b);border-radius:12px;padding:12px;background:#fff;min-width:0}
.sim-stat .k{font-size:12px;color:#64748b;font-weight:800}
.sim-stat .v{font-size:22px;font-weight:900;margin-top:6px}
.sim-stat .s{font-size:12px;color:#64748b;margin-top:4px;word-break:break-word}
.sim-msg{margin-top:10px;color:#334155;font-size:12px}
.sim-log{border:1px solid var(--sim-b);background:#fff;border-radius:12px;padding:10px;max-height:260px;overflow:auto;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-size:12px;line-height:1.4}
.sim-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.sim-nav a{display:inline-block;padding:8px 12px;border-radius:999px;border:1px solid var(--sim-b);background:#fff;color:#111827;font-weight:800;text-decoration:none}
.sim-nav a.on{background:#111827;color:#fff;border-color:#111827}
@media (max-width: 900px){.sim-wrap{grid-template-columns:1fr}.sim-grid2{grid-template-columns:1fr}.sim-grid3{grid-template-columns:1fr}}

/* v17: 상단 공통 메뉴 */
.sim-topbar{max-width:1200px;margin:0 auto;padding:14px 16px}
.sim-topbar-inner{display:flex;align-items:center;gap:10px;justify-content:space-between;
  border:1px solid var(--sim-b);border-radius:14px;background:#fff;padding:12px 14px}
.sim-topbar-title{font-weight:900}
.sim-topbar-nav{display:flex;gap:8px;flex-wrap:wrap}
.sim-topbar-nav a{display:inline-block;padding:8px 12px;border-radius:999px;border:1px solid var(--sim-b);
  background:#fff;color:#111827;font-weight:900;text-decoration:none}
.sim-topbar-nav a.on{background:#111827;color:#fff;border-color:#111827}
.sim-topbar-badge{font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid var(--sim-b);background:#f8fafc}
/* 체크박스가 테마에서 숨김 처리되는 경우 강제 표시 */
.sim-check{
  display:inline-block !important;
  width:18px;height:18px;
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  accent-color:#111827;
}
/* 로그는 항상 보이도록 최소 높이 */
.sim-log{min-height:140px}

.sim-row input.sim-check{margin:0 !important;flex:0 0 auto}

.sim-log-mini{display:none}
@media (max-width: 900px){.sim-log-mini{display:block;margin-top:12px}.sim-log-big{display:none}}


/* v21 patch: 스타포스 로그 줄바꿈 강제 (JS 캐시 무관) */
.sim-log{
  white-space: pre-line !important;
  word-break: break-word !important;
}
/* v21 patch: 체크박스/라벨 겹침 방지 강제 */
.sim-row{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.sim-row input[type="checkbox"]{
  flex:0 0 auto !important;
  width:18px !important;
  height:18px !important;
  margin:0 0 0 2px !important;
}
.sim-row{ padding:6px 2px !important; }


/* v22 patch: 테마 커스텀 체크박스(가림) 제거 */
.sim-row::before,
.sim-row::after{
  content:none !important;
  display:none !important;
}
.sim-row{
  padding-left:0 !important;
  background:transparent !important;
  position:relative !important;
}
.sim-row input[type="checkbox"]{
  position:relative !important;
  z-index:2 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:4px !important;
}
.sim-row span,
.sim-row{
  z-index:1 !important;
}
