/* Starforce Style (Orange Theme) */
.sf-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px){ .sf-wrap{ grid-template-columns: 1fr; } }

.sf-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.sf-title { font-size: 18px; font-weight: 800; margin: 0 0 12px 0; color: #1e293b; }

.sf-right-col { display: flex; flex-direction: column; height: 100%; }

.sf-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.sf-tab { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-weight: 700; cursor: pointer; color: #64748b; }
.sf-tab.is-active { background: #ff7811; color: #fff; border-color: transparent; }

.sf-field { margin-bottom: 12px; }
.sf-label { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.sf-input, .sf-select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; box-sizing: border-box; font-size: 14px; }

.sf-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.sf-hr { height: 1px; background: #e2e8f0; margin: 10px 0; }
.sf-small { font-size: 12px; color: #94a3b8; }

.sf-btn { width: 100%; padding: 12px; border-radius: 12px; font-weight: 800; border: none; cursor: pointer; font-size: 15px; transition: opacity 0.2s; }
.sf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* [수정] 오렌지색 테마 적용 */
.sf-btn.primary { background: #ff7811; color: #fff; }
.sf-btn.primary:hover { background: #f97316; }
.sf-btn.warn { background: #fee2e2; color: #ef4444; }
.sf-btn.warn:hover { background: #fecaca; }

.sf-msg { margin-top: 10px; padding: 10px; border-radius: 8px; background: #f1f5f9; font-size: 13px; color: #64748b; text-align: center; }

/* [수정] 체크박스 그리드 (1줄 2칸) */
.sim-checkgrid {
    display: grid; 
    grid-template-columns: 1fr 1fr; /* 정확히 2분할 */
    gap: 8px;
}
.sim-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    min-width: 0; /* flex 자식 줄바꿈 방지 */
}
.sim-opt input[type="checkbox"] { display: none; }

.sim-chk-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sim-name {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 체크 상태 (오렌지 테마) */
.sim-opt.is-checked {
    background: #fff7ed; /* 아주 연한 오렌지 배경 */
    border-color: #ff7811;
}
.sim-opt.is-checked .sim-chk-icon {
    background: #ff7811;
    border-color: #ff7811;
    color: #fff;
}
.sim-opt.is-checked .sim-name {
    color: #c2410c; /* 진한 오렌지 텍스트 */
}

/* 비활성 상태 */
.sim-opt.disabled {
    opacity: 0.6;
    background: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}
.sim-opt.disabled .sim-chk-icon {
    border-color: #e2e8f0;
    background: #e2e8f0;
}
.sim-opt.disabled .sim-name {
    color: #94a3b8;
}

/* 결과 영역 스타일 */
.sf-star-visual { text-align: center; margin-bottom: 10px; font-size: 20px; line-height: 1.2; letter-spacing: 2px; color: #e2e8f0; }
.sf-star-visual span.on { color: #fbbf24; text-shadow: 0 0 5px rgba(251, 191, 36, 0.5); }
.sf-current-text { text-align: center; font-size: 32px; font-weight: 900; color: #0f172a; margin-bottom: 20px; }

.sf-stats { display: flex; flex-direction: column; gap: 8px; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.stat-row .l { color: #64748b; font-weight: 600; }
.stat-row .v { color: #0f172a; font-weight: 800; }

.sf-log-card { flex: 1; display: flex; flex-direction: column; min-height: 300px; }
.sf-log { flex: 1; overflow-y: auto; background: #f8fafc; border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.6; max-height: 500px; white-space: pre-wrap; border: 1px solid #e2e8f0; }